1
Fork 0

Rollup merge of #123813 - compiler-errors:redundant-lint, r=petrochenkov

Add `REDUNDANT_IMPORTS` lint for new redundant import detection

Defaults to Allow for now. Stacked on #123744 to avoid merge conflict, but much easier to review all as one.

r? petrochenkov
This commit is contained in:
Matthias Krüger 2024-07-31 23:20:09 +02:00 committed by GitHub
commit 20379e4d4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 332 additions and 62 deletions

View file

@ -178,8 +178,8 @@ enum ImplTraitContext {
/// Used for tracking import use types which will be used for redundant import checking.
/// ### Used::Scope Example
/// ```rust,ignore (redundant_imports)
/// #![deny(unused_imports)]
/// ```rust,compile_fail
/// #![deny(redundant_imports)]
/// use std::mem::drop;
/// fn main() {
/// let s = Box::new(32);