Use -Wunused_crate_dependencies
for compiler crates.
It's very useful. There are some false positives involving integration tests in `rustc_pattern_analysis` and `rustc_serialize`. There is also a false positive involving `rustc_driver_impl`'s `rustc_randomized_layouts` feature. And I removed a `rustc_span` mention in a doc comment in `rustc_log` because it wasn't integral to the comment but caused a dev-dependency.
This commit is contained in:
parent
1aeb99d248
commit
8121958fda
28 changed files with 42 additions and 53 deletions
|
@ -5,6 +5,7 @@
|
|||
// tidy-alphabetical-start
|
||||
#![allow(rustc::diagnostic_outside_of_impl)]
|
||||
#![allow(rustc::untranslatable_diagnostic)]
|
||||
#![allow(unused_crate_dependencies)]
|
||||
#![cfg_attr(feature = "rustc", feature(let_chains))]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! Test the pattern complexity limit.
|
||||
|
||||
#![allow(unused_crate_dependencies)]
|
||||
|
||||
use common::*;
|
||||
use rustc_pattern_analysis::MatchArm;
|
||||
use rustc_pattern_analysis::pat::DeconstructedPat;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! Test exhaustiveness checking.
|
||||
|
||||
#![allow(unused_crate_dependencies)]
|
||||
|
||||
use common::*;
|
||||
use rustc_pattern_analysis::MatchArm;
|
||||
use rustc_pattern_analysis::pat::{DeconstructedPat, WitnessPat};
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! Test the computation of arm intersections.
|
||||
|
||||
#![allow(unused_crate_dependencies)]
|
||||
|
||||
use common::*;
|
||||
use rustc_pattern_analysis::MatchArm;
|
||||
use rustc_pattern_analysis::pat::DeconstructedPat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue