Skip to content

Fix --remap-path-prefix not correctly remapping rust-src component paths and unify handling of path mapping with virtualized paths #83813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add test for --remap-path-prefix on std imports
  • Loading branch information
cbeuw committed May 4, 2021
commit 65520ec802f77ab191423f3a1507d6c0be7cfb9c
12 changes: 12 additions & 0 deletions src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// ignore-windows

// compile-flags: -g -C no-prepopulate-passes --remap-path-prefix=/=/the/root/

// Here we check that imported code from std has their path remapped

// CHECK: !DIFile(filename: "{{/the/root/.*/library/std/src/panic.rs}}"
fn main() {
std::thread::spawn(|| {
println!("hello");
});
}