Skip to content

Commit 68bd71a

Browse files
committed
cfg-out unused code under no_global_oom_handling
1 parent bc89bd0 commit 68bd71a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alloc/src/sync.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3328,6 +3328,7 @@ impl<T: Default> Default for Arc<T> {
33283328
struct SliceArcInnerForStatic {
33293329
inner: ArcInner<[u8; 1]>,
33303330
}
3331+
#[cfg(not(no_global_oom_handling))]
33313332
const MAX_STATIC_INNER_SLICE_ALIGNMENT: usize = 16;
33323333

33333334
static STATIC_INNER_SLICE: SliceArcInnerForStatic = SliceArcInnerForStatic {

0 commit comments

Comments
 (0)