From 88d1f31a904efdb28d504bc6dff5b6671a2f052b Mon Sep 17 00:00:00 2001 From: Andreas Jonson Date: Mon, 16 Nov 2020 22:47:35 +0100 Subject: [PATCH] mark raw_vec::ptr with inline --- library/alloc/src/raw_vec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/alloc/src/raw_vec.rs b/library/alloc/src/raw_vec.rs index a4240308bb3..f911658cea6 100644 --- a/library/alloc/src/raw_vec.rs +++ b/library/alloc/src/raw_vec.rs @@ -220,6 +220,7 @@ impl RawVec { /// Gets a raw pointer to the start of the allocation. Note that this is /// `Unique::dangling()` if `capacity == 0` or `T` is zero-sized. In the former case, you must /// be careful. + #[inline] pub fn ptr(&self) -> *mut T { self.ptr.as_ptr() }