compiler: remove unnecessary imports and qualified paths
This commit is contained in:
parent
a161a7b654
commit
9bc69925cb
76 changed files with 24 additions and 98 deletions
|
@ -15,11 +15,10 @@ pub use crate::*;
|
|||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::stable_hasher::StableHasher;
|
||||
use rustc_data_structures::sync::{AtomicU32, Lrc, MappedReadGuard, ReadGuard, RwLock};
|
||||
use std::cmp;
|
||||
use std::hash::Hash;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::{clone::Clone, cmp};
|
||||
use std::{convert::TryFrom, unreachable};
|
||||
|
||||
use std::fs;
|
||||
use std::io;
|
||||
|
|
|
@ -9,7 +9,6 @@ use rustc_data_structures::sync::Lock;
|
|||
use rustc_macros::HashStable_Generic;
|
||||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||
|
||||
use std::cmp::{Ord, PartialEq, PartialOrd};
|
||||
use std::fmt;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::str;
|
||||
|
@ -1974,7 +1973,6 @@ pub mod kw {
|
|||
/// For example `sym::rustfmt` or `sym::u8`.
|
||||
pub mod sym {
|
||||
use super::Symbol;
|
||||
use std::convert::TryInto;
|
||||
|
||||
#[doc(inline)]
|
||||
pub use super::sym_generated::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue