X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_errors%2Femitter.rs;h=ce3a19677f2b9d9eb7c22e6f81c4536ccec8eb60;hb=d6dcbcd4e11a1b787a9db1fa43a49907e8bccecf;hp=0a3e4d3ad25c0c555244f1cdaff06feefb052884;hpb=c65547337831babea8d9052b960649309263df36;p=rust.git diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 0a3e4d3ad25..ce3a19677f2 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -10,7 +10,7 @@ use self::Destination::*; -use syntax_pos::{FileMap, Span, MultiSpan}; +use syntax_pos::{SourceFile, Span, MultiSpan}; use {Level, CodeSuggestion, DiagnosticBuilder, SubDiagnostic, SourceMapperDyn, DiagnosticId}; use snippet::{Annotation, AnnotationType, Line, MultilineAnnotation, StyledString, Style}; @@ -127,7 +127,7 @@ pub struct EmitterWriter { } struct FileWithAnnotatedLines { - file: Lrc, + file: Lrc, lines: Vec, multiline_depth: usize, } @@ -177,7 +177,7 @@ fn maybe_anonymized(&self, line_num: usize) -> String { fn preprocess_annotations(&mut self, msp: &MultiSpan) -> Vec { fn add_annotation_to_file(file_vec: &mut Vec, - file: Lrc, + file: Lrc, line_index: usize, ann: Annotation) { @@ -307,7 +307,7 @@ fn add_annotation_to_file(file_vec: &mut Vec, fn render_source_line(&self, buffer: &mut StyledBuffer, - file: Lrc, + file: Lrc, line: &Line, width_offset: usize, code_offset: usize) -> Vec<(usize, Style)> {