4
4
// option. This file may not be copied, modified, or distributed
5
5
// except according to those terms.
6
6
7
- use std:: { ptr, mem, intrinsics , hash, str, u32, io, slice, cmp} ;
7
+ use std:: { ptr, mem, hash, str, u32, io, slice, cmp} ;
8
8
use std:: sync:: atomic:: { self , AtomicUsize } ;
9
9
use std:: sync:: atomic:: Ordering as AtomicOrdering ;
10
10
use std:: borrow:: { Borrow , Cow } ;
@@ -1013,7 +1013,7 @@ impl<F, A> Tendril<F, A>
1013
1013
marker : PhantomData ,
1014
1014
refcount_marker : PhantomData ,
1015
1015
} ;
1016
- intrinsics :: copy_nonoverlapping ( x. as_ptr ( ) , & mut t. len as * mut u32 as * mut u8 , len) ;
1016
+ ptr :: copy_nonoverlapping ( x. as_ptr ( ) , & mut t. len as * mut u32 as * mut u8 , len) ;
1017
1017
t
1018
1018
}
1019
1019
@@ -1032,7 +1032,7 @@ impl<F, A> Tendril<F, A>
1032
1032
unsafe fn owned_copy ( x : & [ u8 ] ) -> Tendril < F , A > {
1033
1033
let len32 = x. len ( ) as u32 ;
1034
1034
let mut b = Buf32 :: with_capacity ( len32, Header :: new ( ) ) ;
1035
- intrinsics :: copy_nonoverlapping ( x. as_ptr ( ) , b. data_ptr ( ) , x. len ( ) ) ;
1035
+ ptr :: copy_nonoverlapping ( x. as_ptr ( ) , b. data_ptr ( ) , x. len ( ) ) ;
1036
1036
b. len = len32;
1037
1037
Tendril :: owned ( b)
1038
1038
}
0 commit comments