x doc compiler/rustc
panics
#95447
Labels
C-bug
Category: This is a bug.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I tried this code:
x doc compiler/rustc --stage 0
I expected to see this happen: bootstrap documents the whole compiler, like it does for
x doc compiler
.Instead, this happened:
The problem is that
impl Step for Rustc
is too naive and expects the name of each crate to match its file path on disk:rust/src/bootstrap/doc.rs
Lines 625 to 633 in 05d2221
rust/src/bootstrap/lib.rs
Lines 1319 to 1324 in 05d2221
It needs to map from the path to the name somehow. There's already a way to go from the name to the path:
rust/src/bootstrap/lib.rs
Lines 320 to 322 in 05d2221
but I don't think there's a way to do the reverse.
Meta
HEAD is 11909e3.
@rustbot label +A-bootstrap
The text was updated successfully, but these errors were encountered: