rustc_lint::builtin

Static UNUSED_LABELS

Source
pub static UNUSED_LABELS: &'static Lint
Expand description

The unused_labels lint detects labels that are never used.

§Example

'unused_label: loop {}

{{produces}}

§Explanation

Unused labels may signal a mistake or unfinished code. To silence the warning for the individual label, prefix it with an underscore such as '_my_label:.