@@ -646,9 +646,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
646646 let base = self . canonical_user_type_annotations . push ( annotation. clone ( ) ) ;
647647 self . cfg . push (
648648 block,
649- Statement {
650- source_info : ty_source_info,
651- kind : StatementKind :: AscribeUserType (
649+ Statement :: new (
650+ ty_source_info,
651+ StatementKind :: AscribeUserType (
652652 Box :: new ( ( place, UserTypeProjection { base, projs : Vec :: new ( ) } ) ) ,
653653 // We always use invariant as the variance here. This is because the
654654 // variance field from the ascription refers to the variance to use
@@ -666,7 +666,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
666666 // `<expr>`.
667667 ty:: Invariant ,
668668 ) ,
669- } ,
669+ ) ,
670670 ) ;
671671
672672 self . schedule_drop_for_binding ( var, irrefutable_pat. span , OutsideGuard ) ;
@@ -828,7 +828,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
828828 ) -> Place < ' tcx > {
829829 let local_id = self . var_local_id ( var, for_guard) ;
830830 let source_info = self . source_info ( span) ;
831- self . cfg . push ( block, Statement { source_info, kind : StatementKind :: StorageLive ( local_id) } ) ;
831+ self . cfg . push ( block, Statement :: new ( source_info, StatementKind :: StorageLive ( local_id) ) ) ;
832832 // Although there is almost always scope for given variable in corner cases
833833 // like #92893 we might get variable with no scope.
834834 if let Some ( region_scope) = self . region_scope_tree . var_scope ( var. 0 . local_id )
@@ -2578,16 +2578,16 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
25782578 let base = self . canonical_user_type_annotations . push ( ascription. annotation ) ;
25792579 self . cfg . push (
25802580 block,
2581- Statement {
2581+ Statement :: new (
25822582 source_info,
2583- kind : StatementKind :: AscribeUserType (
2583+ StatementKind :: AscribeUserType (
25842584 Box :: new ( (
25852585 ascription. source ,
25862586 UserTypeProjection { base, projs : Vec :: new ( ) } ,
25872587 ) ) ,
25882588 ascription. variance ,
25892589 ) ,
2590- } ,
2590+ ) ,
25912591 ) ;
25922592 }
25932593 }
0 commit comments