Skip to content

Commit cc41088

Browse files
bjadamsonalexcrichton
authored andcommitted
---
yaml --- r: 110103 b: refs/heads/auto c: 2ae2924 h: refs/heads/master i: 110101: e127dc6 110099: aaf1025 110095: ae6d2ac v: v3
1 parent bc6223c commit cc41088

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: b4f7b6d6729e3d255477833b05e0fd0b58c9ee34
16+
refs/heads/auto: 2ae292473e2b96ea8429dff5f2f3581bc026582c
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)