Skip to content

Commit 849a2fa

Browse files
committed
Enable edition=2018 for core_arch
1 parent 93efb62 commit 849a2fa

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

crates/core_arch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ keywords = ["core", "simd", "arch", "intrinsics"]
1515
categories = ["hardware-support", "no-std"]
1616
license = "MIT/Apache-2.0"
1717
build = "build.rs"
18-
edition = "2015"
18+
edition = "2018"
1919

2020
[badges]
2121
travis-ci = { repository = "rust-lang-nursery/stdsimd" }

crates/core_arch/src/acle/simd32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
#[cfg(test)]
6666
use stdsimd_test::assert_instr;
6767

68+
use crate::core_arch::acle::dsp::int16x2_t;
6869
use crate::mem::transmute;
69-
use core_arch::acle::dsp::int16x2_t;
7070

7171
types! {
7272
/// ARM-specific 32-bit wide vector of four packed `i8`.

crates/core_arch/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ extern crate std;
6565
extern crate std_detect;
6666
#[cfg(test)]
6767
extern crate stdsimd_test;
68-
#[cfg(test)]
69-
extern crate test;
7068

7169
#[cfg(all(test, target_arch = "wasm32"))]
7270
extern crate wasm_bindgen_test;
@@ -78,3 +76,6 @@ pub use self::core_arch::arch::*;
7876

7977
#[allow(unused_imports)]
8078
use core::{ffi, intrinsics, marker, mem, ptr, sync};
79+
80+
#[cfg(test)]
81+
use core::hint;

crates/core_arch/src/x86/avx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3308,8 +3308,8 @@ extern "C" {
33083308

33093309
#[cfg(test)]
33103310
mod tests {
3311-
use stdsimd_test::simd_test;
3312-
use test::black_box; // Used to inhibit constant-folding.
3311+
use crate::hint::black_box;
3312+
use stdsimd_test::simd_test; // Used to inhibit constant-folding.
33133313

33143314
use crate::core_arch::x86::*;
33153315

crates/core_arch/src/x86/sha.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ mod tests {
136136
use std::mem::{self, transmute};
137137

138138
use crate::core_arch::{simd::*, x86::*};
139-
use stdsimd_test::simd_test;
140-
use test::black_box; // Used to inhibit constant-folding.
139+
use crate::hint::black_box;
140+
use stdsimd_test::simd_test; // Used to inhibit constant-folding.
141141

142142
#[simd_test(enable = "sha")]
143143
#[allow(overflowing_literals)]

crates/core_arch/src/x86/sse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,10 +2497,10 @@ pub unsafe fn _mm_cvtps_pi8(a: __m128) -> __m64 {
24972497

24982498
#[cfg(test)]
24992499
mod tests {
2500+
use crate::hint::black_box;
25002501
use crate::mem::transmute;
25012502
use std::f32::NAN;
2502-
use stdsimd_test::simd_test;
2503-
use test::black_box; // Used to inhibit constant-folding.
2503+
use stdsimd_test::simd_test; // Used to inhibit constant-folding.
25042504

25052505
use crate::core_arch::{simd::*, x86::*};
25062506

crates/core_arch/src/x86/sse2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3189,8 +3189,8 @@ mod tests {
31893189
use std::mem::{self, transmute};
31903190

31913191
use crate::core_arch::{simd::*, x86::*};
3192-
use stdsimd_test::simd_test;
3193-
use test::black_box; // Used to inhibit constant-folding.
3192+
use crate::hint::black_box;
3193+
use stdsimd_test::simd_test; // Used to inhibit constant-folding.
31943194

31953195
#[test]
31963196
fn test_mm_pause() {

0 commit comments

Comments
 (0)