about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorStepan Koltsov <stepan.koltsov@gmail.com>2024-03-29 03:24:02 +0000
committerStepan Koltsov <stepan.koltsov@gmail.com>2024-04-05 19:55:00 +0100
commitf539134e2098bcc02d5c6228034974c67196adab (patch)
treeb0bbd2b127bd758551dd4aa3cd071be4d6722e58 /compiler/rustc_interface/src/interface.rs
parent1921968cc5403892739b43bdefe793a130badd15 (diff)
downloadrust-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