Static rustc_lint_defs::builtin::DEPRECATED

source ·
pub static DEPRECATED: &Lint
Expand description

The deprecated lint detects use of deprecated items.


fn foo() {}

fn bar() {



Items may be marked “deprecated” with the deprecated attribute to indicate that they should no longer be used. Usually the attribute should include a note on what to use instead, or check the documentation.