-
Notifications
You must be signed in to change notification settings - Fork 13.3k
remove expect() in unnecessary_transmutes
#140284
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
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
#140277 has EDIT: a reproducer #140277 (comment), but try to trim it down further for the regression test. |
r? jieyouxu |
a612173
to
29d3e49
Compare
@rustbot ready |
compiler/rustc_mir_transform/src/check_unnecessary_transmutes.rs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
29d3e49
to
b9a5c59
Compare
This comment has been minimized.
This comment has been minimized.
tests/ui/transmute/unnecessary-transmute-path-remap-ice-140277.rs
Outdated
Show resolved
Hide resolved
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
b9a5c59
to
5b55942
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@bors r+ rollup |
5b55942
to
d3a4ebc
Compare
@bors r- |
r=me after PR CI is green @bors delegate+ rollup |
…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
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
removes expect() from #136083 and fixes #140277
includes regression test
r? lcnr