diff options
| author | Urgau <urgau@numericable.fr> | 2025-01-16 18:37:09 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-01-20 18:35:32 +0100 |
| commit | 15f345b8152f35c3bb1b665cf391f81d3323b9e9 (patch) | |
| tree | 62dd5229ac44c5dd7a39f078c1385cde48548dad | |
| parent | 8e615024844030e5148ee6d22efc5bcaa48c5311 (diff) | |
| download | rust-15f345b8152f35c3bb1b665cf391f81d3323b9e9.tar.gz rust-15f345b8152f35c3bb1b665cf391f81d3323b9e9.zip | |
core: `#[allow(unreachable_pub)]` on unreachable `pub use`
| -rw-r--r-- | library/core/src/arch.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/library/core/src/arch.rs b/library/core/src/arch.rs index cb130f60cec..81d828a971c 100644 --- a/library/core/src/arch.rs +++ b/library/core/src/arch.rs @@ -1,6 +1,14 @@ #![doc = include_str!("../../stdarch/crates/core_arch/src/core_arch_docs.md")] -#[allow(unused_imports)] +#[allow( + // some targets don't have anything to reexport, which + // makes the `pub use` unused and unreachable, allow + // both lints as to not have `#[cfg]`s + // + // cf. https://github.com/rust-lang/rust/pull/116033#issuecomment-1760085575 + unused_imports, + unreachable_pub +)] #[stable(feature = "simd_arch", since = "1.27.0")] pub use crate::core_arch::arch::*; |
