correct import of owned_slice
This commit is contained in:
parent
089a38880b
commit
bffccddac3
@ -29,7 +29,8 @@
|
||||
#![feature(allocator_api)]
|
||||
#![feature(get_mut_unchecked)]
|
||||
#![feature(lint_reasons)]
|
||||
#![feature(unwrap_infallible)]#![feature(const_mut_refs)]
|
||||
#![feature(unwrap_infallible)]
|
||||
#![feature(const_mut_refs)]
|
||||
#![feature(const_trait_impl)]
|
||||
#![feature(strict_provenance)]
|
||||
#![feature(ptr_alignment_type)]
|
||||
|
@ -72,6 +72,7 @@ macro_rules! already_send {
|
||||
[rustc_arena::DroplessArena]
|
||||
[crate::memmap::Mmap]
|
||||
[crate::profiling::SelfProfiler]
|
||||
[crate::owned_slice::OwnedSlice]
|
||||
);
|
||||
|
||||
macro_rules! impl_dyn_send {
|
||||
@ -98,11 +99,6 @@ macro_rules! impl_dyn_send {
|
||||
[indexmap::IndexMap<K, V, S> where K: DynSend, V: DynSend, S: DynSend]
|
||||
[thin_vec::ThinVec<T> where T: DynSend]
|
||||
[smallvec::SmallVec<A> where A: smallvec::Array + DynSend]
|
||||
|
||||
// We use `Send` here, since they are only used in `Send` situations now.
|
||||
// In this case we don't need copy or change the codes in `crate::owning_ref`.
|
||||
[crate::owning_ref::OwningRef<O, T> where O: Send, T: ?Sized + Send]
|
||||
[crate::owning_ref::OwningRefMut<O, T> where O: Send, T: ?Sized + Send]
|
||||
);
|
||||
|
||||
macro_rules! impls_dyn_sync_neg {
|
||||
@ -154,6 +150,7 @@ macro_rules! already_sync {
|
||||
[jobserver_crate::Client]
|
||||
[crate::memmap::Mmap]
|
||||
[crate::profiling::SelfProfiler]
|
||||
[crate::owned_slice::OwnedSlice]
|
||||
);
|
||||
|
||||
macro_rules! impl_dyn_sync {
|
||||
@ -184,11 +181,6 @@ macro_rules! impl_dyn_sync {
|
||||
[indexmap::IndexMap<K, V, S> where K: DynSync, V: DynSync, S: DynSync]
|
||||
[smallvec::SmallVec<A> where A: smallvec::Array + DynSync]
|
||||
[thin_vec::ThinVec<T> where T: DynSync]
|
||||
|
||||
// We use `Sync` here, since they are only used in `Sync` situations now.
|
||||
// In this case we don't need copy or change the codes in `crate::owning_ref`.
|
||||
[crate::owning_ref::OwningRef<O, T> where O: Sync, T: ?Sized + Sync]
|
||||
[crate::owning_ref::OwningRefMut<O, T> where O: Sync, T: ?Sized + Sync]
|
||||
);
|
||||
}
|
||||
);
|
||||
|
@ -69,6 +69,6 @@ fn drop_drops() {
|
||||
|
||||
#[test]
|
||||
fn send_sync() {
|
||||
crate::sync::assert_send::<OwnedSlice>();
|
||||
crate::sync::assert_sync::<OwnedSlice>();
|
||||
crate::sync::assert_dyn_send::<OwnedSlice>();
|
||||
crate::sync::assert_dyn_sync::<OwnedSlice>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user