From 14736ca20b2e5f60981743c6ee2dfa62db818767 Mon Sep 17 00:00:00 2001 From: blitzerr Date: Tue, 22 Sep 2020 08:51:20 -0700 Subject: [PATCH] fixing the custom.rs --- src/test/ui/allocator/custom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fn alloc(&self, layout: Layout) -> *mut u8 { unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { HITS.fetch_add(1, Ordering::SeqCst); - System.dealloc(ptr, layout) + AllocRef::dealloc(&System, ptr, layout) } } -- 2.44.0