@@ -431,13 +431,13 @@ impl DropTree {
431431 cfg. terminate ( block, drop_node. data . source_info , terminator) ;
432432 }
433433 DropKind :: ForLint => {
434- let stmt = Statement {
435- source_info : drop_node. data . source_info ,
436- kind : StatementKind :: BackwardIncompatibleDropHint {
434+ let stmt = Statement :: new (
435+ drop_node. data . source_info ,
436+ StatementKind :: BackwardIncompatibleDropHint {
437437 place : Box :: new ( drop_node. data . local . into ( ) ) ,
438438 reason : BackwardIncompatibleDropReason :: Edition2024 ,
439439 } ,
440- } ;
440+ ) ;
441441 cfg. push ( block, stmt) ;
442442 let target = blocks[ drop_node. next ] . unwrap ( ) ;
443443 if target != block {
@@ -454,10 +454,10 @@ impl DropTree {
454454 // Root nodes don't correspond to a drop.
455455 DropKind :: Storage if drop_idx == ROOT_NODE => { }
456456 DropKind :: Storage => {
457- let stmt = Statement {
458- source_info : drop_node. data . source_info ,
459- kind : StatementKind :: StorageDead ( drop_node. data . local ) ,
460- } ;
457+ let stmt = Statement :: new (
458+ drop_node. data . source_info ,
459+ StatementKind :: StorageDead ( drop_node. data . local ) ,
460+ ) ;
461461 cfg. push ( block, stmt) ;
462462 let target = blocks[ drop_node. next ] . unwrap ( ) ;
463463 if target != block {
@@ -1124,21 +1124,21 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
11241124 DropKind :: ForLint => {
11251125 self . cfg . push (
11261126 block,
1127- Statement {
1127+ Statement :: new (
11281128 source_info,
1129- kind : StatementKind :: BackwardIncompatibleDropHint {
1129+ StatementKind :: BackwardIncompatibleDropHint {
11301130 place : Box :: new ( local. into ( ) ) ,
11311131 reason : BackwardIncompatibleDropReason :: Edition2024 ,
11321132 } ,
1133- } ,
1133+ ) ,
11341134 ) ;
11351135 }
11361136 DropKind :: Storage => {
11371137 // Only temps and vars need their storage dead.
11381138 assert ! ( local. index( ) > self . arg_count) ;
11391139 self . cfg . push (
11401140 block,
1141- Statement { source_info, kind : StatementKind :: StorageDead ( local) } ,
1141+ Statement :: new ( source_info, StatementKind :: StorageDead ( local) ) ,
11421142 ) ;
11431143 }
11441144 }
@@ -1880,13 +1880,13 @@ where
18801880
18811881 cfg. push (
18821882 block,
1883- Statement {
1883+ Statement :: new (
18841884 source_info,
1885- kind : StatementKind :: BackwardIncompatibleDropHint {
1885+ StatementKind :: BackwardIncompatibleDropHint {
18861886 place : Box :: new ( local. into ( ) ) ,
18871887 reason : BackwardIncompatibleDropReason :: Edition2024 ,
18881888 } ,
1889- } ,
1889+ ) ,
18901890 ) ;
18911891 }
18921892 DropKind :: Storage => {
@@ -1910,7 +1910,7 @@ where
19101910 }
19111911 // Only temps and vars need their storage dead.
19121912 assert ! ( local. index( ) > arg_count) ;
1913- cfg. push ( block, Statement { source_info, kind : StatementKind :: StorageDead ( local) } ) ;
1913+ cfg. push ( block, Statement :: new ( source_info, StatementKind :: StorageDead ( local) ) ) ;
19141914 }
19151915 }
19161916 }
0 commit comments