Use local and remapped paths where appropriate
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user