Rollup merge of #100034 - tmiasko:elaborate-box-derefs, r=oli-obk

Elaborate all box dereferences in `ElaborateBoxDerefs`

so that it is the only pass responsible for elaboration, instead of
splitting this responsibility between the `StateTransform` and
`ElaborateBoxDerefs`.
This commit is contained in:
Yuki Okushi
2022-08-26 09:51:42 +09:00
committed by GitHub
4 changed files with 75 additions and 142 deletions

View File

@@ -1531,6 +1531,7 @@ impl<'tcx> Place<'tcx> {
}
impl From<Local> for Place<'_> {
#[inline]
fn from(local: Local) -> Self {
Place { local, projection: List::empty() }
}