Skip to content

Commit b27b3e1

Browse files
committed
change constant patterns to have a warning cycle
This was the original intention :(
1 parent 772c600 commit b27b3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ declare_lint! {
144144

145145
declare_lint! {
146146
pub ILLEGAL_STRUCT_OR_ENUM_CONSTANT_PATTERN,
147-
Deny,
147+
Warn,
148148
"constants of struct or enum type can only be used in a pattern if \
149149
the struct or enum has `#[derive(PartialEq, Eq)]`"
150150
}

0 commit comments

Comments
 (0)