Skip to content

Commit

Permalink
cfg-gate BoxFromSlice trait
Browse files Browse the repository at this point in the history
Co-authored-by: David Tolnay <[email protected]>
  • Loading branch information
Jules-Bertholet and dtolnay authored Apr 29, 2023
1 parent 075ee26 commit 18d2c60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ where
}

/// Specialization trait used for `From<&[T]>`.
#[cfg(not(no_global_oom_handling))]
trait BoxFromSlice<T> {
fn from_slice(slice: &[T]) -> Self;
}
Expand Down

0 comments on commit 18d2c60

Please sign in to comment.