mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
rustc_lint: Remove unused_crate_dependencies from the unused group
This commit is contained in:
@@ -276,7 +276,6 @@ macro_rules! register_passes {
|
||||
UNUSED_ALLOCATION,
|
||||
UNUSED_DOC_COMMENTS,
|
||||
UNUSED_EXTERN_CRATES,
|
||||
UNUSED_CRATE_DEPENDENCIES,
|
||||
UNUSED_FEATURES,
|
||||
UNUSED_LABELS,
|
||||
UNUSED_PARENS,
|
||||
|
||||
@@ -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() {}
|
||||
Reference in New Issue
Block a user