about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-18 20:56:18 +0100
committerGitHub <noreply@github.com>2024-01-18 20:56:18 +0100
commit1caa419a42d74832e3bc30e6874c9712147e5811 (patch)
tree2b152be18e3f463caa89faa9d2ee12a9ac8592cc /compiler/rustc_hir_analysis/src
parent8424f8e8cdf07010967a57584fd647b30e930d4d (diff)
parent4b7e0a0b56aa2446e670dfd6558380a1039a86aa (diff)
downloadrust-1caa419a42d74832e3bc30e6874c9712147e5811.tar.gz
rust-1caa419a42d74832e3bc30e6874c9712147e5811.zip
Rollup merge of #119582 - arlosi:bootstrap-vendor-remap, r=wesleywiser
bootstrap: handle vendored sources when remapping crate paths

#115872 introduced a feature to add path remapping for crate dependencies, but only when they came from Cargo's registry cache, not a vendor directory.

This caused builds that used remapped debuginfo and vendor directories to fail with:
```
std::fs::read_dir(registry_src) failed with No such file or directory (os error 2)
```
or (if the `registry/src` directory exists but is empty)
```
error: --remap-path-prefix must contain '=' between FROM and TO
```

Fixes #117885 by explicitly supporting the `vendor` directory and adding it to `RUSTC_CARGO_REGISTRY_SRC_TO_REMAP`.

Note that `bootstrap.py` already assumes that `./vendor` within the rust repo is the only supported vendoring location.

r? `@pietroalbini`
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions