From 8816fcbab4a157a5600640f27fc95b07c51f15f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Fri, 12 May 2017 12:41:14 +0200 Subject: [PATCH] Fix compilation on nightly. --- Cargo.toml | 2 +- src/uint.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f61c713..217c834 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ homepage = "http://parity.io" repository = "https://github.com/ethcore/bigint" license = "MIT/Apache-2.0" name = "bigint" -version = "2.0.0" +version = "2.0.1" authors = ["Parity Technologies "] build = "build.rs" diff --git a/src/uint.rs b/src/uint.rs index 8773fdf..d5b3334 100644 --- a/src/uint.rs +++ b/src/uint.rs @@ -86,7 +86,7 @@ macro_rules! uint_overflowing_add_reg { #[cfg(all(asm_available, target_arch="x86_64"))] macro_rules! uint_overflowing_add { (U256, $n_words: expr, $self_expr: expr, $other: expr) => ({ - let mut result: [u64; $n_words] = unsafe { mem::uninitialized() }; + let mut result: [u64; $n_words] = unsafe { ::std::mem::uninitialized() }; let self_t: &[u64; $n_words] = &$self_expr.0; let other_t: &[u64; $n_words] = &$other.0; @@ -109,7 +109,7 @@ macro_rules! uint_overflowing_add { (U256(result), overflow != 0) }); (U512, $n_words: expr, $self_expr: expr, $other: expr) => ({ - let mut result: [u64; $n_words] = unsafe { mem::uninitialized() }; + let mut result: [u64; $n_words] = unsafe { ::std::mem::uninitialized() }; let self_t: &[u64; $n_words] = &$self_expr.0; let other_t: &[u64; $n_words] = &$other.0; @@ -190,7 +190,7 @@ macro_rules! uint_overflowing_sub_reg { #[cfg(all(asm_available, target_arch="x86_64"))] macro_rules! uint_overflowing_sub { (U256, $n_words: expr, $self_expr: expr, $other: expr) => ({ - let mut result: [u64; $n_words] = unsafe { mem::uninitialized() }; + let mut result: [u64; $n_words] = unsafe { ::std::mem::uninitialized() }; let self_t: &[u64; $n_words] = &$self_expr.0; let other_t: &[u64; $n_words] = &$other.0; @@ -212,7 +212,7 @@ macro_rules! uint_overflowing_sub { (U256(result), overflow != 0) }); (U512, $n_words: expr, $self_expr: expr, $other: expr) => ({ - let mut result: [u64; $n_words] = unsafe { mem::uninitialized() }; + let mut result: [u64; $n_words] = unsafe { ::std::mem::uninitialized() }; let self_t: &[u64; $n_words] = &$self_expr.0; let other_t: &[u64; $n_words] = &$other.0; @@ -264,7 +264,7 @@ macro_rules! uint_overflowing_sub { #[cfg(all(asm_available, target_arch="x86_64"))] macro_rules! uint_overflowing_mul { (U256, $n_words: expr, $self_expr: expr, $other: expr) => ({ - let mut result: [u64; $n_words] = unsafe { mem::uninitialized() }; + let mut result: [u64; $n_words] = unsafe { ::std::mem::uninitialized() }; let self_t: &[u64; $n_words] = &$self_expr.0; let other_t: &[u64; $n_words] = &$other.0; @@ -1106,7 +1106,7 @@ impl U256 { pub fn full_mul(self, other: U256) -> U512 { let self_t: &[u64; 4] = &self.0; let other_t: &[u64; 4] = &other.0; - let mut result: [u64; 8] = unsafe { mem::uninitialized() }; + let mut result: [u64; 8] = unsafe { ::std::mem::uninitialized() }; unsafe { asm!(" mov $8, %rax