Centri3
26f50395ba
Add needless_if
lint
2023-06-10 06:51:03 -05:00
est31
f538402701
Support struct patterns
2023-06-02 14:46:27 +02:00
est31
86d57b7bd4
Support multi-binding situations as well as tuple patterns
2023-06-02 14:46:27 +02:00
est31
ef38662d04
Some improvements to the manual_let_else lint suggestions
...
* Replace variables inside | patterns in the if let: let v = if let V::A(v) | V::B(v) = v { v } else ...
* Support nested patterns: let v = if let Ok(Ok(Ok(v))) = v { v } else ...
* Support tuple structs with more than one arg: let v = V::W(v, _) = v { v } else ...
* Correctly handle .. in tuple struct patterns: let v = V::X(v, ..) = v { v } else ...
2023-05-18 11:16:57 +02:00
koka
07c8c50a41
Avoid renaming for TupleStruct with multiple arguments
...
update spec
fix: move specs in fire
2023-02-01 22:10:19 +09:00
koka
a408e76098
Suggest the correct variable name for manual_let_else
2023-02-01 19:17:39 +09:00
dswij
a4b53c9c14
manual_let_else
: Add test with expanded macros
2022-11-25 18:17:34 +08:00
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
a1db9311dc
Make an attempt of creating suggestions
...
They aren't perfect but better than nothing
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