@@ -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 =
@@ -778,9 +780,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
778780 }
779781 } ;
780782
783+ // tidy-ticket-visit_value
781784 // Optimization: we just check the entire range at once.
782785 // NOTE: Keep this in sync with the handling of integer and float
783- // types above, in `visit_primitive `.
786+ // types above, in `try_visit_primitive `.
784787 // In run-time mode, we accept pointers in here. This is actually more
785788 // permissive than a per-element check would be, e.g., we accept
786789 // a &[u8] that contains a pointer even though bytewise checking would
@@ -820,6 +823,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
820823 }
821824 }
822825 }
826+ // tidy-ticket-visit_value
823827 }
824828 // Fast path for arrays and slices of ZSTs. We only need to check a single ZST element
825829 // of an array and not all of them, because there's only a single value of a specific
0 commit comments