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 c666894 commit 54b6e74Copy full SHA for 54b6e74
compiler/rustc_mir_transform/src/check_enums.rs
@@ -263,7 +263,7 @@ fn insert_discr_cast_to_u128<'tcx>(
263
} else if discriminant_size.bytes() < op_size.bytes() {
264
// The discriminant is less wide than the operand, cast the operand into
265
// [MaybeUninit; N] and then index into it.
266
- let mu = Ty::new_maybe_uninit(tcx, discriminant_ty);
+ let mu = Ty::new_maybe_uninit(tcx, tcx.types.u8);
267
let array_len = op_size.bytes();
268
let mu_array_ty = Ty::new_array(tcx, mu, array_len);
269
let mu_array =
0 commit comments