diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2022-05-18 19:09:11 -0700 |
|---|---|---|
| committer | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2022-06-15 18:39:22 -0700 |
| commit | 6cb38fb3398dc009fb9e8b623bc7d43883cbec80 (patch) | |
| tree | 5c038ab7749f27b7eabde11e26da70cd2bf29395 | |
| parent | e0b0fb0af76e22fccaa880b2fffda3d35a27df8b (diff) | |
| download | rust-6cb38fb3398dc009fb9e8b623bc7d43883cbec80.tar.gz rust-6cb38fb3398dc009fb9e8b623bc7d43883cbec80.zip | |
correct mirphase docs
| -rw-r--r-- | compiler/rustc_middle/src/mir/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/mir/mod.rs b/compiler/rustc_middle/src/mir/mod.rs index b9e039d098b..4265559cd31 100644 --- a/compiler/rustc_middle/src/mir/mod.rs +++ b/compiler/rustc_middle/src/mir/mod.rs @@ -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, } |
