From e4d9951984ab51f36f300d4c1ec983919c654b63 Mon Sep 17 00:00:00 2001 From: Lee Jeffery Date: Tue, 29 Sep 2015 16:44:26 +0100 Subject: [PATCH] Add unused_attributes to unused lint group. --- src/librustc_lint/lib.rs | 2 +- src/librustc_lint/unused.rs | 2 +- 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" }