Add Sync impl for Slice
This commit is contained in:
parent
461fa8495e
commit
2119d04b2d
@ -617,6 +617,8 @@ pub struct Slice<T> {
|
||||
opaque: OpaqueSliceContents,
|
||||
}
|
||||
|
||||
unsafe impl<T: Sync> Sync for Slice<T> {}
|
||||
|
||||
impl<T: Copy> Slice<T> {
|
||||
#[inline]
|
||||
fn from_arena<'tcx>(arena: &'tcx SyncDroplessArena, slice: &[T]) -> &'tcx Slice<T> {
|
||||
|
Loading…
Reference in New Issue
Block a user