1
Fork 0

Introduce REDUNDANT_IMPORTS lint

This commit is contained in:
Michael Goulet 2024-04-11 14:10:34 -04:00
parent 006c8df322
commit f6f587e7ea
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);