File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1958,11 +1958,11 @@ unsafe fn small_slice_eq(x: &[u8], y: &[u8]) -> bool {
1958
1958
unsafe {
1959
1959
let ( mut px, mut py) = ( x. as_ptr ( ) , y. as_ptr ( ) ) ;
1960
1960
let ( pxend, pyend) = ( px. add ( x. len ( ) - 4 ) , py. add ( y. len ( ) - 4 ) ) ;
1961
- #[ loop_invariant( crate :: ub_checks:: same_allocation( x . as_ptr ( ) , px)
1962
- && crate :: ub_checks:: same_allocation( y . as_ptr ( ) , py)
1963
- && px. addr( ) >= x . as_ptr ( ) . addr( )
1964
- && py. addr( ) >= y . as_ptr ( ) . addr( )
1965
- && px. addr( ) - x . as_ptr ( ) . addr( ) == py. addr( ) - y . as_ptr ( ) . addr( ) ) ]
1961
+ #[ loop_invariant( crate :: ub_checks:: same_allocation( on_entry ( px ) , px)
1962
+ && crate :: ub_checks:: same_allocation( on_entry ( py ) , py)
1963
+ && px. addr( ) >= on_entry ( px ) . addr( )
1964
+ && py. addr( ) >= on_entry ( py ) . addr( )
1965
+ && px. addr( ) - on_entry ( px ) . addr( ) == py. addr( ) - on_entry ( py ) . addr( ) ) ]
1966
1966
while px < pxend {
1967
1967
let vx = ( px as * const u32 ) . read_unaligned ( ) ;
1968
1968
let vy = ( py as * const u32 ) . read_unaligned ( ) ;
You can’t perform that action at this time.
0 commit comments