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:
commit
20379e4d4e
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