Rollup of 6 pull requests - #162687
Merged
Merged
Conversation
After the separation from `DenseBitSet` and the removal of unused methods, growable bitsets have no need to track an explicit domain size separate from the length of their storage vec.
The bitset entries tracked by this code don't have a naturally fixed domain, so using GrowableBitSet makes more sense than repeatedly resizing a DenseBitSet.
The direct dependency from `rustc_codegen_ssa` to `rustc_mir_transform` allowed codegen to reuse some MIR-transform code for identifying unnecessary landing pads. However, we can achieve the same result by calling through a hook on `TyCtxt`, eliminating the crate dependency.
Use GrowableBitSet in the main loop of `rustc_mir_transform::sroa` - Follow-up to rust-lang#161957 --- The first commit is a cleanup based on rust-lang#161957 (comment) by @panstromek. After having disconnected GrowableBitSet from DenseBitSet and removed unused methods, there is no longer any reason to keep track of a separate `domain_size` in GrowableBitSet. After that, I wanted to get rid of `DenseBitSet::enlarge`, since having it around is not a good fit for the intended purpose of DenseBitSet as a fixed-domain set. After looking more closely at the code in `rustc_mir_transform::sroa` that uses it, I concluded that that code would be better off using GrowableBitSet instead. GrowableBitSet is just as dense, but avoids the need to set a fixed domain size in advance. The changes to SROA require adding `GrowableBitSet::union`, which is easier after having removed `domain_size`. (I am not deeply familiar with the SROA pass, but its usage of bitsets seems fairly straightforward in this case.) There should be no change to compiler output.
…uppe Disconnect `rustc_codegen_ssa` from `rustc_mir_transform` The direct dependency from `rustc_codegen_ssa` to `rustc_mir_transform` allowed codegen to reuse some MIR-transform code for identifying unnecessary landing pads (for rust-lang#143208). However, we can achieve the same result by calling through a hook on `TyCtxt`, eliminating the crate dependency. --- There should be no change to compiler output.
…yUwU Remove unused arguments of functions That these arguments are unused was hidden by the `#[trace::instrument]` macro, which uses the arguments. I don't see an easy way to avoid this from happening in the future.
…ypo, r=jieyouxu
Rustdoc issue template: fix typo in comment ("thorugh")
…umeGomez Add `E0747` explanation for `type/const` mismatch case Fixes rust-lang#162320 r? @GuillaumeGomez
…nna-kruppe Stabilize `Vec::from_fn` Tracking issue: rust-lang#149698.
Member
Author
Contributor
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 12, 2026
Rollup of 6 pull requests try-job: dist-various-1 try-job: test-various try-job: test-x86_64-gnu-aux try-job: test-x86_64-gnu-llvm-21-3 try-job: test-x86_64-msvc-1 try-job: test-aarch64-apple-1 try-job: test-aarch64-apple-2 try-job: test-x86_64-mingw-1 try-job: test-i686-msvc try-job: test-armhf-gnu
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 12, 2026
…uwer Rollup of 6 pull requests Successful merges: - #162623 (Use GrowableBitSet in the main loop of `rustc_mir_transform::sroa`) - #162678 (Disconnect `rustc_codegen_ssa` from `rustc_mir_transform`) - #162641 (Remove unused arguments of functions) - #162663 (Rustdoc issue template: fix typo in comment ("thorugh")) - #162684 (Add `E0747` explanation for `type/const` mismatch case) - #162685 (Stabilize `Vec::from_fn`)
Member
Author
|
@bors yield |
Contributor
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #160377. |
Contributor
This comment has been minimized.
This comment has been minimized.
Contributor
This was referenced Sep 12, 2026
Contributor
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing adcc5f3 (parent) -> 809936e (this PR) Test differencesShow 393 test diffsStage 0
Stage 1
Additionally, 391 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 809936eac66c547a5127ce1da805f0d3a6789b98 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
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.
Successful merges:
rustc_mir_transform::sroa#162623 (Use GrowableBitSet in the main loop ofrustc_mir_transform::sroa)rustc_codegen_ssafromrustc_mir_transform#162678 (Disconnectrustc_codegen_ssafromrustc_mir_transform)E0747explanation fortype/constmismatch case #162684 (AddE0747explanation fortype/constmismatch case)Vec::from_fn#162685 (StabilizeVec::from_fn)r? @ghost
Create a similar rollup