diff options
| author | blitzerr <rusty.blitzerr@gmail.com> | 2020-09-22 21:04:31 -0700 |
|---|---|---|
| committer | blitzerr <rusty.blitzerr@gmail.com> | 2020-09-22 21:04:31 -0700 |
| commit | 2b19b14cecbcdd173e29a801baff71e31cae7331 (patch) | |
| tree | 814aab3ff22be0b0a3859e795e32c4be45a66ae0 /library/alloc/src/alloc.rs | |
| parent | 985dff9e7ed1fd7896b071eaf637fd531a690e91 (diff) | |
| download | rust-2b19b14cecbcdd173e29a801baff71e31cae7331.tar.gz rust-2b19b14cecbcdd173e29a801baff71e31cae7331.zip | |
a few more &mut self -> self changes
Diffstat (limited to 'library/alloc/src/alloc.rs')
| -rw-r--r-- | library/alloc/src/alloc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs index 462bcd15fa9..8b8cdbf2525 100644 --- a/library/alloc/src/alloc.rs +++ b/library/alloc/src/alloc.rs @@ -160,7 +160,7 @@ impl Global { // SAFETY: Same as `AllocRef::grow` #[inline] unsafe fn grow_impl( - &mut self, + &self, ptr: NonNull<u8>, old_layout: Layout, new_layout: Layout, @@ -228,7 +228,7 @@ unsafe impl AllocRef for Global { #[inline] unsafe fn grow( - &mut self, + &self, ptr: NonNull<u8>, old_layout: Layout, new_layout: Layout, @@ -239,7 +239,7 @@ unsafe impl AllocRef for Global { #[inline] unsafe fn grow_zeroed( - &mut self, + &self, ptr: NonNull<u8>, old_layout: Layout, new_layout: Layout, @@ -250,7 +250,7 @@ unsafe impl AllocRef for Global { #[inline] unsafe fn shrink( - &mut self, + &self, ptr: NonNull<u8>, old_layout: Layout, new_layout: Layout, |
