cfg-gate BoxFromSlice trait

Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
Jules Bertholet 2023-04-29 18:10:10 -04:00 committed by GitHub
parent 075ee26b68
commit 18d2c60975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}