rust/library/alloc/src
Jubilee 9ddb45e81a
Rollup merge of #129673 - matthewpipie:arc-weak-debug-trait, r=dtolnay
Add fmt::Debug to sync::Weak<T, A>

Currently, `sync::Weak<T>` implements `Debug`, but `sync::Weak<T, A>` does not. This appears to be an oversight, as `rc::Weak<T, A>` implements `Debug`. (Note: `sync::Weak` is the weak for `Arc`, and `rc::Weak` is the weak for `Rc`.)

This PR adds the Debug trait for `sync::Weak<T, A>`. The issue was initially brought up here: https://github.com/rust-lang/wg-allocators/issues/131
2024-08-28 19:12:54 -07:00
..
alloc Reformat use declarations. 2024-07-29 08:26:52 +10:00
boxed Reformat use declarations. 2024-07-29 08:26:52 +10:00
collections Stabilize min_exhaustive_patterns 2024-08-10 12:07:17 +02:00
ffi Reformat use declarations. 2024-07-29 08:26:52 +10:00
raw_vec Polymorphize RawVec 2024-08-09 20:06:26 -04:00
rc Reformat use declarations. 2024-07-29 08:26:52 +10:00
slice Reformat use declarations. 2024-07-29 08:26:52 +10:00
sync Reformat use declarations. 2024-07-29 08:26:52 +10:00
testing Reformat use declarations. 2024-07-29 08:26:52 +10:00
vec add Box::as_ptr and Box::as_mut_ptr methods 2024-08-14 14:30:31 +02:00
alloc.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
borrow.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
boxed.rs library: Stabilize new_uninit for Box, Rc, and Arc 2024-08-27 10:17:05 -07:00
fmt.rs std::fmt::FormatterFn -> std::fmt::FromFn 2024-08-12 18:33:30 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs library: Stabilize new_uninit for Box, Rc, and Arc 2024-08-27 10:17:05 -07:00
macros.rs Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
raw_vec.rs Add an optimizer hint for the capacity that with_capacity_in returns 2024-08-09 20:06:27 -04:00
rc.rs library: Stabilize new_uninit for Box, Rc, and Arc 2024-08-27 10:17:05 -07:00
slice.rs Rollup merge of #128273 - Voultapher:improve-ord-violation-help, r=workingjubilee 2024-08-10 16:23:51 +02:00
str.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
string.rs alloc: make to_string_str! a bit less complex 2024-08-07 10:06:54 -07:00
sync.rs Rollup merge of #129673 - matthewpipie:arc-weak-debug-trait, r=dtolnay 2024-08-28 19:12:54 -07:00
task.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00