Skip to content

Commit ec8e65d

Browse files
committedDec 7, 2023
remove redundant imports
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
1 parent 2896841 commit ec8e65d

File tree

286 files changed

+145
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+145
-508
lines changed
 

‎compiler/rustc_ast/src/mut_visit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
//! a `MutVisitor` renaming item names in a module will miss all of those
88
//! that are created by the expansion of a macro.
99
10+
use crate::ast::*;
1011
use crate::ptr::P;
1112
use crate::token::{self, Token};
1213
use crate::tokenstream::*;
13-
use crate::{ast::*, StaticItem};
1414

1515
use rustc_data_structures::flat_map_in_place::FlatMapInPlace;
1616
use rustc_data_structures::stack::ensure_sufficient_stack;

‎compiler/rustc_ast/src/token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rustc_macros::HashStable_Generic;
1313
use rustc_span::symbol::{kw, sym};
1414
#[allow(hidden_glob_reexports)]
1515
use rustc_span::symbol::{Ident, Symbol};
16-
use rustc_span::{self, edition::Edition, Span, DUMMY_SP};
16+
use rustc_span::{edition::Edition, Span, DUMMY_SP};
1717
use std::borrow::Cow;
1818
use std::fmt;
1919

0 commit comments

Comments
 (0)