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
|
@ -525,7 +525,7 @@ impl<'a> Parser<'a> {
|
|||
if let Some(directory) = directory {
|
||||
parser.directory = directory;
|
||||
} else if parser.span != syntax_pos::DUMMY_SP {
|
||||
parser.directory.path = sess.codemap().span_to_path(parser.span);
|
||||
parser.directory.path = sess.codemap().span_to_unmapped_path(parser.span);
|
||||
parser.directory.path.pop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue