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 /src/test/ui/allocator | |
| parent | 985dff9e7ed1fd7896b071eaf637fd531a690e91 (diff) | |
| download | rust-2b19b14cecbcdd173e29a801baff71e31cae7331.tar.gz rust-2b19b14cecbcdd173e29a801baff71e31cae7331.zip | |
a few more &mut self -> self changes
Diffstat (limited to 'src/test/ui/allocator')
| -rw-r--r-- | src/test/ui/allocator/custom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/allocator/custom.rs b/src/test/ui/allocator/custom.rs index 73750bf139a..dfb5d3e9e38 100644 --- a/src/test/ui/allocator/custom.rs +++ b/src/test/ui/allocator/custom.rs @@ -19,7 +19,7 @@ struct A; unsafe impl alloc::GlobalAlloc for A { unsafe fn alloc(&self, layout: Layout) -> *mut u8 { HITS.fetch_add(1, Ordering::SeqCst); - AllocRef::alloc(&System, layout).unwrap().as_mut_ptr() + alloc::GlobalAlloc::alloc(&System, layout) } unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { |
