about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)
     }
 }