bors
5b52474ae6
Auto merge of #5911 - hegza:issue-568, r=ebroto
...
Add lint for 'field_reassign_with_default` #568
changelog: Add lint for field_reassign_with_default that checks if mutable object + field modification is used to edit a binding initialized with Default::default() instead of struct constructor.
Fixes #568
Notes:
- Checks for reassignment of one or more fields of a binding initialized with Default::default().
- Implemented using EarlyLintPass, might be future proofed better with LateLintPass.
- Does not trigger if Default::default() is used via another type implementing Default.
- This is a re-open of [PR#4761](https://github.com/rust-lang/rust-clippy/pull/4761 ), but I couldn't figure out how to re-open that one so here's a new one with the requested changes :S
2020-11-04 22:21:44 +00:00
..
2020-10-26 10:14:03 +01:00
2020-10-28 23:35:11 +01:00
2020-10-23 22:16:59 +02:00
2020-08-28 18:43:25 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-21 11:04:26 -04:00
2020-10-21 11:04:26 -04:00
2020-10-21 11:04:26 -04:00
2020-10-21 11:04:26 -04:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-24 09:37:23 +02:00
2020-10-24 09:37:23 +02:00
2020-10-24 09:37:23 +02:00
2020-10-27 12:11:09 +13:00
2020-10-27 12:11:09 +13:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-24 14:08:53 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-10-26 00:31:25 +01:00
2020-10-26 00:31:25 +01:00
2020-10-26 00:31:25 +01:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-10-14 18:19:26 +03:30
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-10-28 22:34:45 +01:00
2020-10-28 22:34:45 +01:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-10-22 22:03:13 -07:00
2020-10-22 22:03:13 -07:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-10-19 17:36:48 +02:00
2020-10-19 17:36:48 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-31 15:49:58 +02:00
2020-10-31 15:49:58 +02:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-09-24 14:49:22 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-11-03 16:44:24 +01:00
2020-11-03 16:44:24 +01:00
2020-09-10 17:47:07 +02:00
2020-11-03 16:44:23 +01:00
2020-11-03 16:44:23 +01:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-19 09:53:35 -03:00
2020-10-19 09:53:35 -03:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-10-29 19:08:52 +05:30
2020-10-30 17:31:10 +05:30
2020-09-24 14:49:22 +02:00
2020-10-27 07:42:13 +02:00
2020-10-27 07:42:13 +02:00
2020-09-02 13:18:19 +02:00
2020-09-03 04:58:14 +02:00
2020-10-14 23:49:48 -04:00
2020-10-14 23:49:48 -04:00
2020-08-28 18:43:25 +02:00
2020-10-26 11:02:07 +01:00
2020-10-25 09:18:38 -04:00
2020-10-25 11:31:24 -04:00
2020-10-24 14:46:56 -03:00
2020-10-24 14:46:56 -03:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-25 11:31:24 -04:00
2020-10-25 11:31:24 -04:00
2020-10-27 01:57:04 +01:00
2020-10-27 01:57:04 +01:00
2020-10-27 01:57:04 +01:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-24 11:35:05 +02:00
2020-10-24 11:35:05 +02:00
2020-10-24 11:35:05 +02:00
2020-08-28 18:43:25 +02:00
2020-10-25 21:20:57 -04:00
2020-10-25 21:20:57 -04:00
2020-10-25 21:20:57 -04:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-26 11:15:01 +01:00
2020-10-26 11:15:01 +01:00
2020-10-26 11:15:01 +01:00
2020-10-26 11:15:01 +01:00
2020-10-26 11:15:01 +01:00
2020-10-27 23:45:58 +03:00
2020-10-27 23:45:58 +03:00
2020-10-27 23:45:58 +03:00
2020-10-27 23:45:58 +03:00
2020-10-27 23:45:58 +03:00
2020-09-24 14:49:22 +02:00
2020-11-02 11:52:17 -06:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-26 11:02:07 +01:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-25 17:41:30 +08:00
2020-10-25 17:41:30 +08:00
2020-10-25 17:41:30 +08:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-26 00:01:20 +09:00
2020-10-26 00:01:20 +09:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-20 00:42:00 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-26 22:34:42 +01:00
2020-10-26 22:34:42 +01:00
2020-10-26 22:34:42 +01:00
2020-10-26 11:02:07 +01:00
2020-09-10 17:47:07 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-09 12:45:29 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-10-22 08:45:21 +02:00
2020-10-22 08:45:21 +02:00
2020-10-22 08:45:21 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-26 23:00:10 +01:00
2020-10-29 17:38:46 +01:00
2020-10-09 12:45:29 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-10-30 23:47:22 +01:00
2020-10-30 23:47:22 +01:00
2020-10-30 23:47:22 +01:00
2020-10-30 23:29:44 +01:00
2020-10-30 23:29:44 +01:00
2020-10-30 23:29:44 +01:00
2020-10-19 09:53:35 -03:00
2020-10-19 09:53:35 -03:00
2020-10-19 09:53:35 -03:00
2020-10-26 11:02:07 +01:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 15:23:38 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-26 10:14:03 +01:00
2020-10-26 10:14:03 +01:00
2020-10-26 10:14:03 +01:00
2020-10-26 10:14:03 +01:00
2020-10-26 10:14:03 +01:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-10 17:47:07 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-21 21:21:11 -04:00
2020-10-21 21:21:11 -04:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-10-24 00:04:37 +02:00
2020-10-24 00:04:37 +02:00
2020-10-24 00:04:37 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-09 12:45:29 +02:00
2020-10-25 09:18:38 -04:00
2020-10-25 11:31:24 -04:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-10-23 22:16:59 +02:00
2020-10-23 22:16:59 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-10 17:47:07 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00
2020-09-24 14:49:22 +02:00
2020-09-24 14:49:22 +02:00
2020-08-28 18:43:25 +02:00
2020-08-28 18:43:25 +02:00