@@ -654,9 +654,7 @@ impl Rvalue {
654
654
) ) ,
655
655
AggregateKind :: Adt ( def, _, ref args, _, _) => Ok ( def. ty_with_args ( args) ) ,
656
656
AggregateKind :: Closure ( def, ref args) => Ok ( Ty :: new_closure ( def, args. clone ( ) ) ) ,
657
- AggregateKind :: Coroutine ( def, ref args, mov) => {
658
- Ok ( Ty :: new_coroutine ( def, args. clone ( ) , mov) )
659
- }
657
+ AggregateKind :: Coroutine ( def, ref args) => Ok ( Ty :: new_coroutine ( def, args. clone ( ) ) ) ,
660
658
AggregateKind :: CoroutineClosure ( def, ref args) => {
661
659
Ok ( Ty :: new_coroutine_closure ( def, args. clone ( ) ) )
662
660
}
@@ -674,8 +672,7 @@ pub enum AggregateKind {
674
672
Tuple ,
675
673
Adt ( AdtDef , VariantIdx , GenericArgs , Option < UserTypeAnnotationIndex > , Option < FieldIdx > ) ,
676
674
Closure ( ClosureDef , GenericArgs ) ,
677
- // FIXME(rustc_public): Movability here is redundant
678
- Coroutine ( CoroutineDef , GenericArgs , Movability ) ,
675
+ Coroutine ( CoroutineDef , GenericArgs ) ,
679
676
CoroutineClosure ( CoroutineClosureDef , GenericArgs ) ,
680
677
RawPtr ( Ty , Mutability ) ,
681
678
}
0 commit comments