Don't use remapped path when loading modules and include files
This commit is contained in:
parent
46ef6208f8
commit
c27a82f193
9 changed files with 49 additions and 11 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 = PathBuf::from(sess.codemap().span_to_filename(parser.span));
|
||||
parser.directory.path = sess.codemap().span_to_path(parser.span);
|
||||
parser.directory.path.pop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue