Skip to content

Commit

Permalink
Rollup merge of #32766 - nikomatsakis:constant-pattern-warning-cycle,…
Browse files Browse the repository at this point in the history
… r=eddyb

change constant patterns to have a warning cycle

This was the original intention :(

r? @eddyb
  • Loading branch information
steveklabnik committed Apr 6, 2016
2 parents 26aceab + b27b3e1 commit 1e4a0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]`"
}
Expand Down

0 comments on commit 1e4a0d0

Please sign in to comment.