-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New enum discrimintant check doesn't work for negative numbers #143218
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: The test passes
Instead, this happened:
Meta
rustc --version --verbose:Playground link: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=c5012dd5ec0afc1bea52e85e81ff28e9
Seems to be related to #141759