Auto merge of #28732 - Eljay:fix-unused-attr, r=alexcrichton

Closes #28709.
This commit is contained in:
bors 2015-10-01 00:47:06 +00:00
commit f5a0158927
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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"
}