Rollup merge of #122129 - tgross35:rustcdocs-host-only, r=onur-ozkan

Set `RustcDocs` to only run on host

`./x dist` currently crashes when cross compiling. Add the fix described by `@catamorphism` in https://github.com/rust-lang/rust/issues/110071.

Fixes #110071
This commit is contained in:
Guillaume Gomez 2024-03-07 15:07:10 +01:00 committed by GitHub
commit ce9a6adba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,6 +129,7 @@ pub struct RustcDocs {
impl Step for RustcDocs {
type Output = Option<GeneratedTarball>;
const DEFAULT: bool = true;
const ONLY_HOSTS: bool = true;
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
let builder = run.builder;