You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Panic in debug profile for tuple deconstruct with arity mismatch
Fixesrust-lang#17585, which doesn't affect daily use cases but quite annoying in development of r-a itself like writing tests.
This PR applies similar approach as in rust-lang#17534, skipping match usefulness check for patterns containing errors
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Aug 1, 2024
fix: Panic in debug profile for tuple deconstruct with arity mismatch
Fixesrust-lang#17585, which doesn't affect daily use cases but quite annoying in development of r-a itself like writing tests.
This PR applies similar approach as in rust-lang#17534, skipping match usefulness check for patterns containing errors
Right now, if I have the following:
I cannot have a static instance of the struct like so:
I get the following error:
Edit: This seems like a dup of #17169
The text was updated successfully, but these errors were encountered: