]> git.lizzy.rs Git - rust.git/commitdiff
correct mirphase docs
authorDrMeepster <19316085+DrMeepster@users.noreply.github.com>
Thu, 19 May 2022 02:09:11 +0000 (19:09 -0700)
committerDrMeepster <19316085+DrMeepster@users.noreply.github.com>
Thu, 16 Jun 2022 01:39:22 +0000 (18:39 -0700)
compiler/rustc_middle/src/mir/mod.rs

index b9e039d098b4fe542e30b60ab5be03f6ceac0b00..4265559cd3197e392525c1c258d5b745c847d0bc 100644 (file)
@@ -176,9 +176,8 @@ 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 variants are disallowed:
+    /// Beginning with this phase, the following variant is disallowed:
     /// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
-    /// * [`ProjectionElem::Deref`] of `Box`
     ///
     /// And the following variant is allowed:
     /// * [`StatementKind::SetDiscriminant`]
@@ -196,6 +195,7 @@ pub enum MirPhase {
     /// Beginning with this phase, the following variants are disallowed:
     /// * [`TerminatorKind::Yield`](terminator::TerminatorKind::Yield)
     /// * [`TerminatorKind::GeneratorDrop`](terminator::TerminatorKind::GeneratorDrop)
+    /// * [`ProjectionElem::Deref`] of `Box`
     GeneratorsLowered = 6,
     Optimized = 7,
 }