Introduce REDUNDANT_IMPORTS lint
This commit is contained in:
parent
006c8df322
commit
f6f587e7ea
28 changed files with 332 additions and 62 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue