Skip to content

Commit 11c98f6

Browse files
committed
Handle stabilization of vec_spare_capacity
1 parent 2adc17a commit 11c98f6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

crates/std_detect/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@
1818
#![allow(clippy::shadow_reuse)]
1919
#![deny(clippy::missing_inline_in_public_items)]
2020
#![cfg_attr(test, allow(unused_imports))]
21-
#![cfg_attr(feature = "std_detect_file_io", feature(vec_spare_capacity))]
2221
#![no_std]
2322

24-
// rust-lang/rust#83888: removing `extern crate` gives an error that `vec_spare_capacity` is unknown
25-
#[cfg_attr(feature = "std_detect_file_io", allow(unused_extern_crates))]
26-
#[cfg(feature = "std_detect_file_io")]
27-
extern crate alloc;
28-
2923
#[cfg(test)]
3024
#[macro_use]
3125
extern crate std;

0 commit comments

Comments
 (0)