Miri engine is too permissive with type-changing MIR assignments #70405
Labels
A-const-eval
Area: Constant evaluation (MIR interpretation)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rust/src/librustc_mir/interpret/place.rs
Line 856 in 02046a5
&mut T
to a&T
variable. We should instead employ a function like(source #69700 (comment))
be sure to also add appropriate mutability checks to the patterns (mutable for the source, immutable for the dest)
The text was updated successfully, but these errors were encountered: