@@ -411,13 +411,13 @@ impl DropTree {
411411 cfg. terminate ( block, drop_node. data . source_info , terminator) ;
412412 }
413413 DropKind :: ForLint => {
414- let stmt = Statement {
415- source_info : drop_node. data . source_info ,
416- kind : StatementKind :: BackwardIncompatibleDropHint {
414+ let stmt = Statement :: new (
415+ drop_node. data . source_info ,
416+ StatementKind :: BackwardIncompatibleDropHint {
417417 place : Box :: new ( drop_node. data . local . into ( ) ) ,
418418 reason : BackwardIncompatibleDropReason :: Edition2024 ,
419419 } ,
420- } ;
420+ ) ;
421421 cfg. push ( block, stmt) ;
422422 let target = blocks[ drop_node. next ] . unwrap ( ) ;
423423 if target != block {
@@ -434,10 +434,10 @@ impl DropTree {
434434 // Root nodes don't correspond to a drop.
435435 DropKind :: Storage if drop_idx == ROOT_NODE => { }
436436 DropKind :: Storage => {
437- let stmt = Statement {
438- source_info : drop_node. data . source_info ,
439- kind : StatementKind :: StorageDead ( drop_node. data . local ) ,
440- } ;
437+ let stmt = Statement :: new (
438+ drop_node. data . source_info ,
439+ StatementKind :: StorageDead ( drop_node. data . local ) ,
440+ ) ;
441441 cfg. push ( block, stmt) ;
442442 let target = blocks[ drop_node. next ] . unwrap ( ) ;
443443 if target != block {
@@ -866,21 +866,21 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
866866 DropKind :: ForLint => {
867867 self . cfg . push (
868868 block,
869- Statement {
869+ Statement :: new (
870870 source_info,
871- kind : StatementKind :: BackwardIncompatibleDropHint {
871+ StatementKind :: BackwardIncompatibleDropHint {
872872 place : Box :: new ( local. into ( ) ) ,
873873 reason : BackwardIncompatibleDropReason :: Edition2024 ,
874874 } ,
875- } ,
875+ ) ,
876876 ) ;
877877 }
878878 DropKind :: Storage => {
879879 // Only temps and vars need their storage dead.
880880 assert ! ( local. index( ) > self . arg_count) ;
881881 self . cfg . push (
882882 block,
883- Statement { source_info, kind : StatementKind :: StorageDead ( local) } ,
883+ Statement :: new ( source_info, StatementKind :: StorageDead ( local) ) ,
884884 ) ;
885885 }
886886 }
@@ -1622,13 +1622,13 @@ where
16221622
16231623 cfg. push (
16241624 block,
1625- Statement {
1625+ Statement :: new (
16261626 source_info,
1627- kind : StatementKind :: BackwardIncompatibleDropHint {
1627+ StatementKind :: BackwardIncompatibleDropHint {
16281628 place : Box :: new ( local. into ( ) ) ,
16291629 reason : BackwardIncompatibleDropReason :: Edition2024 ,
16301630 } ,
1631- } ,
1631+ ) ,
16321632 ) ;
16331633 }
16341634 DropKind :: Storage => {
@@ -1652,7 +1652,7 @@ where
16521652 }
16531653 // Only temps and vars need their storage dead.
16541654 assert ! ( local. index( ) > arg_count) ;
1655- cfg. push ( block, Statement { source_info, kind : StatementKind :: StorageDead ( local) } ) ;
1655+ cfg. push ( block, Statement :: new ( source_info, StatementKind :: StorageDead ( local) ) ) ;
16561656 }
16571657 }
16581658 }
0 commit comments