mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
fixing the custom.rs
This commit is contained in:
parent
3ffd403c6b
commit
14736ca20b
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user