diff options
| author | Andreas Jonson <andjo403@users.noreply.github.com> | 2020-11-16 22:47:35 +0100 |
|---|---|---|
| committer | Andreas Jonson <andjo403@users.noreply.github.com> | 2020-11-16 22:47:35 +0100 |
| commit | 88d1f31a904efdb28d504bc6dff5b6671a2f052b (patch) | |
| tree | 19d4074b52bbb882449e2aebc0e455728005f2fa /library/alloc/src | |
| parent | 5fab31e5ddf5f2613bf57a0a7286dc6f5887e1cb (diff) | |
| download | rust-88d1f31a904efdb28d504bc6dff5b6671a2f052b.tar.gz rust-88d1f31a904efdb28d504bc6dff5b6671a2f052b.zip | |
mark raw_vec::ptr with inline
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/raw_vec.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<T, A: AllocRef> RawVec<T, A> { /// 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() } |
