Check that move arguments are disjoint in the mir verifier #103363
Open
Description
opened on Oct 21, 2022
See https://rust-lang.zulipchat.com/#narrow/stream/136281-t-lang.2Fwg-unsafe-code-guidelines/topic/stack.20slot.20reuse.20Q/near/305409193 and #103362.
Basically the check would disallow foo(move _1, move _1)
(where _1
is of any type) and foo(move *_1, move *_1)
(where _1
is a box).
Activity