diff options
| author | Andy Wang <cbeuw.andy@gmail.com> | 2021-04-19 23:27:02 +0100 |
|---|---|---|
| committer | Andy Wang <cbeuw.andy@gmail.com> | 2021-05-05 15:31:28 +0100 |
| commit | 5417b45c2676dcd396f007bd89ed0cd55d085768 (patch) | |
| tree | 25a9819f523855d604aa373edb93c850f817532f /compiler/rustc_errors/src/json.rs | |
| parent | fb4f6439f62d4b940bdfab3f78771d76eacab379 (diff) | |
| download | rust-5417b45c2676dcd396f007bd89ed0cd55d085768.tar.gz rust-5417b45c2676dcd396f007bd89ed0cd55d085768.zip | |
Use local and remapped paths where appropriate
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
| -rw-r--r-- | compiler/rustc_errors/src/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/json.rs b/compiler/rustc_errors/src/json.rs index 40277006462..5d175a3ade9 100644 --- a/compiler/rustc_errors/src/json.rs +++ b/compiler/rustc_errors/src/json.rs @@ -468,7 +468,7 @@ impl DiagnosticSpan { }); DiagnosticSpan { - file_name: start.file.name.to_string(), + file_name: start.file.name.prefer_local().to_string(), byte_start: start.file.original_relative_byte_pos(span.lo()).0, byte_end: start.file.original_relative_byte_pos(span.hi()).0, line_start: start.line, |
