mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
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.