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
..
2023-01-30 16:16:53 -07:00
2022-10-06 09:19:29 +02:00
2023-02-14 23:27:46 +00:00
2023-02-12 16:19:51 -03:00
2023-02-12 16:19:51 -03:00
2022-02-17 18:03:13 +01:00
2023-02-04 19:28:11 +00:00
2023-02-04 19:28:11 +00:00
2023-02-04 19:28:11 +00:00
2020-10-24 09:37:23 +02:00
2022-10-29 12:15:51 +00:00
2022-01-11 09:53:29 +01:00
2022-11-27 12:43:17 +00:00
2022-10-12 13:29:27 +02:00
2023-02-12 08:56:21 +01:00
2023-02-12 08:56:21 +01:00
2022-11-27 12:43:17 +00:00
2022-08-02 12:06:22 -05:00
2020-04-08 00:43:27 +02:00
2022-09-01 18:46:53 +08:00
2022-01-12 00:25:42 -05:00
2019-01-08 21:46:39 +01:00
2022-07-28 10:57:01 +03:00
2021-08-14 19:49:45 -04:00
2023-02-14 15:37:48 +01:00
2023-02-14 15:37:48 +01:00
2022-12-16 10:54:12 -05:00
2023-02-15 10:01:33 -05:00
2023-02-15 10:01:33 -05:00
2021-03-01 16:17:33 -06:00
2022-10-02 23:02:13 +08:00
2022-10-02 23:02:13 +08:00
2022-10-06 09:19:29 +02:00
2022-10-24 10:51:50 +02:00
2022-05-25 09:08:25 +09:00
2021-10-29 22:07:05 +02:00
2022-08-08 20:17:13 +02:00
2022-06-25 14:16:31 +02:00
2022-10-12 09:28:17 +05:30
2021-09-14 09:59:06 -07:00
2019-09-21 10:01:06 +09:00
2022-05-25 09:08:25 +09:00
2020-07-14 09:20:19 -07:00
2023-02-16 11:31:42 +00:00
2023-02-16 11:31:42 +00:00
2022-09-08 20:44:32 +00:00
2023-02-16 13:05:33 +01:00
2023-02-16 13:05:33 +01:00
2021-08-12 22:18:45 +02:00
2023-02-16 11:31:42 +00:00
2023-02-01 22:51:02 +01:00
2023-02-01 22:51:02 +01:00
2022-12-13 21:43:16 +08:00
2023-02-15 00:47:43 +01:00
2023-02-16 13:05:33 +01:00
2023-02-16 13:05:33 +01:00
2023-02-16 13:05:33 +01:00
2022-11-27 12:43:17 +00:00
2020-04-26 18:00:51 +03:00
2023-01-30 17:29:29 -07:00
2023-01-30 17:29:29 -07:00
2021-10-15 02:36:58 -05:00
2020-10-26 11:02:07 +01:00
2023-02-16 13:05:33 +01:00
2023-02-16 13:05:33 +01:00
2022-08-03 12:17:23 +02:00
2019-10-14 12:09:04 +02:00
2023-01-12 13:28:22 -05:00
2022-10-02 15:13:22 -04:00
2023-02-02 19:37:34 -05:00
2023-02-02 19:37:34 -05:00
2023-02-02 19:37:34 -05:00
2023-02-15 11:26:30 +08:00
2023-02-15 11:26:30 +08:00
2023-02-15 11:26:30 +08:00
2023-02-14 09:55:44 +01:00
2023-02-14 09:55:44 +01:00
2023-02-02 19:37:34 -05:00
2023-02-02 19:37:34 -05:00
2022-08-03 12:17:23 +02:00
2022-10-02 15:13:22 -04:00
2022-12-20 00:37:51 +09:00
2022-07-29 19:35:39 +01:00
2023-01-12 13:28:22 -05:00
2023-02-02 19:37:34 -05:00
2023-02-02 19:37:34 -05:00
2021-09-14 09:59:06 -07:00
2022-11-27 12:43:17 +00:00
2023-02-02 19:37:34 -05:00
2023-02-02 19:37:34 -05:00
2021-12-18 00:07:36 +09:00
2023-02-10 15:07:34 -03:00
2023-02-10 15:07:34 -03:00
2023-02-10 15:07:34 -03:00
2022-10-01 10:03:06 +00:00
2019-09-25 14:45:18 -07:00
2020-02-05 20:54:58 +03:00
2023-02-10 22:35:23 +01:00
2023-02-10 19:02:39 +01:00
2023-02-07 15:39:19 +05:30
2023-02-13 16:16:31 +09:00
2023-02-13 16:16:31 +09:00
2023-02-13 16:16:31 +09:00
2023-01-30 20:12:19 +00:00
2022-05-04 15:04:05 +02:00
2023-02-11 12:22:25 -05:00
2023-02-11 12:22:25 -05:00
2022-08-16 15:53:01 -04:00
2023-02-15 08:49:43 +01:00
2023-02-15 08:49:43 +01:00
2022-10-02 15:13:22 -04:00
2019-12-27 22:07:55 +09:00
2022-11-27 12:43:17 +00:00
2022-11-30 12:59:50 +01:00
2022-10-01 10:03:06 +00:00
2021-08-11 14:21:33 +00:00
2023-02-16 11:31:42 +00:00
2023-02-16 11:31:42 +00:00
2022-09-11 12:40:52 +00:00
2022-10-02 15:13:22 -04:00
2022-10-02 15:13:22 -04:00
2023-01-30 17:29:29 -07:00
2023-01-30 17:29:29 -07:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00