Commit 0e7ebb4
committed
Auto merge of #150110 - Urgau:remap-relative-library, r=jieyouxu
Prefer remapping the relative `library/` and `compiler/` directories
This is done to avoid leaking the relative paths to the standard library after the overall of filenames in #149709.
Noted that the paths were already leaking before, but to a lesser extent since most (but not all) the paths embedded in the distributed `rlib` were absolute.
In general Cargo compiles workspace members with relative paths, so it's better anyway to remap the relative path.
In addition to our tests I have manually confirmed that it also works as expected for the printed diagnostics paths.
cf. https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/remapping.20of.20the.20standard.20library/near/564093571File tree
2 files changed
+5
-12
lines changed- compiler/rustc_metadata/src/rmeta
- src/bootstrap/src/core/builder
2 files changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
| 1678 | + | |
| 1679 | + | |
1681 | 1680 | | |
1682 | 1681 | | |
1683 | 1682 | | |
1684 | 1683 | | |
1685 | 1684 | | |
1686 | | - | |
| 1685 | + | |
1687 | 1686 | | |
1688 | 1687 | | |
1689 | 1688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
| 1035 | + | |
1039 | 1036 | | |
1040 | 1037 | | |
1041 | 1038 | | |
| |||
1047 | 1044 | | |
1048 | 1045 | | |
1049 | 1046 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
| 1047 | + | |
1054 | 1048 | | |
1055 | 1049 | | |
1056 | 1050 | | |
| |||
0 commit comments