Skip to content

Conversation

@jyn514
Copy link
Member

@jyn514 jyn514 commented Oct 28, 2025

In general, the rationale for --open is to only open HTML files if they were "explicitly" invoked from the CLI (e.g. x doc --open library/core). The existing logic did not do that. Instead it opened the docs unconditionally when a subset of the crates was requested. This is unfortunate for other Steps in bootstrap, which may wish to ensure() the standard library docs without opening them.

Change Std to check if it was explicitly invoked, rather than assuming it's the case.

In general, the rationale for `--open` is to only open HTML files if
they were "explicitly" invoked from the CLI (e.g. `x doc --open
library/core`). The existing logic did not do that. Instead it opened
the docs unconditionally when a subset of the crates was requested. This
is unfortunate for other Steps in bootstrap, which may wish to `ensure()`
the standard library docs without opening them.

Change `Std` to check if it was explicitly invoked, rather than assuming
it's the case.
@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 Oct 28, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 28, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@Kobzol
Copy link
Member

Kobzol commented Oct 28, 2025

Makes sense, thanks!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 28, 2025

📌 Commit 706d600 has been approved by Kobzol

It is now in the queue for this repository.

@bors bors 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 Oct 28, 2025
bors added a commit that referenced this pull request Oct 29, 2025
Rollup of 5 pull requests

Successful merges:

 - #144444 (Contract variable declarations)
 - #147281 (Make diagnostics clearer for binop-related errors in foreign crates)
 - #148131 (Skip parameter attribute deduction for MIR with `spread_arg`)
 - #148224 (bootstrap: `ensure(doc::Std)` no longer opens a browser)
 - #148226 (Bootstrap update)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e546800 into rust-lang:master Oct 29, 2025
11 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Oct 29, 2025
rust-timer added a commit that referenced this pull request Oct 29, 2025
Rollup merge of #148224 - jyn514:doc-open, r=Kobzol

bootstrap: `ensure(doc::Std)` no longer opens a browser

In general, the rationale for `--open` is to only open HTML files if they were "explicitly" invoked from the CLI (e.g. `x doc --open library/core`). The existing logic did not do that. Instead it opened the docs unconditionally when a subset of the crates was requested. This is unfortunate for other Steps in bootstrap, which may wish to `ensure()` the standard library docs without opening them.

Change `Std` to check if it was explicitly invoked, rather than assuming it's the case.
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.

5 participants