[Bug][move-compiler-v2] *&x
gets turned into move x
in at least one case
#14625
Labels
bug
Something isn't working
compiler-v2-stable
compiler-v2
stale-exempt
Prevents issues from being automatically marked and closed as stale
🐛 Bug
Compare test outputs:
V2 seems to accept
*&x
as valid for a type withoutcopy
by turning it into amove x
.Splitting up the test to avoid the other error and generate code shows that is what is happening.
This shouldn't happen. I can't quite think of an attack based on this, but it seems very, very unexpected behavior to move data through an immutable ref.
The text was updated successfully, but these errors were encountered: