Skip to content

Commit 7e498df

Browse files
committed
Fix std_detect on targets without feature detection
1 parent dc0ae28 commit 7e498df

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/std_detect/src/detect/macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(unused)]
12
macro_rules! features {
23
(
34
@TARGET: $target:ident;

crates/std_detect/src/detect/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ cfg_if! {
5555
} else {
5656
// Unimplemented architecture:
5757
mod arch {
58+
#[doc(hidden)]
5859
pub enum Feature {
5960
Null
6061
}
62+
#[doc(hidden)]
63+
pub mod __is_feature_detected {}
6164
}
6265
}
6366
}

0 commit comments

Comments
 (0)