Skip to content

Commit e4fffe8

Browse files
committed
Fix std_detect_file_io
1 parent 11c98f6 commit e4fffe8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/std_detect/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
#[macro_use]
2525
extern crate std;
2626

27+
// rust-lang/rust#83888: removing `extern crate` gives an error that `vec_spare>
28+
#[cfg_attr(feature = "std_detect_file_io", allow(unused_extern_crates))]
29+
#[cfg(feature = "std_detect_file_io")]
30+
extern crate alloc;
31+
2732
#[doc(hidden)]
2833
#[unstable(feature = "stdsimd", issue = "27731")]
2934
pub mod detect;

0 commit comments

Comments
 (0)