Skip to content

Commit 2b7f87b

Browse files
committed
Liballoc tweak use *const T instead of *const i8
*const T is also used in the same parts and also used for arith_offset.
1 parent 13290e8 commit 2b7f87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ impl<T> Iterator for IntoIter<T> {
27052705
// purposefully don't use 'ptr.offset' because for
27062706
// vectors with 0-size elements this would return the
27072707
// same pointer.
2708-
self.ptr = arith_offset(self.ptr as *const i8, 1) as *mut T;
2708+
self.ptr = arith_offset(self.ptr as *const T, 1) as *mut T;
27092709

27102710
// Make up a value of this ZST.
27112711
Some(mem::zeroed())

0 commit comments

Comments
 (0)