Skip to content

Commit

Permalink
Rollup merge of rust-lang#32766 - nikomatsakis:constant-pattern-warni…
Browse files Browse the repository at this point in the history
…ng-cycle, 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 3531a1a + b27b3e1 commit 76a5895
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 76a5895

Please sign in to comment.