-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
'Unsupported constant expr' when matching on tuple-struct constants #6533
Comments
This is now a non-ICE failure. Is this something that we intend to support?
|
If the definition were instead |
Reproduced what @msullivan reported with 2ab4a6f . I agree with @alexcrichton ; doesn't seem like a milestone blocker, though. |
visiting for triage. This code no longer ICEs, but it still can't pattern match on the tuple structs. I updated the body to reflect this. |
This is accomplished by rewriting static expressions into equivalent patterns. This way, patterns referencing static variables can both participate in exhaustiveness analysis as well as be compiled down into the appropriate branch of the decision trees that match expressions are codegened to. Fixes #6533. Fixes #13626. Fixes #13731. Fixes #14576. Fixes #15393.
edited because it no longer ICEs.
Error:
The text was updated successfully, but these errors were encountered: