diff options
| author | bors <bors@rust-lang.org> | 2017-10-05 05:16:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-05 05:16:41 +0000 |
| commit | a0db04b62bde392fb9846d4a90e3973bab09147a (patch) | |
| tree | e7f3372b427ba3d0886b44b9767affc59b2a4874 /src/libsyntax/ext/source_util.rs | |
| parent | bd36dcf7aa2c45b47fe102376222667b0a903c23 (diff) | |
| parent | 9bbd7a3b3f2f713220f429bd15466135efa7f3b7 (diff) | |
| download | rust-a0db04b62bde392fb9846d4a90e3973bab09147a.tar.gz rust-a0db04b62bde392fb9846d4a90e3973bab09147a.zip | |
Auto merge of #44940 - philipc:remap-path, r=michaelwoerister
Don't use remapped path when loading modules and include files Fixes bug reported in https://github.com/rust-lang/rust/issues/41555#issuecomment-327866056. cc @michaelwoerister
Diffstat (limited to 'src/libsyntax/ext/source_util.rs')
| -rw-r--r-- | src/libsyntax/ext/source_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs index 18a262d139a..86657e675b2 100644 --- a/src/libsyntax/ext/source_util.rs +++ b/src/libsyntax/ext/source_util.rs @@ -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 = PathBuf::from(&cx.codemap().span_to_filename(callsite)); + let mut path = cx.codemap().span_to_unmapped_path(callsite); path.pop(); path.push(arg); path |
