Skip to content

Commit 2f5e78c

Browse files
Jethro Beekmangnzlbg
Jethro Beekman
authored andcommitted
Fix build when used as a submodule
1 parent 165742a commit 2f5e78c

File tree

8 files changed

+10
-15
lines changed

8 files changed

+10
-15
lines changed

coresimd/aarch64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ use stdsimd_test::assert_instr;
2222
#[cfg_attr(test, assert_instr(brk))]
2323
#[inline]
2424
pub unsafe fn brk() -> ! {
25-
::_core::intrinsics::abort()
25+
::intrinsics::abort()
2626
}

coresimd/arm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ use stdsimd_test::assert_instr;
5555
#[cfg_attr(test, assert_instr(udf))]
5656
#[inline]
5757
pub unsafe fn udf() -> ! {
58-
::_core::intrinsics::abort()
58+
::intrinsics::abort()
5959
}

coresimd/mips/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ use stdsimd_test::assert_instr;
1010
#[cfg_attr(test, assert_instr(break))]
1111
#[inline]
1212
pub unsafe fn break_() -> ! {
13-
::_core::intrinsics::abort()
13+
::intrinsics::abort()
1414
}

coresimd/nvptx/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ pub unsafe fn _thread_idx_z() -> i32 {
122122
/// Generates the trap instruction `TRAP`
123123
#[inline]
124124
pub unsafe fn trap() -> ! {
125-
::_core::intrinsics::abort()
125+
::intrinsics::abort()
126126
}

coresimd/powerpc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ use stdsimd_test::assert_instr;
1515
#[cfg_attr(test, assert_instr(trap))]
1616
#[inline]
1717
pub unsafe fn trap() -> ! {
18-
::_core::intrinsics::abort()
18+
::intrinsics::abort()
1919
}

coresimd/wasm32/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ pub mod memory;
4343
#[cfg_attr(test, assert_instr(unreachable))]
4444
#[inline]
4545
pub unsafe fn unreachable() -> ! {
46-
::_core::intrinsics::abort()
46+
::intrinsics::abort()
4747
}

coresimd/wasm32/simd128.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,7 @@ impl v128 {
632632
c: [ImmByte; 16],
633633
}
634634
// FIXME: https://github.com/rust-lang/rust/issues/53193
635-
const C: [ImmByte; 16] = unsafe {
636-
U {
637-
v: ::_core::u128::MAX,
638-
}
639-
.c
640-
};
635+
const C: [ImmByte; 16] = unsafe { U { v: ::u128::MAX }.c };
641636
Self::xor(v128::const_(C), a)
642637
}
643638

@@ -664,15 +659,15 @@ impl v128 {
664659
// #[target_feature(enable = "simd128")]
665660
// FIXME: #[cfg_attr(test, assert_instr($id.load))]
666661
pub unsafe fn load(m: *const v128) -> v128 {
667-
::_core::ptr::read(m)
662+
::ptr::read(m)
668663
}
669664

670665
/// Store a `v128` vector to the given heap address.
671666
#[inline]
672667
// #[target_feature(enable = "simd128")]
673668
// FIXME: #[cfg_attr(test, assert_instr($id.store))]
674669
pub unsafe fn store(m: *mut v128, a: v128) {
675-
::_core::ptr::write(m, a)
670+
::ptr::write(m, a)
676671
}
677672
}
678673

coresimd/x86/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,5 +520,5 @@ use stdsimd_test::assert_instr;
520520
#[cfg_attr(test, assert_instr(ud2))]
521521
#[inline]
522522
pub unsafe fn ud2() -> ! {
523-
::_core::intrinsics::abort()
523+
::intrinsics::abort()
524524
}

0 commit comments

Comments
 (0)