This commit is contained in:
Ralf Jung 2020-06-21 19:35:57 +02:00
parent 629722893c
commit 7447bf2201
2 changed files with 2 additions and 10 deletions

View File

@ -51,14 +51,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
self.go_to_block(target_block);
}
Call {
ref func,
ref args,
destination,
ref cleanup,
from_hir_call: _,
fn_span: _,
} => {
Call { ref func, ref args, destination, ref cleanup, from_hir_call: _, fn_span: _ } => {
let old_stack = self.frame_idx();
let old_loc = self.frame().loc;
let func = self.eval_operand(func, None)?;

View File

@ -128,8 +128,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
location,
format!(
"encountered `SwitchInt` terminator with type mismatch: {:?} != {:?}",
ty,
switch_ty,
ty, switch_ty,
),
);
}