Rename FileMap::path and change to an Option
This commit is contained in:
parent
c27a82f193
commit
3a225c77bb
6 changed files with 23 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue