Skip to content

Commit

Permalink
Fix redundant import warnings
Browse files Browse the repository at this point in the history
These were introduced by rust-lang/rust#117772.
  • Loading branch information
Amanieu committed Feb 20, 2024
1 parent d5fab97 commit 0df7764
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 57 deletions.
4 changes: 1 addition & 3 deletions crates/core_arch/src/x86/avx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
intrinsics,
mem::{self, transmute},
ptr,
mem, ptr,
};

#[cfg(test)]
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
//! [wiki_avx]: https://en.wikipedia.org/wiki/Advanced_Vector_Extensions
//! [wiki_fma]: https://en.wikipedia.org/wiki/Fused_multiply-accumulate
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/avx512bf16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
//!
//! [AVX512BF16 intrinsics]: https://software.intel.com/sites/landingpage/IntrinsicsGuide/#expand=1769&avx512techs=AVX512_BF16
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
3 changes: 1 addition & 2 deletions crates/core_arch/src/x86/avx512bw.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use crate::{
arch::asm,
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::{self, transmute},
ptr,
mem, ptr,
};

#[cfg(test)]
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/avx512cd.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
3 changes: 1 addition & 2 deletions crates/core_arch/src/x86/avx512f.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use crate::{
arch::asm,
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::{self, transmute},
ptr,
mem, ptr,
};

// x86-32 wants to use a 32-bit address size, but asm! defaults to using the full
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/avx512vnni.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
6 changes: 1 addition & 5 deletions crates/core_arch/src/x86/f16c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
//!
//! [F16C intrinsics]: https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=fp16&expand=1769
use crate::{
core_arch::{simd::*, x86::*},
// hint::unreachable_unchecked,
mem::transmute,
};
use crate::core_arch::{simd::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
4 changes: 3 additions & 1 deletion crates/core_arch/src/x86/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! `x86` and `x86_64` intrinsics.
use crate::{intrinsics, marker::Sized, mem::transmute};
#[allow(unused_imports)]
use crate::marker::Sized;
use crate::{intrinsics, mem::transmute};

#[macro_use]
mod macros;
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/sha.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use crate::{
core_arch::{simd::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, x86::*};

#[allow(improper_ctypes)]
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion crates/core_arch/src/x86/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
intrinsics, mem, ptr,
mem, ptr,
};

#[cfg(test)]
Expand Down
4 changes: 1 addition & 3 deletions crates/core_arch/src/x86/sse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ use stdarch_test::assert_instr;

use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
intrinsics,
mem::{self, transmute},
ptr,
mem, ptr,
};

/// Provides a hint to the processor that the code sequence is a spin-wait loop.
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/sse3.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! Streaming SIMD Extensions 3 (SSE3)
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/sse41.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! Streaming SIMD Extensions 4.1 (SSE4.1)
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/sse42.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
#[cfg(test)]
use stdarch_test::assert_instr;

use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

/// String contains unsigned 8-bit characters *(Default)*
#[stable(feature = "simd_x86", since = "1.27.0")]
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/sse4a.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! `i686`'s Streaming SIMD Extensions 4a (`SSE4a`)
use crate::{
core_arch::{simd::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down
5 changes: 1 addition & 4 deletions crates/core_arch/src/x86/ssse3.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! Supplemental Streaming SIMD Extensions 3 (SSSE3)
use crate::{
core_arch::{simd::*, simd_llvm::*, x86::*},
mem::transmute,
};
use crate::core_arch::{simd::*, simd_llvm::*, x86::*};

#[cfg(test)]
use stdarch_test::assert_instr;
Expand Down

0 comments on commit 0df7764

Please sign in to comment.