@@ -511,6 +511,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
511511 Ok ( true )
512512 }
513513 ty:: Float ( _) | ty:: Int ( _) | ty:: Uint ( _) => {
514+ // tidy-ticket-try_visit_primitive
514515 // NOTE: Keep this in sync with the array optimization for int/float
515516 // types below!
516517 self . read_scalar (
@@ -522,6 +523,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
522523 } ,
523524 ) ?;
524525 Ok ( true )
526+ // tidy-ticket-try_visit_primitive
525527 }
526528 ty:: RawPtr ( ..) => {
527529 let place =
@@ -784,6 +786,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
784786 }
785787 } ;
786788
789+ // tidy-ticket-visit_value
787790 // Optimization: we just check the entire range at once.
788791 // NOTE: Keep this in sync with the handling of integer and float
789792 // types above, in `visit_primitive`.
@@ -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