rust/library/std/src
Matthias Krüger 93a82a44a1
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
2023-03-21 19:00:11 +01:00
..
backtrace Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
collections Fix typo in HashMap::with_capacity 2023-02-05 10:13:30 -08:00
env
error remove fn backtrace 2022-08-01 20:10:40 +00:00
f32 Remove some cfg(not(bootstrap)) 2022-12-11 01:20:18 -05:00
f64 Remove some cfg(not(bootstrap)) 2022-12-11 01:20:18 -05:00
ffi Guarantee try_reserve preserves the contents on error 2022-08-10 01:51:38 +09:00
fs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
io Rollup merge of #108326 - tmiasko:read-buf, r=thomcc 2023-03-21 13:00:21 +01:00
net Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
num
os Stabilise unix_socket_abstract 2023-03-18 12:32:09 +09:00
panic
path make many std tests work in Miri 2022-08-18 18:07:39 -04:00
personality Replace libc::{type} with crate::ffi::{type} 2023-01-28 11:24:13 +05:30
prelude Update bootstrap cfg 2022-12-28 09:18:43 -05:00
process Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
sync Rollup merge of #108164 - joboet:discard_messages_mpmc_array, r=Amanieu 2023-03-21 19:00:11 +01:00
sys Rollup merge of #96391 - ChrisDenton:command-non-verbatim, r=joshtriplett 2023-03-21 19:00:10 +01:00
sys_common Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
thread Moved thread_local implementation to sys::common 2023-03-10 23:25:32 +05:30
time Fix non-associativity of Instant math on aarch64-apple-darwin targets 2022-11-13 12:01:42 -08:00
alloc.rs default OOM handler: use non-unwinding panic (unless -Zoom=panic is set), to match std handler 2023-01-02 16:35:14 +01:00
ascii.rs Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
backtrace.rs Replace libstd, libcore, liballoc in docs. 2022-12-30 14:00:40 +01:00
env.rs Rollup merge of #101648 - Timmmm:home_dir_docs, r=joshtriplett 2022-12-11 23:36:44 +01:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
f32.rs Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix,m-ou-se,scottmcm 2023-03-07 09:43:12 +00:00
f64.rs Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix,m-ou-se,scottmcm 2023-03-07 09:43:12 +00:00
fs.rs Suggest simpler fs helper methods in File::{open,create} 2023-02-15 18:58:38 +00:00
keyword_docs.rs use UpperCamelCase 2023-02-20 23:44:21 +01:00
lib.rs Rollup merge of #108419 - tgross35:atomic-as-ptr, r=m-ou-se 2023-03-13 21:55:35 +01:00
macros.rs Add tidy check for dbg 2022-12-31 15:32:09 +05:30
num.rs Add Saturating type (based on Wrapping type) 2021-08-10 19:27:01 +02:00
panic.rs review 2023-03-17 21:00:10 -07:00
panicking.rs Explain the default panic hook better 2023-02-20 23:37:19 +00:00
path.rs Rollup merge of #105962 - zertosh:stabilize_path_as_mut_os_str, r=dtolnay 2023-03-10 21:15:43 +01:00
personality.rs Move personality functions to std 2022-08-23 16:12:58 +08:00
primitive_docs.rs unequal → not equal 2023-03-15 23:55:48 +05:30
process.rs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
rt.rs Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
time.rs std: time: Avoid to use "was created" in elapsed() description 2023-02-22 14:40:43 -08:00