@@ -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 =
@@ -779,9 +781,10 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
779
781
}
780
782
} ;
781
783
784
+ // tidy-ticket-visit_value
782
785
// Optimization: we just check the entire range at once.
783
786
// 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 `.
785
788
// In run-time mode, we accept pointers in here. This is actually more
786
789
// permissive than a per-element check would be, e.g., we accept
787
790
// 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>
821
824
}
822
825
}
823
826
}
827
+ // tidy-ticket-visit_value
824
828
}
825
829
// Fast path for arrays and slices of ZSTs. We only need to check a single ZST element
826
830
// of an array and not all of them, because there's only a single value of a specific
0 commit comments