"constructing invalid value: wrong trait in wide pointer vtable" for seemingly identical traits #3541
Labels
A-validation
Area: This affects enforcing the validity invariant, and related UB checking
C-bug
Category: This is a bug.
I-false-UB
Impact: makes Miri falsely report UB, i.e., a false positive (with default settings)
I don't have a minimal reduction atm, but the issue can be reproduced by cloning https://github.com/Jules-Bertholet/unsized-vec and running
cargo miri test -p emplacable
. This results in the following report of UB:But the two traits are the same!
<[std::boxed::Box<i32>] as std::ptr::Pointee>::Metadata
isusize
, andfor<'a> ...
vsfor<'b> ...
should not make a difference either.@rustbot label I-false-UB A-validation
The text was updated successfully, but these errors were encountered: