Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about change in bootstrap defaults #110663

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

Mark-Simulacrum
Copy link
Member

Not a huge fan of the proposed wording, open to changes in that.

Per #106886 (comment).
cc @jonhoo

r? @cuviper perhaps?

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-release Relevant to the release subteam, which will review and decide on the PR/issue. labels Apr 22, 2023
@cuviper
Copy link
Member

cuviper commented Apr 22, 2023

Hmm, this seems like it would have bitten me, because I do list tools explicitly in Fedora, not including rustdoc, but it came out of my builds just fine. So at the very least, I think there's some hole in "we will respect a missing rustdoc in that list." Just guessing, maybe that's because I also build docs, so it was already in the sysroot and then got picked up by the cp_r(..."bin"...).

@Mark-Simulacrum
Copy link
Member Author

Yeah, that seems plausible. It seems pretty likely that we'll build it implicitly in some cases but not others. I'm not sure how to better phrase this -- in general I think I would recommend that you and others do explicitly add rustdoc to the tools list if you want it, since otherwise future iterations might e.g. error out saying "well, not asked for, refusing to build" or similar. (Particularly if/when we start looking into optimizing our CI, and e.g., cross-compiling parts from other builders or similar).

@jyn514
Copy link
Member

jyn514 commented Apr 22, 2023

I think a test failure like the one @jonhoo found is pretty bad, we should not have a supported configuration that fails tests. can we find some way for x install to allow disabling rustdoc, while still building it on demand if needed for doctests?

cc @dtolnay

@jyn514
Copy link
Member

jyn514 commented Apr 22, 2023

Ah wait I misunderstood, those are tests failing for some crate being built by the new toolchain, not for our own test suite.

Ok, that seems unavoidable if rustdoc's not installed. I think we can still have an easier transition though — @dtolnay would it be enough for x install to respect --exclude src/tools/rustdoc, without changing the default?

@Mark-Simulacrum
Copy link
Member Author

I think the change in defaults is reasonable. Rustdoc is a tool, we have a list of tools, if you don't include it there you're signaling you don't need/want it.

@cuviper
Copy link
Member

cuviper commented Apr 22, 2023

Rustdoc is a privileged tool though -- normally bundled with rustc rather than its own component. Distros keep them together too, at least on Debian and Fedora/RHEL, so I think it will be surprising to have to list it explicitly. Nevertheless, a compat note for what we already shipped seems appropriate, and I guess it doesn't matter if we nail down the specifics in that note.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 22, 2023

📌 Commit 6ecdd03 has been approved by cuviper

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 Apr 22, 2023
compiler-errors added a commit to compiler-errors/rust that referenced this pull request Apr 22, 2023
…=cuviper

Add note about change in bootstrap defaults

Not a huge fan of the proposed wording, open to changes in that.

Per rust-lang#106886 (comment).
cc `@jonhoo`

r? `@cuviper` perhaps?
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 24, 2023
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#110661 (rustdoc: clean up settings.css and settings.js)
 - rust-lang#110663 (Add note about change in bootstrap defaults)
 - rust-lang#110664 (stop `x fmt` formatting untracked directories)
 - rust-lang#110668 (Fix printing native CPU on cross-compiled compiler.)
 - rust-lang#110689 (Fix grammar in core::hint::unreachable_unchecked() docs)
 - rust-lang#110700 (Don't infer fn return type to return itself)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 77e98f4 into rust-lang:master Apr 24, 2023
@rustbot rustbot added this to the 1.71.0 milestone Apr 24, 2023
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-release Relevant to the release subteam, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants