rustc_lint::builtin

Static USELESS_DEPRECATED

pub static USELESS_DEPRECATED: &'static Lint
Expand description

The useless_deprecated lint detects deprecation attributes with no effect.

§Example

struct X;

#[deprecated = "message"]
impl Default for X {
    fn default() -> Self {
        X
    }
}

{{produces}}

§Explanation

Deprecation attributes have no effect on trait implementations.