-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Possible codegen regression when matching against nested enums #104519
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
anp
added
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
labels
Nov 17, 2022
rustbot
added
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
and removed
regression-untriaged
Untriaged performance or correctness regression.
labels
Nov 17, 2022
That looks like a real miscompilation :( |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-high |
rustbot
added
P-high
High priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
Nov 17, 2022
apiraino
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
Nov 17, 2022
I've found the problem; it is indeed an issue with my code in |
Since there is some work in progress to fix this: @rustbot assign @mikebenfield |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 4, 2022
rustc_codegen_ssa: Fix for codegen_get_discr When doing the optimized implementation of getting the discriminant, the arithmetic needs to be done in the tag type so wrapping behavior works correctly. Fixes rust-lang#104519
Aaron1011
pushed a commit
to Aaron1011/rust
that referenced
this issue
Jan 6, 2023
rustc_codegen_ssa: Fix for codegen_get_discr When doing the optimized implementation of getting the discriminant, the arithmetic needs to be done in the tag type so wrapping behavior works correctly. Fixes rust-lang#104519
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code (reduced from a much larger test):
(playground)
I expected to see this happen: runs with 0 exit code and no output
Instead, this happened:
Version it worked on
This code works on stable and beta, and as recently as a3c0a02.
Version with regression
This reproduces with the 2022-11-16 nightly on the playground.
cargo-bisect-rustc
suggests this was introduced by #102872.@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: