@@ -1641,7 +1641,7 @@ pub enum AggregateKind<'tcx> {
16411641 Adt ( & ' tcx AdtDef , usize , & ' tcx Substs < ' tcx > , Option < usize > ) ,
16421642
16431643 Closure ( DefId , ClosureSubsts < ' tcx > ) ,
1644- Generator ( DefId , ClosureSubsts < ' tcx > , GeneratorInterior < ' tcx > ) ,
1644+ Generator ( DefId , ClosureSubsts < ' tcx > , GeneratorInterior < ' tcx > , hir :: GeneratorMovability ) ,
16451645}
16461646
16471647#[ derive( Copy , Clone , Debug , PartialEq , Eq , RustcEncodable , RustcDecodable ) ]
@@ -1804,7 +1804,7 @@ impl<'tcx> Debug for Rvalue<'tcx> {
18041804 }
18051805 } ) ,
18061806
1807- AggregateKind :: Generator ( def_id, _, _) => ty:: tls:: with ( |tcx| {
1807+ AggregateKind :: Generator ( def_id, _, _, _ ) => ty:: tls:: with ( |tcx| {
18081808 if let Some ( node_id) = tcx. hir . as_local_node_id ( def_id) {
18091809 let name = format ! ( "[generator@{:?}]" , tcx. hir. span( node_id) ) ;
18101810 let mut struct_fmt = fmt. debug_struct ( & name) ;
@@ -2375,10 +2375,11 @@ impl<'tcx> TypeFoldable<'tcx> for Rvalue<'tcx> {
23752375 AggregateKind :: Adt ( def, v, substs. fold_with ( folder) , n) ,
23762376 AggregateKind :: Closure ( id, substs) =>
23772377 AggregateKind :: Closure ( id, substs. fold_with ( folder) ) ,
2378- AggregateKind :: Generator ( id, substs, interior) =>
2378+ AggregateKind :: Generator ( id, substs, interior, movablity ) =>
23792379 AggregateKind :: Generator ( id,
23802380 substs. fold_with ( folder) ,
2381- interior. fold_with ( folder) ) ,
2381+ interior. fold_with ( folder) ,
2382+ movablity) ,
23822383 } ;
23832384 Aggregate ( kind, fields. fold_with ( folder) )
23842385 }
@@ -2405,7 +2406,7 @@ impl<'tcx> TypeFoldable<'tcx> for Rvalue<'tcx> {
24052406 AggregateKind :: Tuple => false ,
24062407 AggregateKind :: Adt ( _, _, substs, _) => substs. visit_with ( visitor) ,
24072408 AggregateKind :: Closure ( _, substs) => substs. visit_with ( visitor) ,
2408- AggregateKind :: Generator ( _, substs, interior) => substs. visit_with ( visitor) ||
2409+ AggregateKind :: Generator ( _, substs, interior, _ ) => substs. visit_with ( visitor) ||
24092410 interior. visit_with ( visitor) ,
24102411 } ) || fields. visit_with ( visitor)
24112412 }
0 commit comments