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
fix(async): potential UB in the scheduler implementation
The way we accessed UnsafeCell in the posted event handler was oddly
similar to the bad example in the reference[1].
It's not an exact match since we don't have a _shared_ reference to the
cell, but I'd still prefer to use the documented way to access the
underlying data.
[1]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#memory-layout
0 commit comments