Fix std_detect on targets without feature detection

This commit is contained in:
gnzlbg
2019-09-16 17:58:36 +02:00
committed by gnzlbg
parent d27acfcb7a
commit 4821a68959
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
#[allow(unused)]
macro_rules! features {
(
@TARGET: $target:ident;

View File

@@ -55,9 +55,12 @@ cfg_if! {
} else {
// Unimplemented architecture:
mod arch {
#[doc(hidden)]
pub enum Feature {
Null
}
#[doc(hidden)]
pub mod __is_feature_detected {}
}
}
}