Skip to content

Commit

Permalink
Allow unused imports for empty modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Oct 28, 2023
1 parent 57d8d44 commit a02e351
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/core_arch/src/arm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics

// Supported arches: 6, 7-M. See Section 10.1 of ACLE (e.g. SSAT)
//
// Commented out since this is an empty module. Uncomment when implementing it.
//#[cfg(any(target_feature = "v6", doc))]
//mod sat;
//
//#[cfg(any(target_feature = "v6", doc))]
//pub use self::sat::*;
#[cfg(any(target_feature = "v6", doc))]
mod sat;

#[cfg(any(target_feature = "v6", doc))]
// Remove warning because this module is currently empty.
#[allow(unused_imports)]
pub use self::sat::*;

// Supported arches: 5TE, 7E-M. See Section 10.1 of ACLE (e.g. QADD)
// We also include the A profile even though DSP is deprecated on that profile as of ACLE 2.0 (see
Expand Down
1 change: 1 addition & 0 deletions crates/core_arch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ mod core_arch;
#[stable(feature = "stdsimd", since = "1.27.0")]
pub mod arch {
#[stable(feature = "stdsimd", since = "1.27.0")]
#[allow(unused_imports)]
pub use crate::core_arch::arch::*;
#[stable(feature = "stdsimd", since = "1.27.0")]
pub use core::arch::asm;
Expand Down

0 comments on commit a02e351

Please sign in to comment.