Rollup merge of #72702 - petrochenkov:unudeps, r=estebank

rustc_lint: Remove `unused_crate_dependencies` from the `unused` group

Fixes https://github.com/rust-lang/rust/issues/72686

It's undesirable to enable `unused_crate_dependencies` with blanket `#![deny(unused)]` due to the amount of redundant `--extern` options passed by Cargo.
This commit is contained in:
Dylan DPC 2020-05-29 02:33:29 +02:00 committed by GitHub
commit 049b6dd4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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,

View File

@ -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() {}