@@ -651,7 +651,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
651651 & self . ecx
652652 }
653653
654- fn read_discriminant ( & mut self , op : OpTy < ' tcx , M :: PointerTag > ) -> InterpResult < ' tcx , VariantIdx > {
654+ fn read_discriminant (
655+ & mut self ,
656+ op : OpTy < ' tcx , M :: PointerTag > ,
657+ ) -> InterpResult < ' tcx , VariantIdx > {
655658 self . with_elem ( PathElem :: EnumTag , move |this| {
656659 Ok ( try_validation ! (
657660 this. ecx. read_discriminant( op) ,
@@ -662,7 +665,8 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
662665 { "uninitialized bytes" } expected { "a valid enum tag" } ,
663666 err_unsup!( ReadPointerAsBytes ) =>
664667 { "a pointer" } expected { "a valid enum tag" } ,
665- ) . 1 )
668+ )
669+ . 1 )
666670 } )
667671 }
668672
@@ -829,8 +833,9 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
829833
830834 throw_validation_failure ! ( self . path, { "uninitialized bytes" } )
831835 }
832- err_unsup ! ( ReadPointerAsBytes ) =>
833- throw_validation_failure ! ( self . path, { "a pointer" } expected { "plain (non-pointer) bytes" } ) ,
836+ err_unsup ! ( ReadPointerAsBytes ) => {
837+ throw_validation_failure ! ( self . path, { "a pointer" } expected { "plain (non-pointer) bytes" } )
838+ }
834839
835840 // Propagate upwards (that will also check for unexpected errors).
836841 _ => return Err ( err) ,
0 commit comments