bors 99d4ea4f39 Auto merge of #10356 - JirkaVebr:let_underscore_untyped, r=llogiq
Add `let_underscore_untyped`

Fixes #6842

This adds a new pedantic `let_underscore_untyped` lint which checks for `let _ = <expr>`, and suggests to either provide a type annotation, or to remove the `let` keyword. That way the author is forced to specify the type they intended to ignore, and thus get forced to re-visit the decision should the type of `<expr>` change. Alternatively, they can drop the `let` keyword to truly just ignore the value no matter what.

r? `@llogiq`

changelog: New lint: [let_underscore_untyped]
2023-02-16 12:58:43 +00:00
..
2022-08-02 12:06:22 -05:00
2022-05-25 09:08:25 +09:00
2022-08-08 20:17:13 +02:00
2020-07-14 09:20:19 -07:00
2023-02-01 22:51:02 +01:00
2023-02-01 22:51:02 +01:00
2020-04-26 18:00:51 +03:00
2023-02-16 13:05:33 +01:00
2022-07-29 19:35:39 +01:00
2022-10-01 10:03:06 +00:00
2023-02-10 19:02:39 +01:00
2023-02-07 15:39:19 +05:30
2019-12-27 22:07:55 +09:00
2022-10-01 10:03:06 +00:00
2021-08-11 14:21:33 +00:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00