pub static ELLIPSIS_INCLUSIVE_RANGE_PATTERNS: &Lint
Expand description

The ellipsis_inclusive_range_patterns lint detects the ... range pattern, which is deprecated.

§Example

let x = 123;
match x {
    0...100 => {}
    _ => {}
}

{{produces}}

§Explanation

The ... range pattern syntax was changed to ..= to avoid potential confusion with the .. range expression. Use the new form instead.