Skip to content

Commit 14736ca

Browse files
committed
fixing the custom.rs
1 parent 3ffd403 commit 14736ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/allocator/custom.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ unsafe impl alloc::GlobalAlloc for A {
2323

2424
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
2525
HITS.fetch_add(1, Ordering::SeqCst);
26-
System.dealloc(ptr, layout)
26+
AllocRef::dealloc(&System, ptr, layout)
2727
}
2828
}
2929

0 commit comments

Comments
 (0)