Use local and remapped paths where appropriate

This commit is contained in:
Andy Wang
2021-04-19 23:27:02 +01:00
parent fb4f6439f6
commit 5417b45c26
28 changed files with 85 additions and 74 deletions

View File

@@ -61,7 +61,9 @@ pub fn expand_file(
let topmost = cx.expansion_cause().unwrap_or(sp);
let loc = cx.source_map().lookup_char_pos(topmost.lo());
base::MacEager::expr(cx.expr_str(topmost, Symbol::intern(&loc.file.name.to_string())))
base::MacEager::expr(
cx.expr_str(topmost, Symbol::intern(&loc.file.name.prefer_remapped().to_string_lossy())),
)
}
pub fn expand_stringify(