@@ -651,7 +651,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
651
651
& self . ecx
652
652
}
653
653
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 > {
655
658
self . with_elem ( PathElem :: EnumTag , move |this| {
656
659
Ok ( try_validation ! (
657
660
this. ecx. read_discriminant( op) ,
@@ -662,7 +665,8 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
662
665
{ "uninitialized bytes" } expected { "a valid enum tag" } ,
663
666
err_unsup!( ReadPointerAsBytes ) =>
664
667
{ "a pointer" } expected { "a valid enum tag" } ,
665
- ) . 1 )
668
+ )
669
+ . 1 )
666
670
} )
667
671
}
668
672
@@ -829,8 +833,9 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
829
833
830
834
throw_validation_failure ! ( self . path, { "uninitialized bytes" } )
831
835
}
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
+ }
834
839
835
840
// Propagate upwards (that will also check for unexpected errors).
836
841
_ => return Err ( err) ,
0 commit comments