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

pub static  UNREACHABLE_CODE: &Lint

The unreachable_code lint detects unreachable code paths.

Example

panic!("we never go past here!");

let x = 5;

{{produces}}

Explanation

Unreachable code may signal a mistake or unfinished code. If the code is no longer in use, consider removing it.