remove box derefs from codgen

This commit is contained in:
DrMeepster 2022-05-13 21:53:03 -07:00
parent 3e9d3d917a
commit cb417881a9
16 changed files with 385 additions and 146 deletions

View file

@ -176,8 +176,9 @@ pub enum MirPhase {
DropsLowered = 3,
/// After this projections may only contain deref projections as the first element.
Derefered = 4,
/// Beginning with this phase, the following variant is disallowed:
/// Beginning with this phase, the following variants are disallowed:
/// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
/// * [`ProjectionElem::Deref`] of `Box`
///
/// And the following variant is allowed:
/// * [`StatementKind::SetDiscriminant`]