Path remapping: Make behavior of diagnostics output dependent on presence of --remap-path-prefix.
This commit is contained in:
parent
dfd6306d26
commit
af1b65cb18
13 changed files with 65 additions and 41 deletions
|
@ -126,7 +126,7 @@ impl AnnotateSnippetEmitterWriter {
|
|||
}
|
||||
// owned: line source, line index, annotations
|
||||
type Owned = (String, usize, Vec<crate::snippet::Annotation>);
|
||||
let filename = primary_lo.file.name.prefer_local();
|
||||
let filename = source_map.filename_for_diagnostics(&primary_lo.file.name);
|
||||
let origin = filename.to_string_lossy();
|
||||
let annotated_files: Vec<Owned> = annotated_files
|
||||
.into_iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue