Closed
Description
Category: Complexity
Consider:
match x {
1 | 2 | 4 | 3 => 0,
_ => 1,
}
Ostensibly the or-pattern would be more clearly written as 1..=4
.
I would suggest making the analysis on HAIR.
cc @oli-obk cc rust-lang/rust#67488