about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-21 19:00:11 +0100
committerGitHub <noreply@github.com>2023-03-21 19:00:11 +0100
commit93a82a44a192a8a3f3c3610853878a57a0a37ee3 (patch)
treecd8f577063f6c3d5c81b9eac2b41da9181d939b6 /compiler/rustc_codegen_llvm/src
parent1a43859a747a8916dbec98b8847a237e6caaf994 (diff)
parent34aa87292c5cd45c88a72235dad6e973a9f2b62f (diff)
downloadrust-93a82a44a192a8a3f3c3610853878a57a0a37ee3.tar.gz
rust-93a82a44a192a8a3f3c3610853878a57a0a37ee3.zip
Rollup merge of #108164 - joboet:discard_messages_mpmc_array, r=Amanieu
Drop all messages in bounded channel when destroying the last receiver

Fixes #107466 by splitting the `disconnect` function for receivers/transmitters and dropping all messages in `disconnect_receivers` like the unbounded channel does. Since all receivers must be dropped before the channel is, the messages will already be discarded at that point, so the `Drop` implementation for the channel can be removed.

``@rustbot`` label +T-libs +A-concurrency
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions