ambigous_pattern lint #2378
Labels
A-lint
Area: New lints
C-an-interesting-project
Category: Interesting projects, that usually are more involved design/code wise.
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-guidelines
Lint: Related to the Rust API Guidelines
T-middle
Type: Probably requires verifiying types
Ref: rust-lang/rfcs#2272
I would like an
ambiguous_pattern
lint that either:::
@
Those 2 requirements make it easy to avoid ambiguous patterns, for example:
Instead, write it as:
The text was updated successfully, but these errors were encountered: