Skip to content

Commit 76a5895

Browse files
committed
Rollup merge of rust-lang#32766 - nikomatsakis:constant-pattern-warning-cycle, r=eddyb
change constant patterns to have a warning cycle This was the original intention :( r? @eddyb
2 parents 3531a1a + b27b3e1 commit 76a5895

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)