Skip to content

Commit 343db27

Browse files
committed
cfg for no no_global_oom_handling
1 parent e4e7773 commit 343db27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3024,6 +3024,7 @@ impl<T, A: Allocator> Vec<T, A> {
30243024
/// let reshaped: Vec<[[[u8; 8]; 8]; 8]> = flat.into_chunks().into_chunks().into_chunks();
30253025
/// assert_eq!(reshaped.len(), 1);
30263026
/// ```
3027+
#[cfg(not(no_global_oom_handling))]
30273028
#[unstable(feature = "vec_into_chunks", issue = "142137")]
30283029
pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A> {
30293030
const {

0 commit comments

Comments
 (0)