feature(asm) is only allowed in crate (#8)

* feature(asm) is only allowed in crate

* add tests/build.rs again - haven't found a way around it
This commit is contained in:
snd 2017-12-05 14:44:36 +01:00 committed by Tomasz Drwięga
parent 83df0b7baa
commit 45f721cf6e
2 changed files with 2 additions and 3 deletions

View File

@ -8,6 +8,8 @@
//! Efficient large, fixed-size big integers and hashes.
#![cfg_attr(asm_available, feature(asm))]
#[doc(hidden)]
pub extern crate byteorder;

View File

@ -77,7 +77,6 @@ macro_rules! uint_overflowing_add_reg {
#[macro_export]
#[doc(hidden)]
macro_rules! uint_overflowing_add {
#![feature(asm)]
(U256, $n_words:tt, $self_expr: expr, $other: expr) => ({
let mut result: [u64; $n_words] = unsafe { ::core::mem::uninitialized() };
let self_t: &[u64; $n_words] = &$self_expr.0;
@ -224,7 +223,6 @@ macro_rules! uint_overflowing_sub_reg {
#[macro_export]
#[doc(hidden)]
macro_rules! uint_overflowing_sub {
#![feature(asm)]
(U256, $n_words:tt, $self_expr: expr, $other: expr) => ({
let mut result: [u64; $n_words] = unsafe { ::core::mem::uninitialized() };
let self_t: &[u64; $n_words] = &$self_expr.0;
@ -300,7 +298,6 @@ macro_rules! uint_overflowing_sub {
#[cfg(all(asm_available, target_arch="x86_64"))]
#[macro_export]
macro_rules! uint_overflowing_mul {
#![feature(asm)]
(U256, $n_words: expr, $self_expr: expr, $other: expr) => ({
let mut result: [u64; $n_words] = unsafe { ::core::mem::uninitialized() };
let self_t: &[u64; $n_words] = &$self_expr.0;