You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Avoids confusing (and difficult-to-track) TODOs and FIXMEs where unstable features would improve source code.
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.
Jarcho
added
I-nominated
Issue: Nominated to be discussed at the next Clippy meeting
and removed
beta-nominated
Nominated for backporting to the compiler in the beta channel.
I-nominated
Issue: Nominated to be discussed at the next Clippy meeting
labels
Sep 17, 2024
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:
The text was updated successfully, but these errors were encountered: