Skip to content

Commit a0ee7c9

Browse files
committed
Remove unused_extern_crate and unused_result from the unused lint group
These lints are allow by default because they are sometimes too sensitive.
1 parent 15dd90b commit a0ee7c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/lint/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ impl LintStore {
221221

222222
add_lint_group!(sess, "unused",
223223
UNUSED_IMPORTS, UNUSED_VARIABLES, UNUSED_ASSIGNMENTS, DEAD_CODE,
224-
UNUSED_MUT, UNREACHABLE_CODE, UNUSED_EXTERN_CRATES, UNUSED_MUST_USE,
225-
UNUSED_UNSAFE, UNUSED_RESULTS, PATH_STATEMENTS)
224+
UNUSED_MUT, UNREACHABLE_CODE, UNUSED_MUST_USE,
225+
UNUSED_UNSAFE, PATH_STATEMENTS)
226226

227227
// We have one lint pass defined in this module.
228228
self.register_pass(sess, false, box GatherNodeLevels as LintPassObject);

0 commit comments

Comments
 (0)