Skip to content

Commit 18d2c60

Browse files
cfg-gate BoxFromSlice trait
Co-authored-by: David Tolnay <[email protected]>
1 parent 075ee26 commit 18d2c60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ where
14561456
}
14571457

14581458
/// Specialization trait used for `From<&[T]>`.
1459+
#[cfg(not(no_global_oom_handling))]
14591460
trait BoxFromSlice<T> {
14601461
fn from_slice(slice: &[T]) -> Self;
14611462
}

0 commit comments

Comments
 (0)