1
Fork 0

Auto merge of #137930 - nnethercote:use-Wunused-crate-dependencies, r=jieyouxu,Nadrieril

Use `Wunused-crate-dependencies` for the compiler

An implementation of https://github.com/rust-lang/compiler-team/issues/844.

r? `@jieyouxu`
This commit is contained in:
bors 2025-03-20 04:20:13 +00:00
commit 4e2b096ed6
30 changed files with 51 additions and 60 deletions

View file

@ -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

View file

@ -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;

View file

@ -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};

View file

@ -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;