RS.CLIPPY.DEPRECATED_SEMVER

Use of `#[deprecated(since = \"x\")]` where x is not semver

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: deprecated_semver. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for #[deprecated] annotations with a since field that is not a valid semantic version. Also allows "TBD" to signal future deprecation.

Why is this bad?

For checking the version of the deprecation, it must be a valid semver. Failing that, the contained information is useless.

Example

#[deprecated(since = "forever")]
fn something_else() { /* ... */ }