diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-07 15:33:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-07 15:33:45 +0200 |
| commit | a23b51ebea63e5369bb2b2ad66173dc9e9795a97 (patch) | |
| tree | b471ac848384a134a5f73ea4bc04cb7a6ba4f36f /src | |
| parent | de1941ab2a9d773cd35b5bf981abaffbe2f7c789 (diff) | |
| parent | 758aa23e443bd3c84b6d0d5bb86051c329129681 (diff) | |
| download | rust-a23b51ebea63e5369bb2b2ad66173dc9e9795a97.tar.gz rust-a23b51ebea63e5369bb2b2ad66173dc9e9795a97.zip | |
Rollup merge of #73063 - pickfire:liballoc-elide, r=kennytm
Elide type on liballoc vec
Diffstat (limited to 'src')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index ffae3b5c789..96923ea47f3 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -984,7 +984,7 @@ impl<T> Vec<T> { // bounds check above succeeds there must be a last element (which // can be self[index] itself). let last = ptr::read(self.as_ptr().add(len - 1)); - let hole: *mut T = self.as_mut_ptr().add(index); + let hole = self.as_mut_ptr().add(index); self.set_len(len - 1); ptr::replace(hole, last) } |
