about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa/mir/debuginfo.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-12-31 20:15:40 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-01-01 09:15:18 +0300
commit70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae (patch)
treeed077cbfc27cfa99565965681f03138285b1cb00 /src/librustc_codegen_ssa/mir/debuginfo.rs
parent38aa6bdfd705ea0604d7d5dd9fabc5e8f853a4fc (diff)
downloadrust-70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae.tar.gz
rust-70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae.zip
Rename `syntax_pos` to `rustc_span` in source code
Diffstat (limited to 'src/librustc_codegen_ssa/mir/debuginfo.rs')
-rw-r--r--src/librustc_codegen_ssa/mir/debuginfo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/mir/debuginfo.rs b/src/librustc_codegen_ssa/mir/debuginfo.rs
index 0935b61a86c..5d26b84b2c9 100644
--- a/src/librustc_codegen_ssa/mir/debuginfo.rs
+++ b/src/librustc_codegen_ssa/mir/debuginfo.rs
@@ -6,8 +6,8 @@ use rustc::ty::layout::{LayoutOf, Size};
 use rustc::ty::TyCtxt;
 use rustc_index::vec::IndexVec;
 
+use rustc_span::{BytePos, Span};
 use syntax::symbol::kw;
-use syntax_pos::{BytePos, Span};
 
 use super::OperandValue;
 use super::{FunctionCx, LocalRef};
@@ -65,7 +65,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
             // Walk up the macro expansion chain until we reach a non-expanded span.
             // We also stop at the function body level because no line stepping can occur
             // at the level above that.
-            let span = syntax_pos::hygiene::walk_chain(source_info.span, self.mir.span.ctxt());
+            let span = rustc_span::hygiene::walk_chain(source_info.span, self.mir.span.ctxt());
             let scope = self.scope_metadata_for_loc(source_info.scope, span.lo());
             // Use span of the outermost expansion site, while keeping the original lexical scope.
             (scope, span)