Skip to content

Commit 6cb38fb

Browse files
committed
correct mirphase docs
1 parent e0b0fb0 commit 6cb38fb

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/mir/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,8 @@ pub enum MirPhase {
176176
DropsLowered = 3,
177177
/// After this projections may only contain deref projections as the first element.
178178
Derefered = 4,
179-
/// Beginning with this phase, the following variants are disallowed:
179+
/// Beginning with this phase, the following variant is disallowed:
180180
/// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
181-
/// * [`ProjectionElem::Deref`] of `Box`
182181
///
183182
/// And the following variant is allowed:
184183
/// * [`StatementKind::SetDiscriminant`]
@@ -196,6 +195,7 @@ pub enum MirPhase {
196195
/// Beginning with this phase, the following variants are disallowed:
197196
/// * [`TerminatorKind::Yield`](terminator::TerminatorKind::Yield)
198197
/// * [`TerminatorKind::GeneratorDrop`](terminator::TerminatorKind::GeneratorDrop)
198+
/// * [`ProjectionElem::Deref`] of `Box`
199199
GeneratorsLowered = 6,
200200
Optimized = 7,
201201
}

0 commit comments

Comments
 (0)