Check LHS expression of assignment#10123
Conversation
|
I have a feeling that this code doesn't belong in resolve, but rather somewhere in the middle of typechecking. I'm not entirely sure where it belongs in that code, however, although @nikomatsakis may have a better idea than I do. |
|
Does it mean that we can't do tuple alloc as in Python? |
|
Definitely not resolve. typeck seems like a suitable place (there are various options, but resolve is strictly for name resolution). It can re-use the existing routine |
|
They are now in typeck/check/mod.rs. @adridu59 |
This patch fixes rustc to emit explicit error if LHS of assignment is
not allowed.
Fixes #7507
Fixes #7508