Make the libstd build script smaller

Remove all rustc-link-lib from the std build script. Also remove use of
feature = "restricted-std" where not necessary.
This commit is contained in:
bjorn3 2020-11-10 19:01:21 +01:00
parent cf9cf7c923
commit 6f3872a14c
5 changed files with 86 additions and 58 deletions

View file

@ -563,5 +563,5 @@ include!("keyword_docs.rs");
// This is required to avoid an unstable error when `restricted-std` is not
// enabled. The use of #![feature(restricted_std)] in rustc-std-workspace-std
// is unconditional, so the unstable feature needs to be defined somewhere.
#[cfg_attr(not(feature = "restricted-std"), unstable(feature = "restricted_std", issue = "none"))]
#[unstable(feature = "restricted_std", issue = "none")]
mod __restricted_std_workaround {}