-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE / LLVM ERROR with tuple structure match #14308
Comments
lilyball
added a commit
to lilyball/rust
that referenced
this issue
May 21, 2014
Enum wildcard patterns in match behave wrong when applied to tuple structs. They either ICE or cause an LLVM error.
lilyball
added a commit
to lilyball/rust
that referenced
this issue
May 21, 2014
lilyball
added a commit
to lilyball/rust
that referenced
this issue
May 21, 2014
Consider PatEnums constructed with A(..) to be candidates for tuple struct patterns, not just ones constructed with A(a,b,c). If these patterns shouldn't be valid tuple struct patterns (as they're equivalent to _), this needs to be caught before we get to trans. Fixes rust-lang#14308.
bors
added a commit
that referenced
this issue
May 23, 2014
Yay! |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Feb 27, 2025
…lang#14308) The `looks_like_refdef` function was assuming the range was valid, this just adds a check to ensure that is the case. It also works around a subtraction underflow due to the same invalid range. changelog: [`doc_nested_refdefs`]: Fix rust-lang#14287 by avoiding invalid ranges
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Mar 20, 2025
…#14310) changelog: [`implicit_saturating_sub`, `inverted_saturating_sub`]: extend lints from local variables to side-effect free expressions Noticed when rust-lang#14308 introduced an implicit `saturating_sub` operation and didn't get tagged.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input
Output
Input
Output
The text was updated successfully, but these errors were encountered: