Static rustc_lint::builtin::USELESS_DEPRECATED [−][src]
pub static USELESS_DEPRECATED: &'static LintExpand 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.