Allow std
to re-export unstable things from core
without having to enable the feature itself
#94972
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
library/std/src/lib.rs
now enables a lot of#![feature]
s fromcore
andalloc
andtest
only because it needs to re-export some unstable items (with the same#[unstable]
tag). It makes it hard to tell ifstd
needs those features itself or not.It'd be great if an
#[unstable] pub use
would work without enabling the feature in the entire crate. (As long as the feature name is the same as on the original item, I suppose.)These are all not directly used by
std
, but only used for items that are unstably re-exported:I'd love to remove these lines.
The text was updated successfully, but these errors were encountered: