@@ -646,9 +646,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
646
646
let base = self . canonical_user_type_annotations . push ( annotation. clone ( ) ) ;
647
647
self . cfg . push (
648
648
block,
649
- Statement {
650
- source_info : ty_source_info,
651
- kind : StatementKind :: AscribeUserType (
649
+ Statement :: new (
650
+ ty_source_info,
651
+ StatementKind :: AscribeUserType (
652
652
Box :: new ( ( place, UserTypeProjection { base, projs : Vec :: new ( ) } ) ) ,
653
653
// We always use invariant as the variance here. This is because the
654
654
// variance field from the ascription refers to the variance to use
@@ -666,7 +666,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
666
666
// `<expr>`.
667
667
ty:: Invariant ,
668
668
) ,
669
- } ,
669
+ ) ,
670
670
) ;
671
671
672
672
self . schedule_drop_for_binding ( var, irrefutable_pat. span , OutsideGuard ) ;
@@ -828,7 +828,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
828
828
) -> Place < ' tcx > {
829
829
let local_id = self . var_local_id ( var, for_guard) ;
830
830
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) ) ) ;
832
832
// Although there is almost always scope for given variable in corner cases
833
833
// like #92893 we might get variable with no scope.
834
834
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> {
2578
2578
let base = self . canonical_user_type_annotations . push ( ascription. annotation ) ;
2579
2579
self . cfg . push (
2580
2580
block,
2581
- Statement {
2581
+ Statement :: new (
2582
2582
source_info,
2583
- kind : StatementKind :: AscribeUserType (
2583
+ StatementKind :: AscribeUserType (
2584
2584
Box :: new ( (
2585
2585
ascription. source ,
2586
2586
UserTypeProjection { base, projs : Vec :: new ( ) } ,
2587
2587
) ) ,
2588
2588
ascription. variance ,
2589
2589
) ,
2590
- } ,
2590
+ ) ,
2591
2591
) ;
2592
2592
}
2593
2593
}
0 commit comments