Skip to content

Commit e14222e

Browse files
committed
Removed managed boxes from libarena.
1 parent 7bda3df commit e14222e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/libarena/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -23,8 +23,6 @@
2323
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2424
html_root_url = "http://static.rust-lang.org/doc/master")]
2525
#![allow(missing_doc)]
26-
#![feature(managed_boxes)]
27-
2826
#![allow(visible_private_types)] // NOTE: remove after a stage0 snap
2927

3028
extern crate collections;
@@ -301,7 +299,7 @@ fn test_arena_destructors() {
301299
for i in range(0u, 10) {
302300
// Arena allocate something with drop glue to make sure it
303301
// doesn't leak.
304-
arena.alloc(|| @i);
302+
arena.alloc(|| Rc::new(i));
305303
// Allocate something with funny size and alignment, to keep
306304
// things interesting.
307305
arena.alloc(|| [0u8, 1u8, 2u8]);
@@ -316,13 +314,13 @@ fn test_arena_destructors_fail() {
316314
for i in range(0u, 10) {
317315
// Arena allocate something with drop glue to make sure it
318316
// doesn't leak.
319-
arena.alloc(|| { @i });
317+
arena.alloc(|| { Rc::new(i) });
320318
// Allocate something with funny size and alignment, to keep
321319
// things interesting.
322320
arena.alloc(|| { [0u8, 1u8, 2u8] });
323321
}
324322
// Now, fail while allocating
325-
arena.alloc::<@int>(|| {
323+
arena.alloc::<Rc<int>>(|| {
326324
// Now fail.
327325
fail!();
328326
});

0 commit comments

Comments
 (0)