about summary refs log tree commit diff
path: root/src/librustc_errors/json
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_errors/json
parent38aa6bdfd705ea0604d7d5dd9fabc5e8f853a4fc (diff)
downloadrust-70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae.tar.gz
rust-70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae.zip
Rename `syntax_pos` to `rustc_span` in source code
Diffstat (limited to 'src/librustc_errors/json')
-rw-r--r--src/librustc_errors/json/tests.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_errors/json/tests.rs b/src/librustc_errors/json/tests.rs
index a96bf715858..35912901d68 100644
--- a/src/librustc_errors/json/tests.rs
+++ b/src/librustc_errors/json/tests.rs
@@ -1,12 +1,12 @@
 use super::*;
 
 use crate::json::JsonEmitter;
-use syntax_pos::source_map::{FilePathMapping, SourceMap};
+use rustc_span::source_map::{FilePathMapping, SourceMap};
 
 use crate::emitter::{ColorConfig, HumanReadableErrorType};
 use crate::Handler;
 use rustc_serialize::json::decode;
-use syntax_pos::{BytePos, Span};
+use rustc_span::{BytePos, Span};
 
 use std::str;
 
@@ -40,8 +40,8 @@ impl<T: Write> Write for Shared<T> {
 }
 
 fn with_default_globals(f: impl FnOnce()) {
-    let globals = syntax_pos::Globals::new(syntax_pos::edition::DEFAULT_EDITION);
-    syntax_pos::GLOBALS.set(&globals, || syntax_pos::GLOBALS.set(&globals, f))
+    let globals = rustc_span::Globals::new(rustc_span::edition::DEFAULT_EDITION);
+    rustc_span::GLOBALS.set(&globals, || rustc_span::GLOBALS.set(&globals, f))
 }
 
 /// Test the span yields correct positions in JSON.