Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add unused_attributes to unused lint group.
  • Loading branch information
Lee Jeffery committed Sep 29, 2015
1 parent 9d009c0 commit e4d9951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_lint/lib.rs
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_lint/unused.rs
Expand Up @@ -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"
}
Expand Down

0 comments on commit e4d9951

Please sign in to comment.