Auto merge of #151416 - rami3l:dist/rustc-docs-target-limit, r=jieyouxu

fix(build-manifest)!: limit `rustc-docs` to current host target in the manifest
This commit is contained in:
bors 2026-01-21 11:11:11 +00:00
commit 625b63f9e1

View file

@ -301,11 +301,12 @@ impl Builder {
| PkgType::LlvmTools
| PkgType::RustAnalysis
| PkgType::JsonDocs
| PkgType::RustcDocs
| PkgType::RustcCodegenCranelift
| PkgType::LlvmBitcodeLinker => {
extensions.push(host_component(pkg));
}
PkgType::RustcDev | PkgType::RustcDocs => {
PkgType::RustcDev => {
extensions.extend(HOSTS.iter().map(|target| Component::from_pkg(pkg, target)));
}
PkgType::RustSrc => {