Commit Graph

10 Commits

Author SHA1 Message Date
Esteban Küber 63fb294a74 Add help for `matches` for `if let` in arm guard 2021-03-07 14:44:21 -08:00
Esteban Küber 23bcea4249 Add help suggesting `matches` to `let_chains` lint 2021-03-07 14:17:10 -08:00
Esteban Küber e62a543344 Account for `if (let pat = expr) {}`
Partially address #82827.
2021-03-07 13:49:36 -08:00
Camelid 5d2a2a1caa Add explanations and suggestions to `irrefutable_let_patterns` lint 2021-02-18 16:21:16 -08:00
Takayuki Maeda 0f04875d2e replace if-let and while-let with `if let` and `while let` 2021-02-17 19:26:38 +09:00
Dan Aloni eaefe4a230 path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
LeSeulArtichaut 46e9212ecb Change the message for `if_let_guard` feature gate 2020-12-17 17:08:18 +01:00
LeSeulArtichaut 0917260368 Add a few basic tests for if-let guards 2020-12-06 13:43:21 +01:00
LeSeulArtichaut 77d80b22f1 Introduce if-let guards in the HIR 2020-12-06 11:48:06 +01:00
Lzu Tao 57c5da8f1c Gate to if-let guard feature 2020-08-08 10:38:46 +00:00