interpret: fix vtable check debug assertion#99607
Conversation
|
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
|
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
eddyb
left a comment
There was a problem hiding this comment.
LGTM/r=me - only one thing I wanted to ask before then though, is this testable on this side, or only in the miri repo?
For the record, I believe a minimal test would look something like this:
(Box::new(|| {}) as Box<dyn FnOnce()>)()(just checked and there is indeed a ::{shim:vtable#0} generated for such code)
Yeah it can be tested in a rustc checkout (with debug assertions enabled) via |
|
@bors r=eddyb |
Sorry, I meant whether it's possible to add a test in |
|
Ah I see. Yeah I don't think CTFE can reach this... well, it could with @bors r- |
|
No that won't work, it still dynamically checks that we only call @bors r=eddyb |
Rollup of 3 pull requests Successful merges: - rust-lang#99588 (Update books) - rust-lang#99602 (cargotest: do not run quickcheck tests in xsv) - rust-lang#99607 (interpret: fix vtable check debug assertion) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #99605
Thanks to @eddyb for suggesting the fix!