We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ffd403 commit 14736caCopy full SHA for 14736ca
src/test/ui/allocator/custom.rs
@@ -23,7 +23,7 @@ unsafe impl alloc::GlobalAlloc for A {
23
24
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
25
HITS.fetch_add(1, Ordering::SeqCst);
26
- System.dealloc(ptr, layout)
+ AllocRef::dealloc(&System, ptr, layout)
27
}
28
29
0 commit comments