From 1d5d0e8b0e3134dc781adb98057e38ffdf200df2 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Mon, 17 Jan 2022 21:05:59 +0000 Subject: [PATCH] Handle stabilization of vec_spare_capacity --- crates/std_detect/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/std_detect/src/lib.rs b/crates/std_detect/src/lib.rs index a17bd40e04..bf9c707cb6 100644 --- a/crates/std_detect/src/lib.rs +++ b/crates/std_detect/src/lib.rs @@ -18,14 +18,8 @@ #![allow(clippy::shadow_reuse)] #![deny(clippy::missing_inline_in_public_items)] #![cfg_attr(test, allow(unused_imports))] -#![cfg_attr(feature = "std_detect_file_io", feature(vec_spare_capacity))] #![no_std] -// rust-lang/rust#83888: removing `extern crate` gives an error that `vec_spare_capacity` is unknown -#[cfg_attr(feature = "std_detect_file_io", allow(unused_extern_crates))] -#[cfg(feature = "std_detect_file_io")] -extern crate alloc; - #[cfg(test)] #[macro_use] extern crate std;