Skip to content

Commit 7c020ae

Browse files
committed
core: #[allow(unreachable_pub)] on unreachable pub use
1 parent 9412a16 commit 7c020ae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/src/arch.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#![doc = include_str!("../../stdarch/crates/core_arch/src/core_arch_docs.md")]
22

3-
#[allow(unused_imports)]
3+
#[allow(
4+
// some targets don't have anything to reexport, which
5+
// makes the `pub use` unused and unreachable, allow
6+
// both lints as to not have `#[cfg]`s
7+
//
8+
// cf. https://github.com/rust-lang/rust/pull/116033#issuecomment-1760085575
9+
unused_imports,
10+
unreachable_pub
11+
)]
412
#[stable(feature = "simd_arch", since = "1.27.0")]
513
pub use crate::core_arch::arch::*;
614

0 commit comments

Comments
 (0)