about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-10-04 16:11:01 +0530
committerGitHub <noreply@github.com>2022-10-04 16:11:01 +0530
commitf24d00d8b3f6a79fdf5b3352fa9fb84003c917d3 (patch)
treea6049e3b000214a7cbb8fba530fe8993bcc8da79 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc1d400350608d880c4b66744e9905c7847fcf512 (diff)
parent1750c7bdd36ec18324423bd30867e39d787d5977 (diff)
downloadrust-f24d00d8b3f6a79fdf5b3352fa9fb84003c917d3.tar.gz
rust-f24d00d8b3f6a79fdf5b3352fa9fb84003c917d3.zip
Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472
Fix in-place collection leak when remaining element destructor panic

Fixes #101628

cc `@the8472`

I went for the drop guard route, placing it immediately before the `forget_allocation_drop_remaining` call and after the comment, as to signal they are closely related.

I also updated the test to check for the leak, though the only change really needed was removing the leak clean up for miri since now that's no longer leaked.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions