File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ impl<'tcx> MirPatch<'tcx> {
142142 let mut delta = 0 ;
143143 let mut last_bb = START_BLOCK ;
144144 let mut terminator_targets = Vec :: new ( ) ;
145- let mut statements: Vec < Statement < ' _ > > = Vec :: new ( ) ;
145+ let mut statements: Vec < Statement < ' _ > > = Vec :: new ( ) ;
146146 for ( mut loc, stmt) in new_statements {
147147 if loc. block != last_bb {
148148 delta = 0 ;
@@ -159,7 +159,7 @@ impl<'tcx> MirPatch<'tcx> {
159159 let successors = term. successors ( ) . clone ( ) ;
160160
161161 for i in successors {
162- statements. push ( Statement { source_info, kind : stmt. clone ( ) } ) ;
162+ statements. push ( Statement { source_info, kind : stmt. clone ( ) } ) ;
163163 terminator_targets. push ( i. clone ( ) ) ;
164164 }
165165 delta += 1 ;
@@ -174,9 +174,7 @@ impl<'tcx> MirPatch<'tcx> {
174174
175175 for target in terminator_targets. iter ( ) . rev ( ) {
176176 let stmt = statements. pop ( ) . unwrap ( ) ;
177- body[ * target]
178- . statements
179- . insert ( 0 , stmt) ;
177+ body[ * target] . statements . insert ( 0 , stmt) ;
180178 }
181179 }
182180
You can’t perform that action at this time.
0 commit comments