Skip to content

Commit b38c598

Browse files
Add missing #[cfg(not(no_global_oom_handling))]
1 parent 57c3635 commit b38c598

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

library/alloc/src/boxed/thin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ impl<T: ?Sized + Error> Error for ThinBox<T> {
431431
}
432432
}
433433

434+
#[cfg(not(no_global_oom_handling))]
434435
#[unstable(feature = "thin_box", issue = "92791")]
435436
impl<T> From<T> for ThinBox<T> {
436437
#[inline(always)]

library/alloc/src/rc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3816,6 +3816,7 @@ impl<T: ?Sized, A: Allocator> AsMut<T> for UniqueRc<T, A> {
38163816
#[unstable(feature = "unique_rc_arc", issue = "112566")]
38173817
impl<T: ?Sized, A: Allocator> Unpin for UniqueRc<T, A> {}
38183818

3819+
#[cfg(not(no_global_oom_handling))]
38193820
#[unstable(feature = "unique_rc_arc", issue = "112566")]
38203821
impl<T> From<T> for UniqueRc<T> {
38213822
#[inline(always)]

library/alloc/src/sync.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4242,6 +4242,7 @@ impl<T: ?Sized, A: Allocator> AsMut<T> for UniqueArc<T, A> {
42424242
}
42434243
}
42444244

4245+
#[cfg(not(no_global_oom_handling))]
42454246
#[unstable(feature = "unique_rc_arc", issue = "112566")]
42464247
impl<T> From<T> for UniqueArc<T> {
42474248
#[inline(always)]

0 commit comments

Comments
 (0)