Commit 2f74b54
authored
refactor: use Path::push to construct remap-path-prefix (#14908)
### What does this PR try to resolve?
It creates paths with correct separators for different systems.
### How should we test and review this PR?
Try out `-Ztrim-paths` on Windows. Run `cargo build --verbose` and see
if slashes in `--remap-path-prefix` use the system's path separators.
```toml
cargo-features = ["trim-paths"]
[package]
name = "foo"
[profile.release]trim-paths = true
```
### Additional information1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
1313 | | - | |
1314 | 1313 | | |
1315 | | - | |
1316 | | - | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1317 | 1323 | | |
1318 | 1324 | | |
1319 | 1325 | | |
| |||
0 commit comments