i did an Undefined Behaviour, thanks miri

This commit is contained in:
missing 2022-02-27 12:11:55 -06:00
parent d118d4336f
commit 7cc806e2eb

View file

@ -31,7 +31,7 @@ fn vtable<W: ArcWake>() -> &'static RawWakerVTable {
},
|ptr| unsafe {
// will get dropped, decrementing strong count
Arc::from_raw(ptr);
Arc::from_raw(ptr as *const W);
}
)
}