Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#95417 - ehuss:doc-no_std-error, r=Dylan-DPC
bootstrap: better error message for no_std docs Currently if one tries to build std documentation for a no_std target, you get a confusing error message: `error: The argument '--package [<SPEC>...]' was provided more than once, but cannot be used multiple times` This is because [`std_cargo`](https://github.com/rust-lang/rust/blob/600ec284838c52d1f6657c2cf0097b58970b133b/src/bootstrap/compile.rs#L299-L305) has a built-in `-p alloc` argument that conflicts with the `cargo rustdoc` command used in the Std doc step. This just adds a better error message in this scenario. It may be possible to fix this correctly, but that would likely be a bit more of an invasive change that I don't have time for right now.
- Loading branch information