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
AST::IdentifierPattern should lower to HIR::PathPattern only when identifiers resolve to enum variants or structs.
However, they always lower to HIR::IdentifierPattern which introduces a new binding.
Summary
AST::IdentifierPattern
should lower toHIR::PathPattern
only when identifiers resolve to enum variants or structs.However, they always lower to
HIR::IdentifierPattern
which introduces a new binding.See https://doc.rust-lang.org/reference/patterns.html
Reproducer
I tried this code:
Does the code make use of any (1.49) nightly feature ?
Godbolt link
No response
Actual behavior
The current behavior is...
Expected behavior
I expected to see...
GCC Version
master
The text was updated successfully, but these errors were encountered: