diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-24 01:32:45 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-01-24 02:53:45 +0000 |
| commit | efad3ead528492f1ef9a63d6c582446d8d72f8a1 (patch) | |
| tree | 5dfcccf7287c2d2fb756880b0eab8f0878964576 /library/stdarch/crates/std_detect/src | |
| parent | f5c59b3514fd634ad22a25919bc8f2e25613c980 (diff) | |
| download | rust-efad3ead528492f1ef9a63d6c582446d8d72f8a1.tar.gz rust-efad3ead528492f1ef9a63d6c582446d8d72f8a1.zip | |
Fix std_detect_file_io
Diffstat (limited to 'library/stdarch/crates/std_detect/src')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/src/lib.rs b/library/stdarch/crates/std_detect/src/lib.rs index bf9c707cb62..c0e0de0dd5e 100644 --- a/library/stdarch/crates/std_detect/src/lib.rs +++ b/library/stdarch/crates/std_detect/src/lib.rs @@ -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; |
