Introduce `Box::new_uninit_array` and `Box::new_zeroed_array`
Rust Internals [Unofficial]
April 16, 2026
unwrap is not considered bad practice in general, and is required for things like the recommended usize <-> uN conversion method as well. In cases where it can never fail, unwrap is totally fine and the check can be trivially optimized out.
Discussion in the ATmosphere