bors a4130e1612 Auto merge of #8355 - Jarcho:explicit_auto_deref_2, r=flip1995
Add lint `explicit_auto_deref` take 2

fixes: #234
fixes: #8367
fixes: #8380

Still things to do:

* ~~This currently only lints `&*<expr>` when it doesn't trigger `needless_borrow`.~~
* ~~This requires a borrow after a deref to trigger. So `*<expr>` changing `&&T` to `&T` won't be caught.~~
* The `deref` and `deref_mut` trait methods aren't linted.
* Neither ~~field accesses~~, nor method receivers are linted.
* ~~This probably shouldn't lint reborrowing.~~
* Full slicing to deref should probably be handled here as well. e.g. `&vec[..]` when just `&vec` would do

changelog: new lint `explicit_auto_deref`
2022-06-28 18:09:26 +00:00
..
2021-11-10 16:37:55 -06:00
2022-01-11 09:53:29 +01:00
2020-01-07 18:38:12 +09:00
2021-11-01 19:33:27 -04:00
2020-12-19 17:00:40 +01:00
2022-06-20 11:05:40 +09:00
2019-12-24 03:06:52 +07:00
2020-07-14 09:20:19 -07:00
2021-12-26 21:37:57 +08:00
2022-02-24 22:55:40 +03:00
2022-02-24 22:55:40 +03:00
2021-08-11 14:21:33 +00:00
2020-04-26 18:00:51 +03:00
2019-12-31 09:22:35 -08:00
2021-09-05 01:25:59 +04:30
2022-06-20 12:03:27 +00:00
2021-11-23 15:08:49 +00:00
2020-11-28 21:21:04 -08:00
2021-06-04 08:05:54 -04:00
2021-12-13 00:00:51 +00:00
2020-10-25 17:41:30 +08:00
2020-10-25 17:41:30 +08:00
2021-08-11 14:21:33 +00:00
2022-03-30 20:13:16 +02:00
2021-11-19 16:17:17 +09:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2022-06-14 23:30:43 +09:00
2022-06-14 23:30:43 +09:00
2021-11-17 08:38:45 +08:00
2020-09-10 15:23:38 +02:00
2021-12-12 12:34:21 +00:00
2021-10-09 05:47:07 -04:00
2020-11-18 01:28:37 +09:00
2022-04-17 11:03:34 +02:00
2021-02-10 11:57:28 +01:00
2022-06-28 12:48:24 -04:00
2020-03-10 18:00:37 -04:00
2019-10-02 22:38:00 +07:00