Rollup merge of #32766 - nikomatsakis:constant-pattern-warning-cycle, r=eddyb
change constant patterns to have a warning cycle This was the original intention :( r? @eddyb
This commit is contained in:
commit
76a58954e0
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ declare_lint! {
|
|||
|
||||
declare_lint! {
|
||||
pub ILLEGAL_STRUCT_OR_ENUM_CONSTANT_PATTERN,
|
||||
Deny,
|
||||
Warn,
|
||||
"constants of struct or enum type can only be used in a pattern if \
|
||||
the struct or enum has `#[derive(PartialEq, Eq)]`"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue