Fix std_detect on targets without feature detection
This commit is contained in:
parent
d27acfcb7a
commit
4821a68959
2 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#[allow(unused)]
|
||||
macro_rules! features {
|
||||
(
|
||||
@TARGET: $target:ident;
|
||||
|
|
|
|||
|
|
@ -55,9 +55,12 @@ cfg_if! {
|
|||
} else {
|
||||
// Unimplemented architecture:
|
||||
mod arch {
|
||||
#[doc(hidden)]
|
||||
pub enum Feature {
|
||||
Null
|
||||
}
|
||||
#[doc(hidden)]
|
||||
pub mod __is_feature_detected {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue