Skip to content

Commit 1eef0c3

Browse files
committed
rustc_lint: Remove unused_crate_dependencies from the unused group
1 parent 4512721 commit 1eef0c3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/librustc_lint/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
276276
UNUSED_ALLOCATION,
277277
UNUSED_DOC_COMMENTS,
278278
UNUSED_EXTERN_CRATES,
279-
UNUSED_CRATE_DEPENDENCIES,
280279
UNUSED_FEATURES,
281280
UNUSED_LABELS,
282281
UNUSED_PARENS,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// `unused_crate_dependencies` is not currently in the `unused` group
2+
// due to false positives from Cargo.
3+
4+
// check-pass
5+
// aux-crate:bar=bar.rs
6+
7+
#![deny(unused)]
8+
9+
fn main() {}

0 commit comments

Comments
 (0)