@@ -505,6 +505,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
505
505
Ok ( true )
506
506
}
507
507
ty:: Float ( _) | ty:: Int ( _) | ty:: Uint ( _) => {
508
+ // tidy-ticket-try_visit_primitive
508
509
// NOTE: Keep this in sync with the array optimization for int/float
509
510
// types below!
510
511
self . read_scalar (
@@ -516,6 +517,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
516
517
} ,
517
518
) ?;
518
519
Ok ( true )
520
+ // tidy-ticket-try_visit_primitive
519
521
}
520
522
ty:: RawPtr ( ..) => {
521
523
let place =
@@ -778,9 +780,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
778
780
}
779
781
} ;
780
782
783
+ // tidy-ticket-visit_value
781
784
// Optimization: we just check the entire range at once.
782
785
// 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 `.
784
787
// In run-time mode, we accept pointers in here. This is actually more
785
788
// permissive than a per-element check would be, e.g., we accept
786
789
// 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>
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