cfg-out unused code under no_global_oom_handling

This commit is contained in:
Zachary S 2024-05-19 13:22:34 -05:00
parent 6fae171e54
commit 58f8ed122a

View File

@ -3328,6 +3328,7 @@ impl<T: Default> Default for Arc<T> {
struct SliceArcInnerForStatic {
inner: ArcInner<[u8; 1]>,
}
#[cfg(not(no_global_oom_handling))]
const MAX_STATIC_INNER_SLICE_ALIGNMENT: usize = 16;
static STATIC_INNER_SLICE: SliceArcInnerForStatic = SliceArcInnerForStatic {