Skip to content

Commit d94923e

Browse files
committed
Format and more tracing
1 parent f8f8033 commit d94923e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/interpret/operand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
642642
}
643643
_ => bug!("multiple variants for non-adt non-generator"),
644644
};
645+
trace!("discriminant type: {:?}", discr_ty);
645646

646647
// Figure out which discriminant and variant this corresponds to.
647648
Ok(match *tag_kind {
@@ -651,8 +652,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
651652
.map_err(|_| err_ub!(InvalidDiscriminant(tag_val.erase_tag())))?;
652653
// Cast bits from tag layout to discriminant layout.
653654
let discr_layout = self.layout_of(discr_ty)?;
654-
let discr_val_cast =
655-
self.cast_from_scalar(tag_bits, tag_layout, discr_ty);
655+
let discr_val_cast = self.cast_from_scalar(tag_bits, tag_layout, discr_ty);
656656
let discr_bits = discr_val_cast.assert_bits(discr_layout.size);
657657
// Convert discriminant to variant index, and catch invalid discriminants.
658658
let index = match rval.layout.ty.kind {

0 commit comments

Comments
 (0)