File tree 1 file changed +3
-5
lines changed
compiler/rustc_middle/src/mir
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> {
142
142
let mut delta = 0 ;
143
143
let mut last_bb = START_BLOCK ;
144
144
let mut terminator_targets = Vec :: new ( ) ;
145
- let mut statements: Vec < Statement < ' _ > > = Vec :: new ( ) ;
145
+ let mut statements: Vec < Statement < ' _ > > = Vec :: new ( ) ;
146
146
for ( mut loc, stmt) in new_statements {
147
147
if loc. block != last_bb {
148
148
delta = 0 ;
@@ -159,7 +159,7 @@ impl<'tcx> MirPatch<'tcx> {
159
159
let successors = term. successors ( ) . clone ( ) ;
160
160
161
161
for i in successors {
162
- statements. push ( Statement { source_info, kind : stmt. clone ( ) } ) ;
162
+ statements. push ( Statement { source_info, kind : stmt. clone ( ) } ) ;
163
163
terminator_targets. push ( i. clone ( ) ) ;
164
164
}
165
165
delta += 1 ;
@@ -174,9 +174,7 @@ impl<'tcx> MirPatch<'tcx> {
174
174
175
175
for target in terminator_targets. iter ( ) . rev ( ) {
176
176
let stmt = statements. pop ( ) . unwrap ( ) ;
177
- body[ * target]
178
- . statements
179
- . insert ( 0 , stmt) ;
177
+ body[ * target] . statements . insert ( 0 , stmt) ;
180
178
}
181
179
}
182
180
You can’t perform that action at this time.
0 commit comments