@@ -654,9 +654,7 @@ impl Rvalue {
654654 ) ) ,
655655 AggregateKind :: Adt ( def, _, ref args, _, _) => Ok ( def. ty_with_args ( args) ) ,
656656 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 ( ) ) ) ,
660658 AggregateKind :: CoroutineClosure ( def, ref args) => {
661659 Ok ( Ty :: new_coroutine_closure ( def, args. clone ( ) ) )
662660 }
@@ -674,8 +672,7 @@ pub enum AggregateKind {
674672 Tuple ,
675673 Adt ( AdtDef , VariantIdx , GenericArgs , Option < UserTypeAnnotationIndex > , Option < FieldIdx > ) ,
676674 Closure ( ClosureDef , GenericArgs ) ,
677- // FIXME(rustc_public): Movability here is redundant
678- Coroutine ( CoroutineDef , GenericArgs , Movability ) ,
675+ Coroutine ( CoroutineDef , GenericArgs ) ,
679676 CoroutineClosure ( CoroutineClosureDef , GenericArgs ) ,
680677 RawPtr ( Ty , Mutability ) ,
681678}
0 commit comments