@@ -511,6 +511,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
511
511
Ok ( true )
512
512
}
513
513
ty:: Float ( _) | ty:: Int ( _) | ty:: Uint ( _) => {
514
+ // tidy-ticket-try_visit_primitive
514
515
// NOTE: Keep this in sync with the array optimization for int/float
515
516
// types below!
516
517
self . read_scalar (
@@ -522,6 +523,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
522
523
} ,
523
524
) ?;
524
525
Ok ( true )
526
+ // tidy-ticket-try_visit_primitive
525
527
}
526
528
ty:: RawPtr ( ..) => {
527
529
let place =
@@ -784,6 +786,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
784
786
}
785
787
} ;
786
788
789
+ // tidy-ticket-visit_value
787
790
// Optimization: we just check the entire range at once.
788
791
// NOTE: Keep this in sync with the handling of integer and float
789
792
// types above, in `visit_primitive`.
@@ -820,6 +823,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
820
823
}
821
824
}
822
825
}
826
+ // tidy-ticket-visit_value
823
827
}
824
828
// Fast path for arrays and slices of ZSTs. We only need to check a single ZST element
825
829
// of an array and not all of them, because there's only a single value of a specific
0 commit comments