Skip to content

Commit 7447bf2

Browse files
committed
fmt
1 parent 6297228 commit 7447bf2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/librustc_mir/interpret/terminator.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
5151
self.go_to_block(target_block);
5252
}
5353

54-
Call {
55-
ref func,
56-
ref args,
57-
destination,
58-
ref cleanup,
59-
from_hir_call: _,
60-
fn_span: _,
61-
} => {
54+
Call { ref func, ref args, destination, ref cleanup, from_hir_call: _, fn_span: _ } => {
6255
let old_stack = self.frame_idx();
6356
let old_loc = self.frame().loc;
6457
let func = self.eval_operand(func, None)?;

src/librustc_mir/transform/validate.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
128128
location,
129129
format!(
130130
"encountered `SwitchInt` terminator with type mismatch: {:?} != {:?}",
131-
ty,
132-
switch_ty,
131+
ty, switch_ty,
133132
),
134133
);
135134
}

0 commit comments

Comments
 (0)