about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-01 20:11:49 +0000
committerbors <bors@rust-lang.org>2023-04-01 20:11:49 +0000
commit0599b6b931816ab46ab79072189075f543931cbd (patch)
treeef6413c8146d078c66db16ea8fc40959aea978cf /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent0196c2bd274dd5bb01c77b5a9b1da9623571b0f8 (diff)
parentaf080bf04be2a82273c646d807d8411518089199 (diff)
downloadrust-0599b6b931816ab46ab79072189075f543931cbd.tar.gz
rust-0599b6b931816ab46ab79072189075f543931cbd.zip
Auto merge of #109483 - joboet:optimize_lazycell, r=Mark-Simulacrum
Optimize `LazyCell` size

`LazyCell` can only store either the initializing function or the data it produces, so it does not need to reserve the space for both. Similar to #107329, but uses an `enum` instead of a `union`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions