bors d5a74249c8 Auto merge of #112882 - DrMeepster:new_un_derefer, r=oli-obk
Rewrite `UnDerefer`

Currently, `UnDerefer` is used by drop elaboration to undo the effects of the `Derefer` pass. However, it just recreates the original places with derefs in the middle of the projection. Because `ProjectionElem::Deref` is intended to be removed completely in the future, this will not work forever.

This PR introduces a `deref_chain` method that returns the places behind `DerefTemp` locals in a place and rewrites the move path code to use this. In the process, `UnDerefer` was merged into `MovePathLookup`. Now that move paths use the same places as in the MIR, the other uses of `UnDerefer` no longer require it.

See #98145
cc `@ouz-a`
r? `@oli-obk`
2023-07-03 02:46:39 +00:00
..
2023-06-01 14:45:19 +00:00
2023-06-14 20:08:04 +00:00
2023-05-29 17:15:48 +02:00
2023-05-17 12:18:55 +00:00
2023-06-29 11:53:41 +10:00
2023-06-22 18:34:23 +00:00
2023-05-15 20:27:12 +00:00
2023-05-15 20:27:12 +00:00
2023-06-19 09:16:26 +02:00