New Lint: Explicit ranges with p0 | ... | p_n
=> range pat
#4931
Labels
A-lint
Area: New lints
L-complexity
Lint: Belongs in the complexity lint group
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Category: Complexity
Consider:
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
The text was updated successfully, but these errors were encountered: