Skip to content

Commit 88d1f31

Browse files
committed
mark raw_vec::ptr with inline
1 parent 5fab31e commit 88d1f31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/raw_vec.rs

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ impl<T, A: AllocRef> RawVec<T, A> {
220220
/// Gets a raw pointer to the start of the allocation. Note that this is
221221
/// `Unique::dangling()` if `capacity == 0` or `T` is zero-sized. In the former case, you must
222222
/// be careful.
223+
#[inline]
223224
pub fn ptr(&self) -> *mut T {
224225
self.ptr.as_ptr()
225226
}

0 commit comments

Comments
 (0)