Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a396abc

Browse files
committedApr 27, 2024·
Doh, no_global_oom_handling :(
1 parent 01617bb commit a396abc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎library/alloc/src/vec/into_iter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ use core::iter::{
1111
TrustedRandomAccessNoCoerce,
1212
};
1313
use core::marker::PhantomData;
14-
use core::mem::{ManuallyDrop, SizedTypeProperties};
14+
use core::mem::ManuallyDrop;
15+
#[cfg(not(no_global_oom_handling))]
16+
use core::mem::SizedTypeProperties;
1517
use core::num::NonZero;
1618
#[cfg(not(no_global_oom_handling))]
1719
use core::ops::Deref;

‎library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ use core::marker::PhantomData;
6464
use core::mem::{self, ManuallyDrop, MaybeUninit, SizedTypeProperties};
6565
use core::ops::{self, Index, IndexMut, Range, RangeBounds};
6666
use core::ptr::{self, NonNull};
67-
#[cfg(not(no_global_oom_handling))]
68-
use core::slice::DrainRaw;
69-
use core::slice::{self, SliceIndex};
67+
use core::slice::{self, DrainRaw, SliceIndex};
7068

7169
use crate::alloc::{Allocator, Global};
7270
use crate::borrow::{Cow, ToOwned};

0 commit comments

Comments
 (0)
Please sign in to comment.