a4e64ff375
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