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
Not sure if there is a BIGGER rule to solve this out, or just we don't care at the parsing stage, but how to decide is this IDENTIFIER a IdentifierPattern or PathPattern?
I don't think you can disambiguate with pure parsing (see PatKind), it has to be done with name resolution. I think this particular disambiguation is done here, though I am not very familiar with rustc.
Activity
ehuss commentedon May 3, 2019
I don't think you can disambiguate with pure parsing (see PatKind), it has to be done with name resolution. I think this particular disambiguation is done here, though I am not very familiar with
rustc.Add a note to patterns.ident.precedent
Add a note to patterns.ident.precedent
Add a note to patterns.ident.precedent
Add a note to patterns.ident.precedent