-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Don't glob-import overlapping variant names in test/codegen/match-optimizes-away.rs. #46078
Conversation
|
||
#[no_mangle] | ||
pub fn three_valued(x: Three) -> Three { | ||
// CHECK-LABEL: @three_valued | ||
// CHECK-NEXT: {{^.*:$}} | ||
// CHECK-NEXT: ret i8 %0 | ||
match x { | ||
First => First, |
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.
Oh man, this is plain evil.
I'll make an issue for this.
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.
@bors r+ |
📌 Commit c3358a4 has been approved by |
⌛ Testing commit c3358a4 with merge 270fd731c1acf82ff4edfcb228cbaffce4758fdb... |
The test added in #45821 wasn't really testing anything because of an overlap between glob imports of enum variants, so it was actually doing
match x { y => y }
, alongside triggering warnings.