We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97da01f commit 98e5129Copy full SHA for 98e5129
src/librustc/mir/mod.rs
@@ -1153,13 +1153,13 @@ impl<'tcx> TerminatorKind<'tcx> {
1153
let param_env = ty::ParamEnv::empty();
1154
let tcx = tcx.global_tcx();
1155
let switch_ty = tcx.lift(&switch_ty).unwrap();
1156
- tcx.layout_of(param_env.and(switch_ty)).unwrap().size.bits() as u8
+ tcx.layout_of(param_env.and(switch_ty)).unwrap().size
1157
});
1158
values.iter()
1159
.map(|&u| {
1160
let mut s = String::new();
1161
print_miri_value(
1162
- Value::Scalar(Scalar::Bits { bits: u, defined: size }),
+ Value::Scalar(Scalar::Bits { bits: u, defined: size.bits() as u8 }),
1163
switch_ty,
1164
&mut s,
1165
).unwrap();
0 commit comments