rust/library/alloc
Matthias Krüger af356d6d73
Rollup merge of #132031 - slanterns:rc_default, r=ibraheemdev
Optimize `Rc<T>::default`

The missing piece of https://github.com/rust-lang/rust/pull/131460.

Also refactored `Arc<T>::default` by using a safe `NonNull::from(Box::leak(_))` to replace the unnecessarily unsafe call to `NonNull::new_unchecked(Box::into_raw(_))`. The remaining unsafety is coming from `[Rc|Arc]::from_inner`, which is safe from the construction of `[Rc|Arc]Inner`.
2024-10-23 06:51:25 +02:00
..
benches move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
src Rollup merge of #132031 - slanterns:rc_default, r=ibraheemdev 2024-10-23 06:51:25 +02:00
tests move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
Cargo.toml Update compiler-builtins to 0.1.134 2024-10-19 11:47:43 -04:00