From f8fd6710399a1a557155cb5be4922fe6a6f694c0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sat, 15 Jul 2017 00:17:10 +0200 Subject: [PATCH] Update for https://github.com/rust-lang/rust/pull/42959 --- src/vec-final.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vec-final.md b/src/vec-final.md index fd6c592..a534bcf 100644 --- a/src/vec-final.md +++ b/src/vec-final.md @@ -49,7 +49,7 @@ impl RawVec { Err(err) => Heap.oom(err), }; - self.ptr = Unique::new(ptr as *mut _); + self.ptr = Unique::new_unchecked(ptr as *mut _); self.cap = new_cap; } }