Open
Description
What is this lint about
When some feature is unstable, but was allowed on stable due to some stability checking hole or oversight we may unstabilize it in a "soft" way to avoid breaking crates depending on the crates using the feature.
This soft unstabilization can be done using this lint.
How to fix this warning/error
Remove or cfg
-out uses of the unstable feature in configurations of your code that are supposed to build on stable.
Current status
- Support "soft" feature-gating using a lint #64066 uses
soft_unstable
for the attribute#[bench]
(feature(test)
). - rustc_expand: Mark inner
#![test]
attributes as soft-unstable #79003 usessoft_unstable
for inner#![test]
(feature(custom_inner_attributes)
). - expand: Resolve and expand inner attributes on out-of-line modules #82399 uses
soft_unstable
for inner#![rustfmt::skip]
on out-of-line modules (feature(custom_inner_attributes)
).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Area: Lints (warnings about flaws in source code) such as unused_mut.Category: Future-incompatibility lintsCategory: A tracking issue for an RFC or an unstable feature.Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.
Type
Projects
Status
Idea