Some more renames for librustc changes
This commit is contained in:
parent
11dbc717c4
commit
719f616218
|
@ -14,3 +14,6 @@ git = "https://github.com/DaGenix/rust-crypto.git"
|
|||
[dependencies.secp256k1]
|
||||
git = "https://github.com/apoelstra/bitcoin-secp256k1-rs.git"
|
||||
|
||||
[dependencies]
|
||||
rustc-serialize = "*"
|
||||
|
||||
|
|
|
@ -120,10 +120,10 @@ macro_rules! impl_array_newtype {
|
|||
pub fn from_slice(data: &[$ty]) -> $thing {
|
||||
assert_eq!(data.len(), $len);
|
||||
unsafe {
|
||||
use std::intrinsics::copy_nonoverlapping_memory;
|
||||
use std::intrinsics::copy_nonoverlapping;
|
||||
use std::mem;
|
||||
let mut ret: $thing = mem::uninitialized();
|
||||
copy_nonoverlapping_memory(ret.as_mut_ptr(),
|
||||
copy_nonoverlapping(ret.as_mut_ptr(),
|
||||
data.as_ptr(),
|
||||
mem::size_of::<$thing>());
|
||||
ret
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#![feature(unsafe_destructor)]
|
||||
#![feature(unboxed_closure_sugar)]
|
||||
#![feature(unboxed_closures)]
|
||||
#![feature(concat_idents)]
|
||||
|
||||
// Coding conventions
|
||||
#![warn(non_uppercase_statics)]
|
||||
|
@ -44,9 +45,8 @@ extern crate alloc;
|
|||
extern crate collections;
|
||||
extern crate core;
|
||||
extern crate rand;
|
||||
extern crate serialize;
|
||||
extern crate rustc_serialize as serialize;
|
||||
extern crate test;
|
||||
extern crate time;
|
||||
|
||||
extern crate secp256k1;
|
||||
extern crate crypto;
|
||||
|
|
|
@ -72,10 +72,10 @@ impl fmt::Debug for Address {
|
|||
impl Clone for Address {
|
||||
fn clone(&self) -> Address {
|
||||
unsafe {
|
||||
use std::intrinsics::copy_nonoverlapping_memory;
|
||||
use std::intrinsics::copy_nonoverlapping;
|
||||
use std::mem;
|
||||
let mut ret = mem::uninitialized();
|
||||
copy_nonoverlapping_memory(&mut ret,
|
||||
copy_nonoverlapping(&mut ret,
|
||||
self,
|
||||
mem::size_of::<Address>());
|
||||
ret
|
||||
|
|
Loading…
Reference in New Issue