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
+1 -1
View File
@@ -22,5 +22,5 @@
#[cfg_attr(test, assert_instr(brk))]
#[inline]
pub unsafe fn brk() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}
+1 -1
View File
@@ -55,5 +55,5 @@
#[cfg_attr(test, assert_instr(udf))]
#[inline]
pub unsafe fn udf() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}
+1 -1
View File
@@ -10,5 +10,5 @@
#[cfg_attr(test, assert_instr(break))]
#[inline]
pub unsafe fn break_() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}
+1 -1
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()
}
+1 -1
View File
@@ -15,5 +15,5 @@
#[cfg_attr(test, assert_instr(trap))]
#[inline]
pub unsafe fn trap() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}
+1 -1
View File
@@ -43,5 +43,5 @@ pub unsafe fn grow_memory(delta: i32) -> i32 {
#[cfg_attr(test, assert_instr(unreachable))]
#[inline]
pub unsafe fn unreachable() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}
+3 -8
View File
@@ -632,12 +632,7 @@ union U {
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 @@ pub unsafe fn bitselect(v1: v128, v2: v128, c: v128) -> 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 @@ pub unsafe fn load(m: *const v128) -> 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)
}
}
+1 -1
View File
@@ -520,5 +520,5 @@ fn as_m256i(self) -> Self {
#[cfg_attr(test, assert_instr(ud2))]
#[inline]
pub unsafe fn ud2() -> ! {
::_core::intrinsics::abort()
::intrinsics::abort()
}