diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index 1573d0c4292ac047fc66028c07e8484a5ae1408f..2564838c67d6567bf67acb703d851c53c534476b 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -144,7 +144,7 @@ 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)]`" }