Skip to content

Commit 0df7764

Browse files
committed
Fix redundant import warnings
These were introduced by rust-lang/rust#117772.
1 parent d5fab97 commit 0df7764

17 files changed

+19
-57
lines changed

crates/core_arch/src/x86/avx.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
1616
use crate::{
1717
core_arch::{simd::*, simd_llvm::*, x86::*},
18-
intrinsics,
19-
mem::{self, transmute},
20-
ptr,
18+
mem, ptr,
2119
};
2220

2321
#[cfg(test)]

crates/core_arch/src/x86/avx2.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
//! [wiki_avx]: https://en.wikipedia.org/wiki/Advanced_Vector_Extensions
1919
//! [wiki_fma]: https://en.wikipedia.org/wiki/Fused_multiply-accumulate
2020
21-
use crate::{
22-
core_arch::{simd::*, simd_llvm::*, x86::*},
23-
mem::transmute,
24-
};
21+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
2522

2623
#[cfg(test)]
2724
use stdarch_test::assert_instr;

crates/core_arch/src/x86/avx512bf16.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
//!
33
//! [AVX512BF16 intrinsics]: https://software.intel.com/sites/landingpage/IntrinsicsGuide/#expand=1769&avx512techs=AVX512_BF16
44
5-
use crate::{
6-
core_arch::{simd::*, simd_llvm::*, x86::*},
7-
mem::transmute,
8-
};
5+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
96

107
#[cfg(test)]
118
use stdarch_test::assert_instr;

crates/core_arch/src/x86/avx512bw.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::{
22
arch::asm,
33
core_arch::{simd::*, simd_llvm::*, x86::*},
4-
mem::{self, transmute},
5-
ptr,
4+
mem, ptr,
65
};
76

87
#[cfg(test)]

crates/core_arch/src/x86/avx512cd.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use crate::{
2-
core_arch::{simd::*, simd_llvm::*, x86::*},
3-
mem::transmute,
4-
};
1+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
52

63
#[cfg(test)]
74
use stdarch_test::assert_instr;

crates/core_arch/src/x86/avx512f.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::{
22
arch::asm,
33
core_arch::{simd::*, simd_llvm::*, x86::*},
4-
mem::{self, transmute},
5-
ptr,
4+
mem, ptr,
65
};
76

87
// x86-32 wants to use a 32-bit address size, but asm! defaults to using the full

crates/core_arch/src/x86/avx512vnni.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use crate::{
2-
core_arch::{simd::*, simd_llvm::*, x86::*},
3-
mem::transmute,
4-
};
1+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
52

63
#[cfg(test)]
74
use stdarch_test::assert_instr;

crates/core_arch/src/x86/f16c.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
//!
33
//! [F16C intrinsics]: https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=fp16&expand=1769
44
5-
use crate::{
6-
core_arch::{simd::*, x86::*},
7-
// hint::unreachable_unchecked,
8-
mem::transmute,
9-
};
5+
use crate::core_arch::{simd::*, x86::*};
106

117
#[cfg(test)]
128
use stdarch_test::assert_instr;

crates/core_arch/src/x86/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! `x86` and `x86_64` intrinsics.
22
3-
use crate::{intrinsics, marker::Sized, mem::transmute};
3+
#[allow(unused_imports)]
4+
use crate::marker::Sized;
5+
use crate::{intrinsics, mem::transmute};
46

57
#[macro_use]
68
mod macros;

crates/core_arch/src/x86/sha.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use crate::{
2-
core_arch::{simd::*, x86::*},
3-
mem::transmute,
4-
};
1+
use crate::core_arch::{simd::*, x86::*};
52

63
#[allow(improper_ctypes)]
74
extern "C" {

crates/core_arch/src/x86/sse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use crate::{
44
core_arch::{simd::*, simd_llvm::*, x86::*},
5-
intrinsics, mem, ptr,
5+
mem, ptr,
66
};
77

88
#[cfg(test)]

crates/core_arch/src/x86/sse2.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ use stdarch_test::assert_instr;
55

66
use crate::{
77
core_arch::{simd::*, simd_llvm::*, x86::*},
8-
intrinsics,
9-
mem::{self, transmute},
10-
ptr,
8+
mem, ptr,
119
};
1210

1311
/// Provides a hint to the processor that the code sequence is a spin-wait loop.

crates/core_arch/src/x86/sse3.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! Streaming SIMD Extensions 3 (SSE3)
22
3-
use crate::{
4-
core_arch::{simd::*, simd_llvm::*, x86::*},
5-
mem::transmute,
6-
};
3+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
74

85
#[cfg(test)]
96
use stdarch_test::assert_instr;

crates/core_arch/src/x86/sse41.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! Streaming SIMD Extensions 4.1 (SSE4.1)
22
3-
use crate::{
4-
core_arch::{simd::*, simd_llvm::*, x86::*},
5-
mem::transmute,
6-
};
3+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
74

85
#[cfg(test)]
96
use stdarch_test::assert_instr;

crates/core_arch/src/x86/sse42.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
#[cfg(test)]
66
use stdarch_test::assert_instr;
77

8-
use crate::{
9-
core_arch::{simd::*, simd_llvm::*, x86::*},
10-
mem::transmute,
11-
};
8+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
129

1310
/// String contains unsigned 8-bit characters *(Default)*
1411
#[stable(feature = "simd_x86", since = "1.27.0")]

crates/core_arch/src/x86/sse4a.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! `i686`'s Streaming SIMD Extensions 4a (`SSE4a`)
22
3-
use crate::{
4-
core_arch::{simd::*, x86::*},
5-
mem::transmute,
6-
};
3+
use crate::core_arch::{simd::*, x86::*};
74

85
#[cfg(test)]
96
use stdarch_test::assert_instr;

crates/core_arch/src/x86/ssse3.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! Supplemental Streaming SIMD Extensions 3 (SSSE3)
22
3-
use crate::{
4-
core_arch::{simd::*, simd_llvm::*, x86::*},
5-
mem::transmute,
6-
};
3+
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};
74

85
#[cfg(test)]
96
use stdarch_test::assert_instr;

0 commit comments

Comments
 (0)