]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_errors/json/tests.rs
clean up error codes explanation
[rust.git] / src / librustc_errors / json / tests.rs
index a96bf715858f37eb862c76e573bbc2323c7b9540..35912901d688a3eca5744f09003e474a15ce80c3 100644 (file)
@@ -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 @@ fn flush(&mut self) -> io::Result<()> {
 }
 
 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.