mirror of https://github.com/rust-lang/rust
f539134e20
There's PR https://github.com/rust-lang/rust/pull/123184 which avoids allocation for ZST ThinBox. That PR has an issue with unsoundness with misuse of `MaybeUninit` (see comments in that PR). This PR is much simpler implementation which does not have this problem, but it uses `const_allocate` feature. |
||
---|---|---|
.. | ||
thin.rs |