about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-01 00:47:06 +0000
committerbors <bors@rust-lang.org>2015-10-01 00:47:06 +0000
commitf5a01589271e1d0f3ea4def28340a40be7a4f9d0 (patch)
treed24d97e347e579ff301031f1127af922fcec1c88
parentd14dba12279e3e203eeaaeb575149064358cc36f (diff)
parente4d9951984ab51f36f300d4c1ec983919c654b63 (diff)
downloadrust-f5a01589271e1d0f3ea4def28340a40be7a4f9d0.tar.gz
rust-f5a01589271e1d0f3ea4def28340a40be7a4f9d0.zip
Auto merge of #28732 - Eljay:fix-unused-attr, r=alexcrichton
Closes #28709.
-rw-r--r--src/librustc_lint/lib.rs2
-rw-r--r--src/librustc_lint/unused.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs
index cba058e92a2..4202b3dbc7b 100644
--- a/src/librustc_lint/lib.rs
+++ b/src/librustc_lint/lib.rs
@@ -146,7 +146,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
     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);
diff --git a/src/librustc_lint/unused.rs b/src/librustc_lint/unused.rs
index dca4a81c56f..920ecab7527 100644
--- a/src/librustc_lint/unused.rs
+++ b/src/librustc_lint/unused.rs
@@ -235,7 +235,7 @@ impl LateLintPass for PathStatements {
 }
 
 declare_lint! {
-    UNUSED_ATTRIBUTES,
+    pub UNUSED_ATTRIBUTES,
     Warn,
     "detects attributes that were not used by the compiler"
 }