Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(maitake): prevent task cell niche optimization (#483)
See [this comment][1]. Adding `#[repr(C)]` to this type suppresses niche optimization, resolving potential unsoundness that could occur when the compiler decides to niche-optimize a self-referential future type. In practice this probably doesn't actually happen, but we should make sure it never does. [1]: rust-lang/miri#3780 (comment)
- Loading branch information