Skip to content

Commit

Permalink
fixing the custom.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzerr committed Sep 22, 2020
1 parent 3ffd403 commit 14736ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/allocator/custom.rs
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 14736ca

Please sign in to comment.