remove expect() in unnecessary_transmutes#140284
Merged
bors merged 1 commit intorust-lang:masterfrom Apr 25, 2025
Merged
Conversation
Collaborator
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
jieyouxu
requested changes
Apr 25, 2025
Member
jieyouxu
left a comment
There was a problem hiding this comment.
This needs a regression test, both to check that this fix indeed fixes the reported regression, and to make sure it doesn't regress in the future.
Member
|
#140277 has EDIT: a reproducer #140277 (comment), but try to trim it down further for the regression test. |
Member
|
r? jieyouxu |
a612173 to
29d3e49
Compare
Contributor
Author
|
@rustbot ready |
jieyouxu
reviewed
Apr 25, 2025
compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
jieyouxu
reviewed
Apr 25, 2025
29d3e49 to
b9a5c59
Compare
jieyouxu
reviewed
Apr 25, 2025
This comment has been minimized.
This comment has been minimized.
jieyouxu
reviewed
Apr 25, 2025
tests/ui/transmute/unnecessary-transmute-path-remap-ice-140277.rs
Outdated
Show resolved
Hide resolved
Member
|
@rustbot author |
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
b9a5c59 to
5b55942
Compare
Member
|
@bors r+ rollup |
Collaborator
5b55942 to
d3a4ebc
Compare
Member
|
@bors r- |
Member
|
r=me after PR CI is green @bors delegate+ rollup |
Collaborator
Contributor
Author
Collaborator
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Apr 25, 2025
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#137683 (Add a tidy check for GCC submodule version) - rust-lang#138968 (Update the index of Result to make the summary more comprehensive) - rust-lang#139572 (docs(std): mention const blocks in const keyword doc page) - rust-lang#140152 (Unify the format of rustc cli flags) - rust-lang#140193 (fix ICE in `#[naked]` attribute validation) - rust-lang#140205 (Tidying up UI tests [2/N]) - rust-lang#140284 (remove expect() in `unnecessary_transmutes`) - rust-lang#140290 (rustdoc: fix typo change from equivelent to equivalent) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Apr 25, 2025
Rollup merge of rust-lang#140284 - bend-n:fix-expectation-unmet, r=jieyouxu remove expect() in `unnecessary_transmutes` removes expect() from rust-lang#136083 and fixes rust-lang#140277 includes regression test r? lcnr
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
May 9, 2025
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#137683 (Add a tidy check for GCC submodule version) - rust-lang#138968 (Update the index of Result to make the summary more comprehensive) - rust-lang#139572 (docs(std): mention const blocks in const keyword doc page) - rust-lang#140152 (Unify the format of rustc cli flags) - rust-lang#140193 (fix ICE in `#[naked]` attribute validation) - rust-lang#140205 (Tidying up UI tests [2/N]) - rust-lang#140284 (remove expect() in `unnecessary_transmutes`) - rust-lang#140290 (rustdoc: fix typo change from equivelent to equivalent) r? `@ghost` `@rustbot` modify labels: rollup
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.
removes expect() from #136083 and fixes #140277
includes regression test
r? lcnr