about summary refs log tree commit diff
path: root/src/librustrt/local_heap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustrt/local_heap.rs')
-rw-r--r--src/librustrt/local_heap.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustrt/local_heap.rs b/src/librustrt/local_heap.rs
index 52fe5c35a26..d09033e771c 100644
--- a/src/librustrt/local_heap.rs
+++ b/src/librustrt/local_heap.rs
@@ -317,14 +317,15 @@ pub unsafe fn local_free(ptr: *u8) {
 mod bench {
     extern crate test;
     use self::test::Bencher;
+    use std::gc::GC;
 
     #[bench]
     fn alloc_managed_small(b: &mut Bencher) {
-        b.iter(|| { @10; });
+        b.iter(|| { box(GC) 10 });
     }
 
     #[bench]
     fn alloc_managed_big(b: &mut Bencher) {
-        b.iter(|| { @([10, ..1000]); });
+        b.iter(|| { box(GC) ([10, ..1000]) });
     }
 }