about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-11 23:19:07 +0100
committerGitHub <noreply@github.com>2024-02-11 23:19:07 +0100
commit251a09e151d9a522737913a1c5244e9b6770e476 (patch)
tree569b4c0ce284f4ba3397216f66213a486edaf41f /compiler/rustc_pattern_analysis/src
parent1a648b397dedc98ada3dd3360f6d661ec2436c56 (diff)
parentea6944a065bdc64855c221f8e2fd969df4d21c6d (diff)
downloadrust-251a09e151d9a522737913a1c5244e9b6770e476.tar.gz
rust-251a09e151d9a522737913a1c5244e9b6770e476.zip
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
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions