rust/library/alloc
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
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #129673 - matthewpipie:arc-weak-debug-trait, r=dtolnay 2024-08-28 19:12:54 -07:00
tests library: Stabilize new_uninit for Box, Rc, and Arc 2024-08-27 10:17:05 -07:00
Cargo.toml Update compiler_builtins to 0.1.121 2024-08-23 12:02:26 -07:00