bors ee67c79598 Auto merge of #10835 - y21:drain-collect, r=dswij
new lint: `drain_collect`

Closes #10818.

This adds a new lint that looks for `.drain(..).collect()` and suggests replacing it with `mem::take`.

changelog: [`drain_collect`]: new lint
2023-06-16 04:53:35 +00:00
..
2023-06-10 06:51:03 -05:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-14 12:53:36 +09:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-06 14:58:54 -04:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-09 15:32:42 -05:00
2023-06-09 15:32:42 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:04:34 +02:00
2023-06-12 16:04:34 +02:00
2023-06-12 16:04:34 +02:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-09 21:39:58 -04:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-06 22:56:57 +02:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-06 22:56:57 +02:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-09 21:39:58 -04:00
2023-06-09 21:39:58 -04:00
2023-06-06 22:56:57 +02:00
2023-06-15 20:23:11 +02:00
2023-06-15 20:23:11 +02:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-06 22:56:57 +02:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-06 22:56:57 +02:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-14 08:41:20 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-06 22:56:57 +02:00
2023-06-06 22:56:57 +02:00
2023-06-06 22:56:57 +02:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-12 16:21:06 +01:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-06-12 16:04:34 +02:00
2023-06-12 16:04:34 +02:00
2023-06-12 16:04:34 +02:00