Skip to content

Commit 049b6dd

Browse files
authored
Rollup merge of rust-lang#72702 - petrochenkov:unudeps, r=estebank
rustc_lint: Remove `unused_crate_dependencies` from the `unused` group Fixes rust-lang#72686 It's undesirable to enable `unused_crate_dependencies` with blanket `#![deny(unused)]` due to the amount of redundant `--extern` options passed by Cargo.
2 parents ada9c11 + 1eef0c3 commit 049b6dd

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)