diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-05-28 19:44:53 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-05-28 20:03:36 +0300 |
| commit | 1eef0c3c1e294c798633c8ce416cd70ceaf4e2d9 (patch) | |
| tree | 735b6764d66357cd051aa51821e0251f942ee9cc | |
| parent | 45127211566c53bac386b66909a830649182ab7a (diff) | |
| download | rust-1eef0c3c1e294c798633c8ce416cd70ceaf4e2d9.tar.gz rust-1eef0c3c1e294c798633c8ce416cd70ceaf4e2d9.zip | |
rustc_lint: Remove `unused_crate_dependencies` from the `unused` group
| -rw-r--r-- | src/librustc_lint/lib.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/unused-crate-deps/lint-group.rs | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs index ee27342541c..b791d313fc4 100644 --- a/src/librustc_lint/lib.rs +++ b/src/librustc_lint/lib.rs @@ -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, diff --git a/src/test/ui/unused-crate-deps/lint-group.rs b/src/test/ui/unused-crate-deps/lint-group.rs new file mode 100644 index 00000000000..e21ffb5dec2 --- /dev/null +++ b/src/test/ui/unused-crate-deps/lint-group.rs @@ -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() {} |
