Skip to content

Commit 98e5129

Browse files
committed
Better variable naming
1 parent 97da01f commit 98e5129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,13 +1153,13 @@ impl<'tcx> TerminatorKind<'tcx> {
11531153
let param_env = ty::ParamEnv::empty();
11541154
let tcx = tcx.global_tcx();
11551155
let switch_ty = tcx.lift(&switch_ty).unwrap();
1156-
tcx.layout_of(param_env.and(switch_ty)).unwrap().size.bits() as u8
1156+
tcx.layout_of(param_env.and(switch_ty)).unwrap().size
11571157
});
11581158
values.iter()
11591159
.map(|&u| {
11601160
let mut s = String::new();
11611161
print_miri_value(
1162-
Value::Scalar(Scalar::Bits { bits: u, defined: size }),
1162+
Value::Scalar(Scalar::Bits { bits: u, defined: size.bits() as u8 }),
11631163
switch_ty,
11641164
&mut s,
11651165
).unwrap();

0 commit comments

Comments
 (0)