Open onkoe opened 4 weeks ago
Just since I was confused when I read this the first time, this is intended to label code which is supposed to be changed once a feature becomes stable?
Nominated as this is related to a potential change to how we handle MSRVs.
@Jarcho Yes, you have it right! It's intended to alert users when unstable features are stabilized.
Discussed this briefly at the last meeting. There were no objections to doing this. This won't need a config option for MSRV handling since #13416 would handle that in a more general way.
What it does
This lint notifies a user when a given feature is stable. It lets users mark blocks, items, and statements with an expectation:
#[expect_unstable("some_unstable_feature")]
Configuration
follow-msrv
: Whether the crate's MSRV should be considered when checking for this lint. If the feature is stable, but the MSRV is set to something lower than the stabilized version, the lint will not apply. (default:true
)Advantage
Drawbacks
No response
Example
Could be written as: