Skip to content

Commit

Permalink
core: #[allow(unreachable_pub)] on unreachable pub use
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau authored and gitbot committed Feb 20, 2025
1 parent 9c70db0 commit 38c4fe5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/arch.rs
Original file line number Diff line number Diff line change
@@ -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::*;

Expand Down

0 comments on commit 38c4fe5

Please sign in to comment.