Skip to content

Commit a02e351

Browse files
committed
Allow unused imports for empty modules
1 parent 57d8d44 commit a02e351

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

crates/core_arch/src/arm/mod.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics
88
99
// Supported arches: 6, 7-M. See Section 10.1 of ACLE (e.g. SSAT)
10-
//
11-
// Commented out since this is an empty module. Uncomment when implementing it.
12-
//#[cfg(any(target_feature = "v6", doc))]
13-
//mod sat;
14-
//
15-
//#[cfg(any(target_feature = "v6", doc))]
16-
//pub use self::sat::*;
10+
#[cfg(any(target_feature = "v6", doc))]
11+
mod sat;
12+
13+
#[cfg(any(target_feature = "v6", doc))]
14+
// Remove warning because this module is currently empty.
15+
#[allow(unused_imports)]
16+
pub use self::sat::*;
1717

1818
// Supported arches: 5TE, 7E-M. See Section 10.1 of ACLE (e.g. QADD)
1919
// We also include the A profile even though DSP is deprecated on that profile as of ACLE 2.0 (see

crates/core_arch/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ mod core_arch;
7474
#[stable(feature = "stdsimd", since = "1.27.0")]
7575
pub mod arch {
7676
#[stable(feature = "stdsimd", since = "1.27.0")]
77+
#[allow(unused_imports)]
7778
pub use crate::core_arch::arch::*;
7879
#[stable(feature = "stdsimd", since = "1.27.0")]
7980
pub use core::arch::asm;

0 commit comments

Comments
 (0)