about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-05-25 08:01:08 +0200
committerGitHub <noreply@github.com>2023-05-25 08:01:08 +0200
commita9743e108a254809a7235460f9ba9e000776c507 (patch)
treee8f7dbfd8f2692f036da4a526a4e6aa9cd665736 /compiler/rustc_codegen_llvm/src/errors.rs
parent725cadb2760e8084f21d50e2c7f1aa8cf42d14f0 (diff)
parente2b953063d1c6302dd61a2284f8da8b770ddc11d (diff)
downloadrust-a9743e108a254809a7235460f9ba9e000776c507.tar.gz
rust-a9743e108a254809a7235460f9ba9e000776c507.zip
Rollup merge of #111875 - WaffleLapkin:defer_on_drop, r=Nilstrieb
Don't leak the function that is called on drop

It probably wasn't causing problems anyway, but still, a `// this leaks, please don't pass anything that owns memory` is not sustainable.

I could implement a version which does not require `Option`, but it would require `unsafe`, at which point it's probably not worth it.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions