Closed
Description
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:
thread 'main' panicked at 'no entry found for key', src/bootstrap/lib.rs:1324:26
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:
Lines 625 to 633 in 05d2221
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:
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