1
Fork 0

Rename FileMap::path and change to an Option

This commit is contained in:
Philip Craig 2017-10-03 19:44:58 +10:00
parent c27a82f193
commit 3a225c77bb
6 changed files with 23 additions and 16 deletions

View file

@ -197,7 +197,7 @@ fn res_rel_file(cx: &mut ExtCtxt, sp: syntax_pos::Span, arg: &Path) -> PathBuf {
// after macro expansion (that is, they are unhygienic).
if !arg.is_absolute() {
let callsite = sp.source_callsite();
let mut path = cx.codemap().span_to_path(callsite);
let mut path = cx.codemap().span_to_unmapped_path(callsite);
path.pop();
path.push(arg);
path