Skip to content

Commit bb497e3

Browse files
committed
---
yaml --- r: 106435 b: refs/heads/auto c: c9024d2 h: refs/heads/master i: 106433: b93ea45 106431: e86980e v: v3
1 parent 11d469d commit bb497e3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-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: a49ce7f11a7c1ec0d77b058caca4694540576cf5
16+
refs/heads/auto: c9024d2922059f875bcdd460c74bfe3f5bb7f237
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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#![allow(missing_doc)]
2626
#![feature(managed_boxes)]
2727

28+
#![allow(visible_private_types)] // NOTE: remove after a stage0 snap
29+
2830
extern crate collections;
2931

3032
use std::cast::{transmute, transmute_mut, transmute_mut_region};
@@ -83,9 +85,9 @@ pub struct Arena {
8385
// The head is separated out from the list as a unbenchmarked
8486
// microoptimization, to avoid needing to case on the list to
8587
// 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>>,
8991
}
9092

9193
impl Arena {
@@ -333,14 +335,14 @@ fn test_arena_destructors_fail() {
333335
/// run again for these objects.
334336
pub struct TypedArena<T> {
335337
/// A pointer to the next object to be allocated.
336-
priv ptr: *T,
338+
ptr: *T,
337339

338340
/// A pointer to the end of the allocated area. When this pointer is
339341
/// reached, a new chunk is allocated.
340-
priv end: *T,
342+
end: *T,
341343

342344
/// A pointer to the first arena segment.
343-
priv first: Option<~TypedArenaChunk<T>>,
345+
first: Option<~TypedArenaChunk<T>>,
344346
}
345347

346348
struct TypedArenaChunk<T> {

0 commit comments

Comments
 (0)