Skip to content

Commit 5118054

Browse files
nitnelavesuemto
authored andcommitted
stop depending on intrinsics (mimblewimble#43)
The interface, though marked stable, is actually not. See rust-lang/rust#57997.
1 parent 1091635 commit 5118054

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ macro_rules! impl_array_newtype {
6161
#[inline]
6262
fn clone(&self) -> $thing {
6363
unsafe {
64-
use std::intrinsics::copy_nonoverlapping;
64+
use std::ptr::copy_nonoverlapping;
6565
use std::mem;
6666
let mut ret: $thing = mem::uninitialized();
6767
copy_nonoverlapping(self.as_ptr(),

src/pedersen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Clone for RangeProof {
126126
#[inline]
127127
fn clone(&self) -> RangeProof {
128128
unsafe {
129-
use std::intrinsics::copy_nonoverlapping;
129+
use std::ptr::copy_nonoverlapping;
130130
use std::mem;
131131
let mut ret: [u8; constants::MAX_PROOF_SIZE] = mem::uninitialized();
132132
copy_nonoverlapping(

0 commit comments

Comments
 (0)