File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
branches/try/src/libarena Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: e415c25bcd81dc1f9a5a3d25d9b48ed2d545336b
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
5
- refs/heads/try: a49ce7f11a7c1ec0d77b058caca4694540576cf5
5
+ refs/heads/try: c9024d2922059f875bcdd460c74bfe3f5bb7f237
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change 25
25
#![ allow( missing_doc) ]
26
26
#![ feature( managed_boxes) ]
27
27
28
+ #![ allow( visible_private_types) ] // NOTE: remove after a stage0 snap
29
+
28
30
extern crate collections;
29
31
30
32
use std:: cast:: { transmute, transmute_mut, transmute_mut_region} ;
@@ -83,9 +85,9 @@ pub struct Arena {
83
85
// The head is separated out from the list as a unbenchmarked
84
86
// microoptimization, to avoid needing to case on the list to
85
87
// access the head.
86
- priv head : Chunk ,
87
- priv copy_head : Chunk ,
88
- priv chunks : RefCell < Vec < Chunk > > ,
88
+ head : Chunk ,
89
+ copy_head : Chunk ,
90
+ chunks : RefCell < Vec < Chunk > > ,
89
91
}
90
92
91
93
impl Arena {
@@ -333,14 +335,14 @@ fn test_arena_destructors_fail() {
333
335
/// run again for these objects.
334
336
pub struct TypedArena < T > {
335
337
/// A pointer to the next object to be allocated.
336
- priv ptr: * T ,
338
+ ptr : * T ,
337
339
338
340
/// A pointer to the end of the allocated area. When this pointer is
339
341
/// reached, a new chunk is allocated.
340
- priv end: * T ,
342
+ end : * T ,
341
343
342
344
/// A pointer to the first arena segment.
343
- priv first : Option < ~TypedArenaChunk < T > > ,
345
+ first : Option < ~TypedArenaChunk < T > > ,
344
346
}
345
347
346
348
struct TypedArenaChunk < T > {
You can’t perform that action at this time.
0 commit comments