You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this on another project as well. Seems like a blocker to do anything useful, unfortunately. Let me know if you have ideas on how to approach this!
I just ran into this and in my case it was caused by the following code:
let array:[UnsafeCell<MaybeUninit<E>>;NE]= unsafe{MaybeUninit::uninit().assume_init()}
For the standard library type this was fine (see Maybeuninit documentation), because the UnsafeCell is just a transparent wrapper around the inner type (Maybeuninit, which is allowed to be uninitialized). For the loom type this is however not the case and the type must be initialized.
Maybe we could a magic number to the loom type to give a better error for such cases?
Repro:
Check out crossbeam-rs/crossbeam#849 (currently at revision 7d22763adfe5c07df237da493507c25f3f92a92b) and run
ci/loom.sh
.Full log:
The text was updated successfully, but these errors were encountered: