rustc_lint::builtin

Static DEPRECATED

Source
pub static DEPRECATED: &'static Lint
Expand description

The deprecated lint detects use of deprecated items.

§Example

#[deprecated]
fn foo() {}

fn bar() {
    foo();
}

{{produces}}

§Explanation

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.