1
- // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
23
23
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
24
24
html_root_url = "http://static.rust-lang.org/doc/master" ) ]
25
25
#![ allow( missing_doc) ]
26
- #![ feature( managed_boxes) ]
27
-
28
26
#![ allow( visible_private_types) ] // NOTE: remove after a stage0 snap
29
27
30
28
extern crate collections;
@@ -301,7 +299,7 @@ fn test_arena_destructors() {
301
299
for i in range ( 0 u, 10 ) {
302
300
// Arena allocate something with drop glue to make sure it
303
301
// doesn't leak.
304
- arena. alloc ( || @i ) ;
302
+ arena. alloc ( || Rc :: new ( i ) ) ;
305
303
// Allocate something with funny size and alignment, to keep
306
304
// things interesting.
307
305
arena. alloc ( || [ 0u8 , 1u8 , 2u8 ] ) ;
@@ -316,13 +314,13 @@ fn test_arena_destructors_fail() {
316
314
for i in range ( 0 u, 10 ) {
317
315
// Arena allocate something with drop glue to make sure it
318
316
// doesn't leak.
319
- arena. alloc ( || { @i } ) ;
317
+ arena. alloc ( || { Rc :: new ( i ) } ) ;
320
318
// Allocate something with funny size and alignment, to keep
321
319
// things interesting.
322
320
arena. alloc ( || { [ 0u8 , 1u8 , 2u8 ] } ) ;
323
321
}
324
322
// Now, fail while allocating
325
- arena. alloc :: < @ int > ( || {
323
+ arena. alloc :: < Rc < int > > ( || {
326
324
// Now fail.
327
325
fail ! ( ) ;
328
326
} ) ;
0 commit comments