Fix std_detect_file_io
This commit is contained in:
parent
f5c59b3514
commit
efad3ead52
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@
|
|||
#[macro_use]
|
||||
extern crate std;
|
||||
|
||||
// rust-lang/rust#83888: removing `extern crate` gives an error that `vec_spare>
|
||||
#[cfg_attr(feature = "std_detect_file_io", allow(unused_extern_crates))]
|
||||
#[cfg(feature = "std_detect_file_io")]
|
||||
extern crate alloc;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[unstable(feature = "stdsimd", issue = "27731")]
|
||||
pub mod detect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue