Skip to content

Commit

Permalink
rustc_lint: Remove unused_crate_dependencies from the unused group
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed May 28, 2020
1 parent 4512721 commit 1eef0c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustc_lint/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
UNUSED_ALLOCATION,
UNUSED_DOC_COMMENTS,
UNUSED_EXTERN_CRATES,
UNUSED_CRATE_DEPENDENCIES,
UNUSED_FEATURES,
UNUSED_LABELS,
UNUSED_PARENS,
Expand Down
9 changes: 9 additions & 0 deletions src/test/ui/unused-crate-deps/lint-group.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// `unused_crate_dependencies` is not currently in the `unused` group
// due to false positives from Cargo.

// check-pass
// aux-crate:bar=bar.rs

#![deny(unused)]

fn main() {}

0 comments on commit 1eef0c3

Please sign in to comment.