Skip to content

Commit 04eee2e

Browse files
committed
Don't use remap-path-prefix in dep-info files.
1 parent 6a91782 commit 04eee2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_interface/passes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ fn write_out_deps(compiler: &Compiler, outputs: &OutputFilenames, out_filenames:
661661
.iter()
662662
.filter(|fmap| fmap.is_real_file())
663663
.filter(|fmap| !fmap.is_imported())
664-
.map(|fmap| escape_dep_filename(&fmap.name))
664+
.map(|fmap| escape_dep_filename(&fmap.unmapped_path.as_ref().unwrap_or(&fmap.name)))
665665
.collect();
666666

667667
if sess.binary_dep_depinfo() {

0 commit comments

Comments
 (0)