about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-29 16:26:00 +0000
committerbors <bors@rust-lang.org>2024-10-29 16:26:00 +0000
commite473783d90e2289b8a97575fa60d6315f0a318eb (patch)
tree55e21dc88822ef4f452ba8aebd6d45e5692a9aab /compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
parent2dece5bb62f234f5622a08289c5a3d1555cd7843 (diff)
parent02ee6395fd4c7416691323415f575f65918e51f2 (diff)
downloadrust-e473783d90e2289b8a97575fa60d6315f0a318eb.tar.gz
rust-e473783d90e2289b8a97575fa60d6315f0a318eb.zip
Auto merge of #132231 - lukas-code:rc-plug-leaks, r=tgross35
Rc/Arc: don't leak the allocation if drop panics

Currently, when the last `Rc<T>` or `Arc<T>` is dropped and the destructor of `T` panics, the allocation will be leaked. This leak is unnecessary since the data cannot be (safely) accessed again and `Box` already deallocates in this case, so let's do the same for `Rc` and `Arc`, too.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/mod.rs')
0 files changed, 0 insertions, 0 deletions