correct mirphase docs
This commit is contained in:
parent
e0b0fb0af7
commit
6cb38fb339
1 changed files with 2 additions and 2 deletions
|
@ -176,9 +176,8 @@ pub enum MirPhase {
|
||||||
DropsLowered = 3,
|
DropsLowered = 3,
|
||||||
/// After this projections may only contain deref projections as the first element.
|
/// After this projections may only contain deref projections as the first element.
|
||||||
Derefered = 4,
|
Derefered = 4,
|
||||||
/// Beginning with this phase, the following variants are disallowed:
|
/// Beginning with this phase, the following variant is disallowed:
|
||||||
/// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
|
/// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
|
||||||
/// * [`ProjectionElem::Deref`] of `Box`
|
|
||||||
///
|
///
|
||||||
/// And the following variant is allowed:
|
/// And the following variant is allowed:
|
||||||
/// * [`StatementKind::SetDiscriminant`]
|
/// * [`StatementKind::SetDiscriminant`]
|
||||||
|
@ -196,6 +195,7 @@ pub enum MirPhase {
|
||||||
/// Beginning with this phase, the following variants are disallowed:
|
/// Beginning with this phase, the following variants are disallowed:
|
||||||
/// * [`TerminatorKind::Yield`](terminator::TerminatorKind::Yield)
|
/// * [`TerminatorKind::Yield`](terminator::TerminatorKind::Yield)
|
||||||
/// * [`TerminatorKind::GeneratorDrop`](terminator::TerminatorKind::GeneratorDrop)
|
/// * [`TerminatorKind::GeneratorDrop`](terminator::TerminatorKind::GeneratorDrop)
|
||||||
|
/// * [`ProjectionElem::Deref`] of `Box`
|
||||||
GeneratorsLowered = 6,
|
GeneratorsLowered = 6,
|
||||||
Optimized = 7,
|
Optimized = 7,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue