Check that move arguments are disjoint in the mir verifier #103363
Labels
-Zvalidate-mir
Unstable option: MIR validation
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
F-unsized_fn_params
`#![feature(unsized_fn_params)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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) andfoo(move *_1, move *_1)
(where_1
is a box).The text was updated successfully, but these errors were encountered: