mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Fix build when used as a submodule
This commit is contained in:
@@ -22,5 +22,5 @@
|
||||
#[cfg_attr(test, assert_instr(brk))]
|
||||
#[inline]
|
||||
pub unsafe fn brk() -> ! {
|
||||
::_core::intrinsics::abort()
|
||||
::intrinsics::abort()
|
||||
}
|
||||
|
||||
@@ -55,5 +55,5 @@
|
||||
#[cfg_attr(test, assert_instr(udf))]
|
||||
#[inline]
|
||||
pub unsafe fn udf() -> ! {
|
||||
::_core::intrinsics::abort()
|
||||
::intrinsics::abort()
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
#[cfg_attr(test, assert_instr(break))]
|
||||
#[inline]
|
||||
pub unsafe fn break_() -> ! {
|
||||
::_core::intrinsics::abort()
|
||||
::intrinsics::abort()
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
#[cfg_attr(test, assert_instr(trap))]
|
||||
#[inline]
|
||||
pub unsafe fn trap() -> ! {
|
||||
::_core::intrinsics::abort()
|
||||
::intrinsics::abort()
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user