diff options
| author | bors <bors@rust-lang.org> | 2023-10-26 00:12:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-26 00:12:18 +0000 |
| commit | 278eaf509d0871c5aa09b6b5fec9dc72226578e2 (patch) | |
| tree | 5dd80df8b0fd67307054dbc91a385886441d16a6 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 7ac9a3a124da8f15ef53b70ff7a60b890abe83a6 (diff) | |
| parent | 85c0ce24cc748f07ba3497948d26356ff2b02f6d (diff) | |
| download | rust-278eaf509d0871c5aa09b6b5fec9dc72226578e2.tar.gz rust-278eaf509d0871c5aa09b6b5fec9dc72226578e2.zip | |
Auto merge of #115872 - ferrocene:pa-remap-cargo-home, r=clubby789
Remap Cargo dependencies to /rust/deps :warning: **This doesn't affect user-compiled programs, it only affects building the Rust compiler itself.** :warning: Right now, `rust.remap-debuginfo = true` doesn't completely remap all paths: while LLVM and rustc sources are properly remapped (respectively to `/rust/llvm` and `/rust/$commit`), Cargo dependencies still use absolute paths from the Cargo home. This never affected builds from CI much, because `CARGO_HOME=/cargo` in CI, so users see paths like this included in the precompiled binaries and libraries: ``` /cargo/registry/src/index.crates.io-6f17d22bba15001f/gimli-0.26.2/src/read/line.rs ``` Builds outside CI don't have remapping though, and it's confusing that the config flag doesn't fully do what it advertises. This PR fixes it by adding remapping for dependencies too. *All registries's* source directory are remapped to `/rust/deps`, to account for multiple registries being able to contain crates.io crates (sparse index vs git, and source replacement mirrors). This results in paths like this being included: ``` /rust/deps/gimli-0.26.2/src/read/line.rs ```
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
