Skip to content

Commit 288931b

Browse files
Urgaugitbot
authored and
gitbot
committed
core: #[allow(unreachable_pub)] on unreachable pub use
1 parent ce098a5 commit 288931b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/src/arch.rs

Lines changed: 9 additions & 1 deletion
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)