about summary refs log tree commit diff
diff options
context:
space:
mode:
authorblitzerr <rusty.blitzerr@gmail.com>2020-09-22 08:51:20 -0700
committerblitzerr <rusty.blitzerr@gmail.com>2020-09-22 08:51:20 -0700
commit14736ca20b2e5f60981743c6ee2dfa62db818767 (patch)
tree48e7d5df3f4f88bbeb7d61f662b645f0b1088e92
parent3ffd403c6b97f181c189a8eb5fbd30e3e7a95b43 (diff)
downloadrust-14736ca20b2e5f60981743c6ee2dfa62db818767.tar.gz
rust-14736ca20b2e5f60981743c6ee2dfa62db818767.zip
fixing the custom.rs
-rw-r--r--src/test/ui/allocator/custom.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/allocator/custom.rs b/src/test/ui/allocator/custom.rs
index 603f59ab069..f54ef1f0bc1 100644
--- a/src/test/ui/allocator/custom.rs
+++ b/src/test/ui/allocator/custom.rs
@@ -23,7 +23,7 @@ unsafe impl alloc::GlobalAlloc for A {
 
     unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
         HITS.fetch_add(1, Ordering::SeqCst);
-        System.dealloc(ptr, layout)
+        AllocRef::dealloc(&System, ptr, layout)
     }
 }