We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13290e8 commit 2b7f87bCopy full SHA for 2b7f87b
library/alloc/src/vec.rs
@@ -2705,7 +2705,7 @@ impl<T> Iterator for IntoIter<T> {
2705
// purposefully don't use 'ptr.offset' because for
2706
// vectors with 0-size elements this would return the
2707
// same pointer.
2708
- self.ptr = arith_offset(self.ptr as *const i8, 1) as *mut T;
+ self.ptr = arith_offset(self.ptr as *const T, 1) as *mut T;
2709
2710
// Make up a value of this ZST.
2711
Some(mem::zeroed())
0 commit comments