diff options
| author | P1start <rewi-github@whanau.org> | 2014-10-11 14:27:37 +1300 |
|---|---|---|
| committer | P1start <rewi-github@whanau.org> | 2014-10-30 17:05:16 +1300 |
| commit | a0ee7c9f55b90a541db1f6f36d18562bdf5ef6bf (patch) | |
| tree | 65e540a5de9004714bb45b7adfe7de4d011a5ab4 | |
| parent | 15dd90b6475c7a44c9b95044c91519d9464bbcc4 (diff) | |
| download | rust-a0ee7c9f55b90a541db1f6f36d18562bdf5ef6bf.tar.gz rust-a0ee7c9f55b90a541db1f6f36d18562bdf5ef6bf.zip | |
Remove `unused_extern_crate` and `unused_result` from the `unused` lint group
These lints are allow by default because they are sometimes too sensitive.
| -rw-r--r-- | src/librustc/lint/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index 8e4095df45a..0c9e129ef72 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -221,8 +221,8 @@ impl LintStore { add_lint_group!(sess, "unused", UNUSED_IMPORTS, UNUSED_VARIABLES, UNUSED_ASSIGNMENTS, DEAD_CODE, - UNUSED_MUT, UNREACHABLE_CODE, UNUSED_EXTERN_CRATES, UNUSED_MUST_USE, - UNUSED_UNSAFE, UNUSED_RESULTS, PATH_STATEMENTS) + UNUSED_MUT, UNREACHABLE_CODE, UNUSED_MUST_USE, + UNUSED_UNSAFE, PATH_STATEMENTS) // We have one lint pass defined in this module. self.register_pass(sess, false, box GatherNodeLevels as LintPassObject); |
