Allow multiple #[unstable] attributes on one item #94770
Labels
A-stability
Area: `#[stable]`, `#[unstable]` etc.
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.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
F-staged_api
`#![feature(staged_api)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We sometimes have things that should be gated by multiple features. E.g.
ScopedJoinHandle::is_running
is part ofscoped_threads
, but also ofthread_is_running
. In these cases we now just apply only one of the#[unstable]
attributes, and because of that sometimes accidentally stabilize something when only one of the features gets stabilized.It'd be great if we could add multiple
#[unstable]
attributes to a single item. Allowing multiple#[stable]
tags isn't a necessity. We could just remove the#[unstable]
tag if the feature gets stabilized and there are other#[unstable]
tags left. The most important part is that we don't forget about the other unstable tags and don't stabilize something by accident.Another option would be multiple
feature =
arguments to#[unstable]
.The text was updated successfully, but these errors were encountered: