diff options
Diffstat (limited to 'library/stdarch/crates/std_detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/mod.rs | 2 | ||||
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/os/other.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/mod.rs b/library/stdarch/crates/std_detect/src/detect/mod.rs index 77d1f7c5063..c44f44c1b34 100644 --- a/library/stdarch/crates/std_detect/src/detect/mod.rs +++ b/library/stdarch/crates/std_detect/src/detect/mod.rs @@ -56,6 +56,7 @@ cfg_if! { mod arch; } else { // Unimplemented architecture: + #[allow(dead_code)] mod arch { #[doc(hidden)] pub(crate) enum Feature { @@ -117,6 +118,7 @@ cfg_if! { /// Performs run-time feature detection. #[inline] +#[allow(dead_code)] fn check_for(x: Feature) -> bool { cache::test(x as u32, self::os::detect_features) } diff --git a/library/stdarch/crates/std_detect/src/detect/os/other.rs b/library/stdarch/crates/std_detect/src/detect/os/other.rs index bf7be87f073..091fafc4ebf 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/other.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/other.rs @@ -2,6 +2,7 @@ use crate::detect::cache; +#[allow(dead_code)] pub(crate) fn detect_features() -> cache::Initializer { cache::Initializer::default() } |
