]> git.lizzy.rs Git - rust.git/commitdiff
fixing the custom.rs
authorblitzerr <rusty.blitzerr@gmail.com>
Tue, 22 Sep 2020 15:51:20 +0000 (08:51 -0700)
committerblitzerr <rusty.blitzerr@gmail.com>
Tue, 22 Sep 2020 15:51:20 +0000 (08:51 -0700)
src/test/ui/allocator/custom.rs

index 603f59ab06927d384b618b52373e5e1e3b4bb1c7..f54ef1f0bc152c8d36c03470e14e556cf61e8c6f 100644 (file)
@@ -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)
     }
 }