[][src]Static rustc_ap_rustc_session::lint::builtin::DEAD_CODE

pub static  DEAD_CODE: &Lint

The dead_code lint detects unused, unexported items.

Example

fn foo() {}

{{produces}}

Explanation

Dead code may signal a mistake or unfinished code. To silence the warning for individual items, prefix the name with an underscore such as _foo. If it was intended to expose the item outside of the crate, consider adding a visibility modifier like pub. Otherwise consider removing the unused code.