diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-29 02:33:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 02:33:29 +0200 |
| commit | 049b6dd4e1dfd3f3c42d45e44a6dc2f8ae1a7a14 (patch) | |
| tree | de0df9b38d9052cbb8a7bd60c2a421dcd933e76c /src | |
| parent | ada9c11489519e9d610b1549e016a94d983ec5f4 (diff) | |
| parent | 1eef0c3c1e294c798633c8ce416cd70ceaf4e2d9 (diff) | |
| download | rust-049b6dd4e1dfd3f3c42d45e44a6dc2f8ae1a7a14.tar.gz rust-049b6dd4e1dfd3f3c42d45e44a6dc2f8ae1a7a14.zip | |
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.
Diffstat (limited to 'src')
| -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() {} |
