1
Fork 0

Implement OwnedSlice

This commit is contained in:
Maybe Waffle 2023-04-05 13:25:04 +00:00
parent be8e5ba157
commit 689beda166
3 changed files with 120 additions and 5 deletions

View file

@ -57,11 +57,8 @@ mod vec;
cfg_if! {
if #[cfg(not(parallel_compiler))] {
pub auto trait Send {}
pub auto trait Sync {}
impl<T> Send for T {}
impl<T> Sync for T {}
pub unsafe auto trait Send {}
pub unsafe auto trait Sync {}
#[macro_export]
macro_rules! rustc_erase_owner {
@ -69,6 +66,8 @@ cfg_if! {
$v.erase_owner()
}
}
unsafe impl<T> Send for T {}
unsafe impl<T> Sync for T {}
use std::ops::Add;