rustc: Tweak the effect of --jobs on frontend parallelism - #160697
Merged
Merged
Conversation
petrochenkov
commented
Aug 7, 2026
| - otherwise if `jobs` is passed, then it is used as the limit, | ||
| - otherwise `32` is used as the limit or there's no limit in case of an inherited jobserver, | ||
| this default may change. | ||
| - otherwise the number of available logical CPUs is used as the limit, this default may change. |
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
Author
|
(Unrelated failure in libc tests.) |
Contributor
Author
|
ping @bjorn3, it's been 3.5 weeks |
Member
|
@bors r+ |
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 15, 2026
rustc: Tweak the effect of `--jobs` on frontend parallelism We need to be able to express both of these things for the frontend parallelism: - "Use exactly `N` threads", `--jobs-frontend=N` does this. - "Use some default number of threads, but not larger than `N`", `--jobs=N` will do it after this PR. The "default number" may be 1 now, or 2 during the upcoming nightly testing, or 4 or 8 after the stabilization if we decide to cap the parallelism. Part of rust-lang/compiler-team#1005. r? @bjorn3
Contributor
|
💔 Test for a6a189b failed: CI. Failed job:
|
Contributor
Author
|
@bors retry |
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 16, 2026
Rollup of 10 pull requests Successful merges: - #156216 (implement const Iterator for Range) - #160697 (rustc: Tweak the effect of `--jobs` on frontend parallelism) - #162748 (Enable LLVM Thin LTO for LoongArch64) - #162769 (Yeet the `DeepRegionResolver` (earlier called `OpportunisticRegionResolver`)) - #162794 (Simplify `ast::UseTreeKind`) - #162800 (Cleanups related to RefDecodable) - #162826 (wasm: fix ABI for enums with integer layout and ZST fields) - #159359 ([rustc_public] Enhance PassMode API) - #162196 (Offload cmake cleanups) - #162818 (Add regression test for malformed RPITIT bound ICE with the new solver)
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 16, 2026
Rollup merge of #160697 - petrochenkov:jobtweak, r=bjorn3 rustc: Tweak the effect of `--jobs` on frontend parallelism We need to be able to express both of these things for the frontend parallelism: - "Use exactly `N` threads", `--jobs-frontend=N` does this. - "Use some default number of threads, but not larger than `N`", `--jobs=N` will do it after this PR. The "default number" may be 1 now, or 2 during the upcoming nightly testing, or 4 or 8 after the stabilization if we decide to cap the parallelism. Part of rust-lang/compiler-team#1005. r? @bjorn3
pull Bot
pushed a commit
to LeeeeeeM/miri
that referenced
this pull request
Sep 17, 2026
Rollup of 10 pull requests Successful merges: - rust-lang/rust#156216 (implement const Iterator for Range) - rust-lang/rust#160697 (rustc: Tweak the effect of `--jobs` on frontend parallelism) - rust-lang/rust#162748 (Enable LLVM Thin LTO for LoongArch64) - rust-lang/rust#162769 (Yeet the `DeepRegionResolver` (earlier called `OpportunisticRegionResolver`)) - rust-lang/rust#162794 (Simplify `ast::UseTreeKind`) - rust-lang/rust#162800 (Cleanups related to RefDecodable) - rust-lang/rust#162826 (wasm: fix ABI for enums with integer layout and ZST fields) - rust-lang/rust#159359 ([rustc_public] Enhance PassMode API) - rust-lang/rust#162196 (Offload cmake cleanups) - rust-lang/rust#162818 (Add regression test for malformed RPITIT bound ICE with the new solver)
pull Bot
pushed a commit
to asukaminato0721/rust-clippy
that referenced
this pull request
Sep 17, 2026
Rollup of 10 pull requests Successful merges: - rust-lang/rust#156216 (implement const Iterator for Range) - rust-lang/rust#160697 (rustc: Tweak the effect of `--jobs` on frontend parallelism) - rust-lang/rust#162748 (Enable LLVM Thin LTO for LoongArch64) - rust-lang/rust#162769 (Yeet the `DeepRegionResolver` (earlier called `OpportunisticRegionResolver`)) - rust-lang/rust#162794 (Simplify `ast::UseTreeKind`) - rust-lang/rust#162800 (Cleanups related to RefDecodable) - rust-lang/rust#162826 (wasm: fix ABI for enums with integer layout and ZST fields) - rust-lang/rust#159359 ([rustc_public] Enhance PassMode API) - rust-lang/rust#162196 (Offload cmake cleanups) - rust-lang/rust#162818 (Add regression test for malformed RPITIT bound ICE with the new solver)
github-actions Bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this pull request
Sep 17, 2026
Rollup of 10 pull requests Successful merges: - rust-lang/rust#156216 (implement const Iterator for Range) - rust-lang/rust#160697 (rustc: Tweak the effect of `--jobs` on frontend parallelism) - rust-lang/rust#162748 (Enable LLVM Thin LTO for LoongArch64) - rust-lang/rust#162769 (Yeet the `DeepRegionResolver` (earlier called `OpportunisticRegionResolver`)) - rust-lang/rust#162794 (Simplify `ast::UseTreeKind`) - rust-lang/rust#162800 (Cleanups related to RefDecodable) - rust-lang/rust#162826 (wasm: fix ABI for enums with integer layout and ZST fields) - rust-lang/rust#159359 ([rustc_public] Enhance PassMode API) - rust-lang/rust#162196 (Offload cmake cleanups) - rust-lang/rust#162818 (Add regression test for malformed RPITIT bound ICE with the new solver)
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.
We need to be able to express both of these things for the frontend parallelism:
Nthreads",--jobs-frontend=Ndoes this.N",--jobs=Nwill do it after this PR.The "default number" may be 1 now, or 2 during the upcoming nightly testing, or 4 or 8 after the stabilization if we decide to cap the parallelism.
Part of rust-lang/compiler-team#1005.
r? @bjorn3