Skip to content

bootstrap: Fix broken path for ./x doc compiler/rustc --open - #162318

Open
Zalathar wants to merge 1 commit into
rust-lang:mainfrom
Zalathar:doc-rustc-open
Open

bootstrap: Fix broken path for ./x doc compiler/rustc --open#162318
Zalathar wants to merge 1 commit into
rust-lang:mainfrom
Zalathar:doc-rustc-open

Conversation

@Zalathar

@Zalathar Zalathar commented Sep 5, 2026

Copy link
Copy Markdown
Member

Currently this fails because the correct path contains rustc_main, but bootstrap tries to use a path containing rustc-main instead.

The existing bug is amplified by the fact that currently doing ./x doc rustc_middle --open for any compiler crate will instead document the entire compiler, and then try to open the docs for rustc-main, since it's the first crate in the crate list.

With this fix, it is at least possible to view the resulting whole-compiler docs.

r? Kobzol (or bootstrap)

Currently this fails because the correct path contains `rustc_main`, but
bootstrap tries to open a nonexistent path containing `rustc-main` instead.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Sep 5, 2026
@rustbot

rustbot commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Kobzol is not on the review rotation at the moment.
They may take a while to respond.

@Kobzol

Kobzol commented Sep 5, 2026

Copy link
Copy Markdown
Member

Thank you!

@bors r+ rollup

@rust-bors

rust-bors Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 28049e0 has been approved by Kobzol

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 5, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Sep 5, 2026
bootstrap: Fix broken path for `./x doc compiler/rustc --open`

Currently this fails because the correct path contains `rustc_main`, but bootstrap tries to use a path containing `rustc-main` instead.

The existing bug is amplified by the fact that currently doing `./x doc rustc_middle --open` for *any* compiler crate will instead document the entire compiler, and then try to open the docs for `rustc-main`, since it's the first crate in the crate list.

With this fix, it is at least possible to view the resulting whole-compiler docs.

r? Kobzol (or bootstrap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants