cfg for no no_global_oom_handling

This commit is contained in:
Amogh Shivaram 2025-06-07 01:14:24 -05:00
parent e4e77737f9
commit 343db27aa6

View file

@ -3024,6 +3024,7 @@ impl<T, A: Allocator> Vec<T, A> {
/// let reshaped: Vec<[[[u8; 8]; 8]; 8]> = flat.into_chunks().into_chunks().into_chunks();
/// assert_eq!(reshaped.len(), 1);
/// ```
#[cfg(not(no_global_oom_handling))]
#[unstable(feature = "vec_into_chunks", issue = "142137")]
pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A> {
const {