Skip to content

Commit 82607d2

Browse files
committed
mv (mod) codemap source_map
1 parent cbd0595 commit 82607d2

File tree

104 files changed

+157
-153
lines changed

Some content is hidden

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

104 files changed

+157
-153
lines changed

src/librustc/hir/lowering.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ use syntax::errors;
6868
use syntax::ext::hygiene::{Mark, SyntaxContext};
6969
use syntax::print::pprust;
7070
use syntax::ptr::P;
71-
use syntax::codemap::{self, respan, CompilerDesugaringKind, Spanned};
71+
use syntax::source_map::{self, respan, CompilerDesugaringKind, Spanned};
7272
use syntax::std_inject;
7373
use syntax::symbol::{keywords, Symbol};
7474
use syntax::tokenstream::{Delimited, TokenStream, TokenTree};
@@ -614,14 +614,14 @@ impl<'a> LoweringContext<'a> {
614614

615615
fn allow_internal_unstable(&self, reason: CompilerDesugaringKind, span: Span) -> Span {
616616
let mark = Mark::fresh(Mark::root());
617-
mark.set_expn_info(codemap::ExpnInfo {
617+
mark.set_expn_info(source_map::ExpnInfo {
618618
call_site: span,
619619
def_site: Some(span),
620-
format: codemap::CompilerDesugaring(reason),
620+
format: source_map::CompilerDesugaring(reason),
621621
allow_internal_unstable: true,
622622
allow_internal_unsafe: false,
623623
local_inner_macros: false,
624-
edition: codemap::hygiene::default_edition(),
624+
edition: source_map::hygiene::default_edition(),
625625
});
626626
span.with_ctxt(SyntaxContext::empty().apply_mark(mark))
627627
}

src/librustc/hir/map/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use middle::cstore::CrateStore;
1818
use session::CrateDisambiguator;
1919
use std::iter::repeat;
2020
use syntax::ast::{NodeId, CRATE_NODE_ID};
21-
use syntax::codemap::SourceMap;
21+
use syntax::source_map::SourceMap;
2222
use syntax_pos::Span;
2323

2424
use ich::StableHashingContext;

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use middle::cstore::CrateStore;
2424
use rustc_target::spec::abi::Abi;
2525
use rustc_data_structures::svh::Svh;
2626
use syntax::ast::{self, Name, NodeId, CRATE_NODE_ID};
27-
use syntax::codemap::Spanned;
27+
use syntax::source_map::Spanned;
2828
use syntax::ext::base::MacroKind;
2929
use syntax_pos::{Span, DUMMY_SP};
3030

src/librustc/hir/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use util::nodemap::{NodeMap, FxHashSet};
2424
use mir::mono::Linkage;
2525

2626
use syntax_pos::{Span, DUMMY_SP, symbol::InternedString};
27-
use syntax::codemap::{self, Spanned};
27+
use syntax::source_map::{self, Spanned};
2828
use rustc_target::spec::abi::Abi;
2929
use syntax::ast::{self, CrateSugar, Ident, Name, NodeId, DUMMY_NODE_ID, AsmDialect};
3030
use syntax::ast::{Attribute, Lit, StrStyle, FloatTy, IntTy, UintTy, MetaItem};
@@ -1100,7 +1100,7 @@ pub type Stmt = Spanned<StmtKind>;
11001100
impl fmt::Debug for StmtKind {
11011101
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11021102
// Sadness.
1103-
let spanned = codemap::dummy_spanned(self.clone());
1103+
let spanned = source_map::dummy_spanned(self.clone());
11041104
write!(f,
11051105
"stmt({}: {})",
11061106
spanned.node.id(),

src/librustc/hir/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub use self::AnnNode::*;
1212

1313
use rustc_target::spec::abi::Abi;
1414
use syntax::ast;
15-
use syntax::codemap::{SourceMap, Spanned};
15+
use syntax::source_map::{SourceMap, Spanned};
1616
use syntax::parse::ParseSess;
1717
use syntax::parse::lexer::comments;
1818
use syntax::print::pp::{self, Breaks};

src/librustc/ich/caching_codemap_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use rustc_data_structures::sync::Lrc;
12-
use syntax::codemap::SourceMap;
12+
use syntax::source_map::SourceMap;
1313
use syntax_pos::{BytePos, SourceFile};
1414

1515
#[derive(Clone)]

src/librustc/ich/hcx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use std::cell::RefCell;
2525

2626
use syntax::ast;
2727

28-
use syntax::codemap::SourceMap;
28+
use syntax::source_map::SourceMap;
2929
use syntax::ext::hygiene::SyntaxContext;
3030
use syntax::symbol::Symbol;
3131
use syntax_pos::{Span, DUMMY_SP};

src/librustc/infer/canonical/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use rustc_data_structures::small_vec::SmallVec;
3737
use rustc_data_structures::sync::Lrc;
3838
use serialize::UseSpecializedDecodable;
3939
use std::ops::Index;
40-
use syntax::codemap::Span;
40+
use syntax::source_map::Span;
4141
use ty::fold::TypeFoldable;
4242
use ty::subst::Kind;
4343
use ty::{self, CanonicalVar, Lift, Region, Slice, TyCtxt};

src/librustc/infer/error_reporting/need_type_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use hir::intravisit::{self, Visitor, NestedVisitorMap};
1313
use infer::InferCtxt;
1414
use infer::type_variable::TypeVariableOrigin;
1515
use ty::{self, Ty, TyInfer, TyVar};
16-
use syntax::codemap::CompilerDesugaringKind;
16+
use syntax::source_map::CompilerDesugaringKind;
1717
use syntax_pos::Span;
1818
use errors::DiagnosticBuilder;
1919

src/librustc/infer/error_reporting/nice_region_error/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use infer::InferCtxt;
1212
use infer::lexical_region_resolve::RegionResolutionError;
1313
use infer::lexical_region_resolve::RegionResolutionError::*;
14-
use syntax::codemap::Span;
14+
use syntax::source_map::Span;
1515
use ty::{self, TyCtxt};
1616
use util::common::ErrorReported;
1717

0 commit comments

Comments
 (0)