diff options
Diffstat (limited to 'src/librustc_errors/json.rs')
| -rw-r--r-- | src/librustc_errors/json.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_errors/json.rs b/src/librustc_errors/json.rs index 5f529c08c78..29d3122636e 100644 --- a/src/librustc_errors/json.rs +++ b/src/librustc_errors/json.rs @@ -9,7 +9,7 @@ // FIXME: spec the JSON output properly. -use syntax_pos::source_map::{FilePathMapping, SourceMap}; +use rustc_span::source_map::{FilePathMapping, SourceMap}; use crate::emitter::{Emitter, HumanReadableErrorType}; use crate::registry::Registry; @@ -17,11 +17,11 @@ use crate::{Applicability, DiagnosticId}; use crate::{CodeSuggestion, SubDiagnostic}; use rustc_data_structures::sync::Lrc; +use rustc_span::{MacroBacktrace, MultiSpan, Span, SpanLabel}; use std::io::{self, Write}; use std::path::Path; use std::sync::{Arc, Mutex}; use std::vec; -use syntax_pos::{MacroBacktrace, MultiSpan, Span, SpanLabel}; use rustc_serialize::json::{as_json, as_pretty_json}; @@ -378,7 +378,7 @@ impl DiagnosticSpan { impl DiagnosticSpanLine { fn line_from_source_file( - fm: &syntax_pos::SourceFile, + fm: &rustc_span::SourceFile, index: usize, h_start: usize, h_end: usize, |
