about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorThe8472 <git@infinite-source.de>2021-08-05 00:23:19 +0200
committerThe8472 <git@infinite-source.de>2021-08-05 00:23:19 +0200
commitde91157389c4cf63ee6805e8490d0872fe2a7b33 (patch)
treef60762dee327f1ac1778c801088836c6847b8731 /library/std/src/sys/unix/stack_overflow.rs
parent6fe0886723c9e08b800c9951f1c6f6a57b2bf22c (diff)
downloadrust-de91157389c4cf63ee6805e8490d0872fe2a7b33.tar.gz
rust-de91157389c4cf63ee6805e8490d0872fe2a7b33.zip
add Box::try_new_zeroed_slice()
Currently there is no API that allows fallible zero-allocation of a Vec.
Vec.try_reserve is not appropriate for this job since it doesn't know
whether it should zero or arbitrary uninitialized memory is fine.

Since Box currently holds most of the zeroing/uninit/slice allocation APIs
it's the best place to add yet another entry into this feature matrix.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions