Skip to content

Commit 13c31e6

Browse files
committed
rust: add try_pin under no_global_oom_handling
Signed-off-by: Matthew Bakhtiari <[email protected]>
1 parent 335d42e commit 13c31e6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rust/alloc/sync.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use core::marker::{PhantomData, Unpin, Unsize};
2121
use core::mem::size_of_val;
2222
use core::mem::{self, align_of_val_raw};
2323
use core::ops::{CoerceUnsized, Deref, DispatchFromDyn, Receiver};
24-
#[cfg(not(no_global_oom_handling))]
2524
use core::pin::Pin;
2625
use core::ptr::{self, NonNull};
2726
#[cfg(not(no_global_oom_handling))]
@@ -497,7 +496,6 @@ impl<T> Arc<T> {
497496
}
498497

499498
/// Constructs a new `Pin<Arc<T>>`, return an error if allocation fails.
500-
#[cfg(not(no_global_oom_handling))]
501499
#[unstable(feature = "allocator_api", issue = "32838")]
502500
#[inline]
503501
pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError> {

0 commit comments

Comments
 (0)