rust/library/alloc
Matthias Krüger 251a09e151
Rollup merge of #110483 - tleibert:thin-box-try-new, r=dtolnay
Create try_new function for ThinBox

The `allocator_api` feature has proven very useful in my work in the FreeBSD kernel. I've found a few places where a `ThinBox` #92791 would be useful, but it must be able to be fallibly allocated for it to be used in the kernel.

This PR proposes a change to add such a constructor for ThinBox.

ACP: https://github.com/rust-lang/libs-team/issues/213
2024-02-11 23:19:07 +01:00
..
benches remove redundant imports 2023-12-10 10:56:22 +08:00
src Rollup merge of #110483 - tleibert:thin-box-try-new, r=dtolnay 2024-02-11 23:19:07 +01:00
tests Rollup merge of #119917 - Zalathar:split-off, r=cuviper 2024-01-26 14:43:30 +01:00
Cargo.toml Rename `{collections=>alloc}{tests,benches}` 2023-11-26 12:04:56 +00:00