From f5c59b3514fd634ad22a25919bc8f2e25613c980 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Mon, 17 Jan 2022 21:05:59 +0000 Subject: Handle stabilization of vec_spare_capacity --- library/stdarch/crates/std_detect/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'library/stdarch/crates/std_detect') diff --git a/library/stdarch/crates/std_detect/src/lib.rs b/library/stdarch/crates/std_detect/src/lib.rs index a17bd40e04f..bf9c707cb62 100644 --- a/library/stdarch/crates/std_detect/src/lib.rs +++ b/library/stdarch/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; -- cgit 1.4.1-3-g733a5