diff options
| author | Stepan Koltsov <stepan.koltsov@gmail.com> | 2024-03-29 03:24:02 +0000 |
|---|---|---|
| committer | Stepan Koltsov <stepan.koltsov@gmail.com> | 2024-04-05 19:55:00 +0100 |
| commit | f539134e2098bcc02d5c6228034974c67196adab (patch) | |
| tree | b0bbd2b127bd758551dd4aa3cd071be4d6722e58 /compiler/rustc_interface/src/interface.rs | |
| parent | 1921968cc5403892739b43bdefe793a130badd15 (diff) | |
| download | rust-f539134e2098bcc02d5c6228034974c67196adab.tar.gz rust-f539134e2098bcc02d5c6228034974c67196adab.zip | |
Do not allocate for ZST ThinBox attempt 2 (using const_allocate)
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.
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
0 files changed, 0 insertions, 0 deletions
