diff options
Diffstat (limited to 'src/librustc_errors/json/tests.rs')
| -rw-r--r-- | src/librustc_errors/json/tests.rs | 8 |
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. |
