rustc_lint: Remove unused_crate_dependencies
from the unused
group
This commit is contained in:
parent
4512721156
commit
1eef0c3c1e
2 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
|
|
9
src/test/ui/unused-crate-deps/lint-group.rs
Normal file
9
src/test/ui/unused-crate-deps/lint-group.rs
Normal 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue