Skip to content

Commit 831ebfc

Browse files
committed
format err
1 parent 2d2c5e1 commit 831ebfc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler/rustc_middle/src/mir/patch.rs

+3-5
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)