@@ -505,6 +505,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
505505 Ok ( true )
506506 }
507507 ty:: Float ( _) | ty:: Int ( _) | ty:: Uint ( _) => {
508+ // tidy-ticket-try_visit_primitive
508509 // NOTE: Keep this in sync with the array optimization for int/float
509510 // types below!
510511 self . read_scalar (
@@ -516,6 +517,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
516517 } ,
517518 ) ?;
518519 Ok ( true )
520+ // tidy-ticket-try_visit_primitive
519521 }
520522 ty:: RawPtr ( ..) => {
521523 let place =
@@ -779,9 +781,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
779781 }
780782 } ;
781783
784+ // tidy-ticket-visit_value
782785 // Optimization: we just check the entire range at once.
783786 // NOTE: Keep this in sync with the handling of integer and float
784- // types above, in `visit_primitive `.
787+ // types above, in `try_visit_primitive `.
785788 // In run-time mode, we accept pointers in here. This is actually more
786789 // permissive than a per-element check would be, e.g., we accept
787790 // a &[u8] that contains a pointer even though bytewise checking would
@@ -821,6 +824,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
821824 }
822825 }
823826 }
827+ // tidy-ticket-visit_value
824828 }
825829 // Fast path for arrays and slices of ZSTs. We only need to check a single ZST element
826830 // of an array and not all of them, because there's only a single value of a specific
0 commit comments