Fix build when used as a submodule

This commit is contained in:
Jethro Beekman 2018-11-19 21:32:32 +05:30 committed by gnzlbg
parent 7d16e6a216
commit ab8e222e09
8 changed files with 10 additions and 15 deletions

View file

@ -22,5 +22,5 @@ use stdsimd_test::assert_instr;
#[cfg_attr(test, assert_instr(brk))]
#[inline]
pub unsafe fn brk() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}

View file

@ -55,5 +55,5 @@ use stdsimd_test::assert_instr;
#[cfg_attr(test, assert_instr(udf))]
#[inline]
pub unsafe fn udf() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}

View file

@ -10,5 +10,5 @@ use stdsimd_test::assert_instr;
#[cfg_attr(test, assert_instr(break))]
#[inline]
pub unsafe fn break_() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}

View file

@ -122,5 +122,5 @@ pub unsafe fn _thread_idx_z() -> i32 {
/// Generates the trap instruction `TRAP`
#[inline]
pub unsafe fn trap() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}

View file

@ -15,5 +15,5 @@ use stdsimd_test::assert_instr;
#[cfg_attr(test, assert_instr(trap))]
#[inline]
pub unsafe fn trap() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}

View file

@ -43,5 +43,5 @@ pub mod memory;
#[cfg_attr(test, assert_instr(unreachable))]
#[inline]
pub unsafe fn unreachable() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}

View file

@ -632,12 +632,7 @@ impl v128 {
c: [ImmByte; 16],
}
// FIXME: https://github.com/rust-lang/rust/issues/53193
const C: [ImmByte; 16] = unsafe {
U {
v: ::_core::u128::MAX,
}
.c
};
const C: [ImmByte; 16] = unsafe { U { v: ::u128::MAX }.c };
Self::xor(v128::const_(C), a)
}
@ -664,7 +659,7 @@ impl v128 {
// #[target_feature(enable = "simd128")]
// FIXME: #[cfg_attr(test, assert_instr($id.load))]
pub unsafe fn load(m: *const v128) -> v128 {
::_core::ptr::read(m)
::ptr::read(m)
}
/// Store a `v128` vector to the given heap address.
@ -672,7 +667,7 @@ impl v128 {
// #[target_feature(enable = "simd128")]
// FIXME: #[cfg_attr(test, assert_instr($id.store))]
pub unsafe fn store(m: *mut v128, a: v128) {
::_core::ptr::write(m, a)
::ptr::write(m, a)
}
}

View file

@ -520,5 +520,5 @@ use stdsimd_test::assert_instr;
#[cfg_attr(test, assert_instr(ud2))]
#[inline]
pub unsafe fn ud2() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}