]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #106981 - joboet:std_remove_box_syntax, r=thomcc
authorbors <bors@rust-lang.org>
Mon, 23 Jan 2023 01:05:56 +0000 (01:05 +0000)
committerbors <bors@rust-lang.org>
Mon, 23 Jan 2023 01:05:56 +0000 (01:05 +0000)
Do not use box syntax in `std`

See #94970 and #49733. About half of the `box` instances in `std` do not even need to allocate, the other half can simply be replaced with `Box::new`.

`@rustbot` label +T-libs
r? rust-lang/libs


Trivial merge