Remove --all-targets flag from x check - #160681
Open
Kobzol wants to merge 1 commit into
Open
Conversation
Collaborator
|
This PR modifies If appropriate, please update |
Collaborator
|
r? @clubby789 rustbot has assigned @clubby789. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
And always run `check --all-targets` when checking the compiler.
Kobzol
force-pushed
the
bootstrap-check-all-targets
branch
from
August 7, 2026 10:14
7070a7b to
a5f199d
Compare
Member
|
Does this end up checking the compiler crates twice, once as a library crate and once again with (That might still be desirable, but if so then it’s effectively double the work.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chris was trying to get
x check library --all-targetsworking in https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Checking.20std.20tests.20without.20building/with/613735399.I took a look into this and realized that the
x check --all-targetsflag is literally unused - nothing in bootstrap was reading it. So the compiler and library were never checked with--all-targets, but on the other hands all tools are checked with--all-targets(or equivalent) by default, even without the flag.So I think that we have two options:
x check --all-targets, and only check all targets for tools when the flag is passed. So checking tools would do less work by default.Note that checking std with
--all-targetsis broken, it just doesn't seem to work when we just pass--all-targetsto it.Happy to hear thoughts on this.