i did an Undefined Behaviour, thanks miri
This commit is contained in:
parent
d118d4336f
commit
7cc806e2eb
|
@ -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);
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue