Skip to content

Commit e4d9951

Browse files
author
Lee Jeffery
committed
Add unused_attributes to unused lint group.
1 parent 9d009c0 commit e4d9951

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_lint/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
146146
add_lint_group!(sess, "unused",
147147
UNUSED_IMPORTS, UNUSED_VARIABLES, UNUSED_ASSIGNMENTS, DEAD_CODE,
148148
UNUSED_MUT, UNREACHABLE_CODE, UNUSED_MUST_USE,
149-
UNUSED_UNSAFE, PATH_STATEMENTS);
149+
UNUSED_UNSAFE, PATH_STATEMENTS, UNUSED_ATTRIBUTES);
150150

151151
// We have one lint pass defined specially
152152
store.register_late_pass(sess, false, box lint::GatherNodeLevels);

src/librustc_lint/unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl LateLintPass for PathStatements {
235235
}
236236

237237
declare_lint! {
238-
UNUSED_ATTRIBUTES,
238+
pub UNUSED_ATTRIBUTES,
239239
Warn,
240240
"detects attributes that were not used by the compiler"
241241
}

0 commit comments

Comments
 (0)