Better variable naming

This commit is contained in:
Oliver Schneider 2018-05-24 10:11:24 +02:00
parent 97da01f8ad
commit 98e5129375

View file

@ -1153,13 +1153,13 @@ impl<'tcx> TerminatorKind<'tcx> {
let param_env = ty::ParamEnv::empty(); let param_env = ty::ParamEnv::empty();
let tcx = tcx.global_tcx(); let tcx = tcx.global_tcx();
let switch_ty = tcx.lift(&switch_ty).unwrap(); let switch_ty = tcx.lift(&switch_ty).unwrap();
tcx.layout_of(param_env.and(switch_ty)).unwrap().size.bits() as u8 tcx.layout_of(param_env.and(switch_ty)).unwrap().size
}); });
values.iter() values.iter()
.map(|&u| { .map(|&u| {
let mut s = String::new(); let mut s = String::new();
print_miri_value( print_miri_value(
Value::Scalar(Scalar::Bits { bits: u, defined: size }), Value::Scalar(Scalar::Bits { bits: u, defined: size.bits() as u8 }),
switch_ty, switch_ty,
&mut s, &mut s,
).unwrap(); ).unwrap();