]> git.lizzy.rs Git - rust.git/commitdiff
Add unused_attributes to unused lint group.
authorLee Jeffery <lee@leejeffery.co.uk>
Tue, 29 Sep 2015 15:44:26 +0000 (16:44 +0100)
committerLee Jeffery <lee@leejeffery.co.uk>
Tue, 29 Sep 2015 15:44:26 +0000 (16:44 +0100)
src/librustc_lint/lib.rs
src/librustc_lint/unused.rs

index cba058e92a22ce735dafb62e0c168ceb66bacffa..4202b3dbc7b4562a52bbfb7dff97a6dfbb6f40da 100644 (file)
@@ -146,7 +146,7 @@ macro_rules! add_lint_group {
     add_lint_group!(sess, "unused",
                     UNUSED_IMPORTS, UNUSED_VARIABLES, UNUSED_ASSIGNMENTS, DEAD_CODE,
                     UNUSED_MUT, UNREACHABLE_CODE, UNUSED_MUST_USE,
-                    UNUSED_UNSAFE, PATH_STATEMENTS);
+                    UNUSED_UNSAFE, PATH_STATEMENTS, UNUSED_ATTRIBUTES);
 
     // We have one lint pass defined specially
     store.register_late_pass(sess, false, box lint::GatherNodeLevels);
index dca4a81c56feb08e31b093a97baa2db7f68474f3..920ecab7527d7cac38171caf9642c9aa31d6d64b 100644 (file)
@@ -235,7 +235,7 @@ fn check_stmt(&mut self, cx: &LateContext, s: &hir::Stmt) {
 }
 
 declare_lint! {
-    UNUSED_ATTRIBUTES,
+    pub UNUSED_ATTRIBUTES,
     Warn,
     "detects attributes that were not used by the compiler"
 }