Skip to content

Commit a23b51e

Browse files
authored
Rollup merge of #73063 - pickfire:liballoc-elide, r=kennytm
Elide type on liballoc vec
2 parents de1941a + 758aa23 commit a23b51e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ impl<T> Vec<T> {
984984
// bounds check above succeeds there must be a last element (which
985985
// can be self[index] itself).
986986
let last = ptr::read(self.as_ptr().add(len - 1));
987-
let hole: *mut T = self.as_mut_ptr().add(index);
987+
let hole = self.as_mut_ptr().add(index);
988988
self.set_len(len - 1);
989989
ptr::replace(hole, last)
990990
}

0 commit comments

Comments
 (0)