]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/lint/builtin.rs
Make warnings of renamed and removed lints themselves lints
[rust.git] / src / librustc / lint / builtin.rs
index d99d6afd81285a2aeeec21d7ea33acf1f48435cc..f2371c1819fc429fb7be2f9c50445e1286a45189 100644 (file)
     "two overlapping inherent impls define an item with the same name were erroneously allowed"
 }
 
+declare_lint! {
+    pub RENAMED_AND_REMOVED_LINTS,
+    Warn,
+    "lints that have been renamed or removed"
+}
+
 /// Does nothing as a lint pass, but registers some `Lint`s
 /// which are used by other parts of the compiler.
 #[derive(Copy, Clone)]
@@ -191,7 +197,8 @@ fn get_lints(&self) -> LintArray {
             CONST_ERR,
             RAW_POINTER_DERIVE,
             TRANSMUTE_FROM_FN_ITEM_TYPES,
-            OVERLAPPING_INHERENT_IMPLS
+            OVERLAPPING_INHERENT_IMPLS,
+            RENAMED_AND_REMOVED_LINTS
         )
     }
 }