diff options
Diffstat (limited to 'src/librustc/lint/builtin.rs')
| -rw-r--r-- | src/librustc/lint/builtin.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index d9b05d80400..26f663b1c9d 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -17,6 +17,12 @@ use lint::{LintPass, LateLintPass, LintArray}; declare_lint! { + pub CONST_ERR, + Warn, + "constant evaluation detected erroneous expression" +} + +declare_lint! { pub UNUSED_IMPORTS, Warn, "imports that are never used" @@ -134,7 +140,8 @@ impl LintPass for HardwiredLints { VARIANT_SIZE_DIFFERENCES, FAT_PTR_TRANSMUTES, TRIVIAL_CASTS, - TRIVIAL_NUMERIC_CASTS + TRIVIAL_NUMERIC_CASTS, + CONST_ERR ) } } |
