est31
dcde480a66
Also consider match guards for divergence check
...
Plus, add some tests for the divergence check.
2022-10-24 22:05:39 +02:00
est31
748169deaa
Don't fire the lint if there is a type annotation
...
Sometimes type annotations are needed for type inferrence to work,
or because of coercions. We don't know this, and we also don't
want users to possibly repeat the entire pattern.
2022-10-24 22:05:39 +02:00
oxalica
01e651f2fe
Don't lint if the let is already a let-else
...
We cannot apply the lint for 3-branches like in the added example.
2022-10-24 22:05:39 +02:00
est31
a1db9311dc
Make an attempt of creating suggestions
...
They aren't perfect but better than nothing
2022-10-24 22:05:39 +02:00
est31
9bd70dbb88
Make the match checking configurable
2022-10-24 22:05:39 +02:00
est31
173a8e0480
Replace from_different_macros with equivalent and simpler check
2022-10-24 22:05:39 +02:00
est31
5da7a176b7
Don't suggest let else in match if the else arm explicitly mentions non obvious paths
2022-10-24 22:05:39 +02:00
est31
c5a7696231
Support tuples
2022-10-24 22:05:39 +02:00
est31
2e01e6b4c2
Also support linting for match
2022-10-24 22:05:39 +02:00
est31
f827be92fc
Add lint to tell about let else pattern
2022-10-24 22:05:39 +02:00