File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -1173,10 +1173,6 @@ macro_rules! iterator {
1173
1173
// manual unrolling is needed when there are conditional exits from the loop
1174
1174
let mut accum = init;
1175
1175
unsafe {
1176
- if mem:: size_of:: <T >( ) != 0 {
1177
- assume( !self . ptr. is_null( ) ) ;
1178
- assume( self . ptr <= self . end) ;
1179
- }
1180
1176
while ptrdistance( self . ptr, self . end) >= 4 {
1181
1177
accum = f( accum, $mkref!( self . ptr. post_inc( ) ) ) ?;
1182
1178
accum = f( accum, $mkref!( self . ptr. post_inc( ) ) ) ?;
@@ -1229,10 +1225,6 @@ macro_rules! iterator {
1229
1225
// manual unrolling is needed when there are conditional exits from the loop
1230
1226
let mut accum = init;
1231
1227
unsafe {
1232
- if mem:: size_of:: <T >( ) != 0 {
1233
- assume( !self . ptr. is_null( ) ) ;
1234
- assume( self . ptr <= self . end) ;
1235
- }
1236
1228
while ptrdistance( self . ptr, self . end) >= 4 {
1237
1229
accum = f( accum, $mkref!( self . end. pre_dec( ) ) ) ?;
1238
1230
accum = f( accum, $mkref!( self . end. pre_dec( ) ) ) ?;
You can’t perform that action at this time.
0 commit comments