We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffdc0c4 commit 876dc71Copy full SHA for 876dc71
src/librustc_save_analysis/span_utils.rs
@@ -15,8 +15,8 @@ impl<'a> SpanUtils<'a> {
15
}
16
17
pub fn make_filename_string(&self, file: &SourceFile) -> String {
18
- match &file.name {
19
- FileName::Real(name) if !file.name_was_remapped => {
+ match file.name.name() {
+ FileName::Real(name) if !file.name.was_remapped() => {
20
let path = name.local_path();
21
if path.is_absolute() {
22
self.sess
src/librustc_span/lib.rs
@@ -1103,6 +1103,10 @@ impl SourceFileName {
1103
fn is_real(&self) -> bool {
1104
self.name.is_real()
1105
1106
+
1107
+ pub fn was_remapped(&self) -> bool {
1108
+ self.was_remapped
1109
+ }
1110
1111
1112
impl Encodable for SourceFileName {
0 commit comments