Normalize syntax::source_map imports.
This commit is contained in:
parent
766fba3fdc
commit
75e4783f63
83 changed files with 122 additions and 131 deletions
|
|
@ -32,12 +32,12 @@ use errors::Applicability;
|
|||
use rustc_expand::base::SyntaxExtension;
|
||||
use rustc_expand::expand::AstFragment;
|
||||
use rustc_span::hygiene::{ExpnId, MacroKind};
|
||||
use rustc_span::source_map::{respan, Spanned};
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use syntax::ast::{self, Block, ForeignItem, ForeignItemKind, Item, ItemKind, NodeId};
|
||||
use syntax::ast::{AssocItem, AssocItemKind, MetaItemKind, StmtKind};
|
||||
use syntax::ast::{Ident, Name};
|
||||
use syntax::attr;
|
||||
use syntax::source_map::{respan, Spanned};
|
||||
use syntax::span_err;
|
||||
use syntax::symbol::{kw, sym};
|
||||
use syntax::token::{self, Token};
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ use rustc::ty::{self, DefIdTree};
|
|||
use rustc::util::nodemap::FxHashSet;
|
||||
use rustc_feature::BUILTIN_ATTRIBUTES;
|
||||
use rustc_span::hygiene::MacroKind;
|
||||
use rustc_span::source_map::SourceMap;
|
||||
use rustc_span::{BytePos, MultiSpan, Span};
|
||||
use syntax::ast::{self, Ident, Path};
|
||||
use syntax::print::pprust;
|
||||
use syntax::source_map::SourceMap;
|
||||
use syntax::struct_span_err;
|
||||
use syntax::symbol::{kw, Symbol};
|
||||
use syntax::util::lev_distance::find_best_match_for_name;
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@ use rustc_metadata::creader::{CStore, CrateLoader};
|
|||
use errors::{Applicability, DiagnosticBuilder};
|
||||
use rustc_expand::base::SyntaxExtension;
|
||||
use rustc_span::hygiene::{ExpnId, ExpnKind, MacroKind, SyntaxContext, Transparency};
|
||||
use rustc_span::source_map::Spanned;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use syntax::ast::{self, FloatTy, Ident, IntTy, Name, NodeId, UintTy};
|
||||
use syntax::ast::{Crate, CRATE_NODE_ID};
|
||||
use syntax::ast::{ItemKind, Path};
|
||||
use syntax::attr;
|
||||
use syntax::print::pprust;
|
||||
use syntax::source_map::Spanned;
|
||||
use syntax::symbol::{kw, sym};
|
||||
use syntax::visit::{self, Visitor};
|
||||
use syntax::{struct_span_err, unwrap_or};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue