Skip to content

Commit 582e38e

Browse files
committed
Remove incorrect comments about Rvalue::Aggregate not being allowed
1 parent c645363 commit 582e38e

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

‎compiler/rustc_middle/src/mir/syntax.rs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ pub enum RuntimePhase {
125125
/// disallowed:
126126
/// * [`TerminatorKind::Yield`]
127127
/// * [`TerminatorKind::CoroutineDrop`]
128-
/// * [`Rvalue::Aggregate`] for any `AggregateKind` except `Array`
129128
/// * [`Rvalue::CopyForDeref`]
130129
/// * [`PlaceElem::OpaqueCast`]
131130
/// * [`LocalInfo::DerefTemp`](super::LocalInfo::DerefTemp)
@@ -1447,9 +1446,6 @@ pub enum Rvalue<'tcx> {
14471446
/// This is needed because dataflow analysis needs to distinguish
14481447
/// `dest = Foo { x: ..., y: ... }` from `dest.x = ...; dest.y = ...;` in the case that `Foo`
14491448
/// has a destructor.
1450-
///
1451-
/// Disallowed after deaggregation for all aggregate kinds except `Array` and `Coroutine`. After
1452-
/// coroutine lowering, `Coroutine` aggregate kinds are disallowed too.
14531449
Aggregate(Box<AggregateKind<'tcx>>, IndexVec<FieldIdx, Operand<'tcx>>),
14541450

14551451
/// A CopyForDeref is equivalent to a read from a place at the

‎compiler/rustc_public/src/mir/body.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,6 @@ pub enum Rvalue {
551551
/// This is needed because dataflow analysis needs to distinguish
552552
/// `dest = Foo { x: ..., y: ... }` from `dest.x = ...; dest.y = ...;` in the case that `Foo`
553553
/// has a destructor.
554-
///
555-
/// Disallowed after deaggregation for all aggregate kinds except `Array` and `Coroutine`. After
556-
/// coroutine lowering, `Coroutine` aggregate kinds are disallowed too.
557554
Aggregate(AggregateKind, Vec<Operand>),
558555

559556
/// * `Offset` has the same semantics as `<*const T>::offset`, except that the second

0 commit comments

Comments
 (0)