Auto merge of #11166 - Jarcho:expr_use, r=Centri3

Refactor some of  `dereference.rs` to util functions

I've seen a few lints that need to be able to tell if changing the type of an expression would be a vaild suggestion. This extracts part of how that's done from `explicit_auto_deref`.

changelog: None
This commit is contained in:
bors 2023-07-23 18:27:48 +00:00
commit a4e64ff375
2 changed files with 673 additions and 641 deletions

File diff suppressed because it is too large Load diff