Skip to content

Commit 05fa64b

Browse files
committed
---
yaml --- r: 105811 b: refs/heads/master c: 9a3d04a h: refs/heads/master i: 105809: 412b01f 105807: 2643fb9 v: v3
1 parent 433ee37 commit 05fa64b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+890
-894
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f2a5c7a179ab0fc0e415918c1fc5d280a9e02ede
2+
refs/heads/master: 9a3d04ae7629f6f273643b3a14f106726842be6a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
55
refs/heads/try: db814977d07bd798feb24f6b74c00800ef458a13

trunk/src/libstd/ascii.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use option::{Option, Some, None};
2525

2626
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
2727
#[deriving(Clone, Eq, Ord, TotalOrd, TotalEq, Hash)]
28-
pub struct Ascii { priv chr: u8 }
28+
pub struct Ascii { chr: u8 }
2929

3030
impl Ascii {
3131
/// Converts an ascii character into a `u8`.

trunk/src/libstd/c_str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ use raw::Slice;
8686
/// This structure wraps a `*libc::c_char`, and will automatically free the
8787
/// memory it is pointing to when it goes out of scope.
8888
pub struct CString {
89-
priv buf: *libc::c_char,
90-
priv owns_buffer_: bool,
89+
buf: *libc::c_char,
90+
owns_buffer_: bool,
9191
}
9292

9393
impl Clone for CString {
@@ -373,8 +373,8 @@ fn check_for_null(v: &[u8], buf: *mut libc::c_char) {
373373
///
374374
/// Use with the `std::iter` module.
375375
pub struct CChars<'a> {
376-
priv ptr: *libc::c_char,
377-
priv marker: marker::ContravariantLifetime<'a>,
376+
ptr: *libc::c_char,
377+
marker: marker::ContravariantLifetime<'a>,
378378
}
379379

380380
impl<'a> Iterator<libc::c_char> for CChars<'a> {

trunk/src/libstd/c_vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ use raw;
4444

4545
/// The type representing a foreign chunk of memory
4646
pub struct CVec<T> {
47-
priv base: *mut T,
48-
priv len: uint,
49-
priv dtor: Option<proc:Send()>,
47+
base: *mut T,
48+
len: uint,
49+
dtor: Option<proc:Send()>,
5050
}
5151

5252
#[unsafe_destructor]

trunk/src/libstd/cell.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use ty::Unsafe;
2121

2222
/// A mutable memory location that admits only `Copy` data.
2323
pub struct Cell<T> {
24-
priv value: Unsafe<T>,
25-
priv noshare: marker::NoShare,
24+
value: Unsafe<T>,
25+
noshare: marker::NoShare,
2626
}
2727

2828
impl<T:Copy> Cell<T> {
@@ -69,10 +69,10 @@ impl<T: fmt::Show> fmt::Show for Cell<T> {
6969

7070
/// A mutable memory location with dynamically checked borrow rules
7171
pub struct RefCell<T> {
72-
priv value: Unsafe<T>,
73-
priv borrow: BorrowFlag,
74-
priv nocopy: marker::NoCopy,
75-
priv noshare: marker::NoShare,
72+
value: Unsafe<T>,
73+
borrow: BorrowFlag,
74+
nocopy: marker::NoCopy,
75+
noshare: marker::NoShare,
7676
}
7777

7878
// Values [1, MAX-1] represent the number of `Ref` active
@@ -202,7 +202,7 @@ impl<T: Eq> Eq for RefCell<T> {
202202

203203
/// Wraps a borrowed reference to a value in a `RefCell` box.
204204
pub struct Ref<'b, T> {
205-
priv parent: &'b RefCell<T>
205+
parent: &'b RefCell<T>
206206
}
207207

208208
#[unsafe_destructor]
@@ -222,7 +222,7 @@ impl<'b, T> Deref<T> for Ref<'b, T> {
222222

223223
/// Wraps a mutable borrowed reference to a value in a `RefCell` box.
224224
pub struct RefMut<'b, T> {
225-
priv parent: &'b mut RefCell<T>
225+
parent: &'b mut RefCell<T>
226226
}
227227

228228
#[unsafe_destructor]

trunk/src/libstd/comm/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,34 +289,34 @@ static RESCHED_FREQ: int = 256;
289289
/// The receiving-half of Rust's channel type. This half can only be owned by
290290
/// one task
291291
pub struct Receiver<T> {
292-
priv inner: Flavor<T>,
293-
priv receives: Cell<uint>,
292+
inner: Flavor<T>,
293+
receives: Cell<uint>,
294294
// can't share in an arc
295-
priv marker: marker::NoShare,
295+
marker: marker::NoShare,
296296
}
297297

298298
/// An iterator over messages on a receiver, this iterator will block
299299
/// whenever `next` is called, waiting for a new message, and `None` will be
300300
/// returned when the corresponding channel has hung up.
301301
pub struct Messages<'a, T> {
302-
priv rx: &'a Receiver<T>
302+
rx: &'a Receiver<T>
303303
}
304304

305305
/// The sending-half of Rust's asynchronous channel type. This half can only be
306306
/// owned by one task, but it can be cloned to send to other tasks.
307307
pub struct Sender<T> {
308-
priv inner: Flavor<T>,
309-
priv sends: Cell<uint>,
308+
inner: Flavor<T>,
309+
sends: Cell<uint>,
310310
// can't share in an arc
311-
priv marker: marker::NoShare,
311+
marker: marker::NoShare,
312312
}
313313

314314
/// The sending-half of Rust's synchronous channel type. This half can only be
315315
/// owned by one task, but it can be cloned to send to other tasks.
316316
pub struct SyncSender<T> {
317-
priv inner: UnsafeArc<sync::Packet<T>>,
317+
inner: UnsafeArc<sync::Packet<T>>,
318318
// can't share in an arc
319-
priv marker: marker::NoShare,
319+
marker: marker::NoShare,
320320
}
321321

322322
/// This enumeration is the list of the possible reasons that try_recv could not

trunk/src/libstd/comm/select.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ use uint;
6262
/// The "receiver set" of the select interface. This structure is used to manage
6363
/// a set of receivers which are being selected over.
6464
pub struct Select {
65-
priv head: *mut Handle<'static, ()>,
66-
priv tail: *mut Handle<'static, ()>,
67-
priv next_id: Cell<uint>,
68-
priv marker1: marker::NoSend,
65+
head: *mut Handle<'static, ()>,
66+
tail: *mut Handle<'static, ()>,
67+
next_id: Cell<uint>,
68+
marker1: marker::NoSend,
6969
}
7070

7171
/// A handle to a receiver which is currently a member of a `Select` set of
@@ -74,16 +74,16 @@ pub struct Select {
7474
pub struct Handle<'rx, T> {
7575
/// The ID of this handle, used to compare against the return value of
7676
/// `Select::wait()`
77-
priv id: uint,
78-
priv selector: &'rx Select,
79-
priv next: *mut Handle<'static, ()>,
80-
priv prev: *mut Handle<'static, ()>,
81-
priv added: bool,
82-
priv packet: &'rx Packet,
77+
id: uint,
78+
selector: &'rx Select,
79+
next: *mut Handle<'static, ()>,
80+
prev: *mut Handle<'static, ()>,
81+
added: bool,
82+
packet: &'rx Packet,
8383

8484
// due to our fun transmutes, we be sure to place this at the end. (nothing
8585
// previous relies on T)
86-
priv rx: &'rx Receiver<T>,
86+
rx: &'rx Receiver<T>,
8787
}
8888

8989
struct Packets { cur: *mut Handle<'static, ()> }

trunk/src/libstd/fmt/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -508,29 +508,29 @@ pub type Result = io::IoResult<()>;
508508
/// traits.
509509
pub struct Formatter<'a> {
510510
/// Flags for formatting (packed version of rt::Flag)
511-
flags: uint,
511+
pub flags: uint,
512512
/// Character used as 'fill' whenever there is alignment
513-
fill: char,
513+
pub fill: char,
514514
/// Boolean indication of whether the output should be left-aligned
515-
align: parse::Alignment,
515+
pub align: parse::Alignment,
516516
/// Optionally specified integer width that the output should be
517-
width: Option<uint>,
517+
pub width: Option<uint>,
518518
/// Optionally specified precision for numeric types
519-
precision: Option<uint>,
519+
pub precision: Option<uint>,
520520

521521
/// Output buffer.
522-
buf: &'a mut io::Writer,
523-
priv curarg: slice::Items<'a, Argument<'a>>,
524-
priv args: &'a [Argument<'a>],
522+
pub buf: &'a mut io::Writer,
523+
curarg: slice::Items<'a, Argument<'a>>,
524+
args: &'a [Argument<'a>],
525525
}
526526

527527
/// This struct represents the generic "argument" which is taken by the Xprintf
528528
/// family of functions. It contains a function to format the given value. At
529529
/// compile time it is ensured that the function and the value have the correct
530530
/// types, and then this struct is used to canonicalize arguments to one type.
531531
pub struct Argument<'a> {
532-
priv formatter: extern "Rust" fn(&any::Void, &mut Formatter) -> Result,
533-
priv value: &'a any::Void,
532+
formatter: extern "Rust" fn(&any::Void, &mut Formatter) -> Result,
533+
value: &'a any::Void,
534534
}
535535

536536
impl<'a> Arguments<'a> {
@@ -555,8 +555,8 @@ impl<'a> Arguments<'a> {
555555
/// string at compile-time so usage of the `write` and `format` functions can
556556
/// be safely performed.
557557
pub struct Arguments<'a> {
558-
priv fmt: &'a [rt::Piece<'a>],
559-
priv args: &'a [Argument<'a>],
558+
fmt: &'a [rt::Piece<'a>],
559+
args: &'a [Argument<'a>],
560560
}
561561

562562
/// When a format is not otherwise specified, types are formatted by ascribing

trunk/src/libstd/fmt/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ radix!(UpperHex, 16, "0x", x @ 0 .. 9 => '0' as u8 + x,
108108
/// A radix with in the range of `2..36`.
109109
#[deriving(Clone, Eq)]
110110
pub struct Radix {
111-
priv base: u8,
111+
base: u8,
112112
}
113113

114114
impl Radix {

trunk/src/libstd/fmt/parse.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@ pub enum Piece<'a> {
3737
#[deriving(Eq)]
3838
pub struct Argument<'a> {
3939
/// Where to find this argument
40-
position: Position<'a>,
40+
pub position: Position<'a>,
4141
/// How to format the argument
42-
format: FormatSpec<'a>,
42+
pub format: FormatSpec<'a>,
4343
/// If not `None`, what method to invoke on the argument
44-
method: Option<~Method<'a>>
44+
pub method: Option<~Method<'a>>
4545
}
4646

4747
/// Specification for the formatting of an argument in the format string.
4848
#[deriving(Eq)]
4949
pub struct FormatSpec<'a> {
5050
/// Optionally specified character to fill alignment with
51-
fill: Option<char>,
51+
pub fill: Option<char>,
5252
/// Optionally specified alignment
53-
align: Alignment,
53+
pub align: Alignment,
5454
/// Packed version of various flags provided
55-
flags: uint,
55+
pub flags: uint,
5656
/// The integer precision to use
57-
precision: Count<'a>,
57+
pub precision: Count<'a>,
5858
/// The string width requested for the resulting format
59-
width: Count<'a>,
59+
pub width: Count<'a>,
6060
/// The descriptor string representing the name of the format desired for
6161
/// this argument, this can be empty or any number of characters, although
6262
/// it is required to be one word.
63-
ty: &'a str
63+
pub ty: &'a str
6464
}
6565

6666
/// Enum describing where an argument for a format can be located.
@@ -154,9 +154,9 @@ pub enum PluralSelector {
154154
pub struct PluralArm<'a> {
155155
/// A selector can either be specified by a keyword or with an integer
156156
/// literal.
157-
selector: PluralSelector,
157+
pub selector: PluralSelector,
158158
/// Array of pieces which are the format of this arm
159-
result: ~[Piece<'a>],
159+
pub result: ~[Piece<'a>],
160160
}
161161

162162
/// Enum of the 5 CLDR plural keywords. There is one more, "other", but that
@@ -182,9 +182,9 @@ pub enum PluralKeyword {
182182
#[deriving(Eq)]
183183
pub struct SelectArm<'a> {
184184
/// String selector which guards this arm
185-
selector: &'a str,
185+
pub selector: &'a str,
186186
/// Array of pieces which are the format of this arm
187-
result: ~[Piece<'a>],
187+
pub result: ~[Piece<'a>],
188188
}
189189

190190
/// The parser structure for interpreting the input format string. This is
@@ -194,11 +194,11 @@ pub struct SelectArm<'a> {
194194
/// This is a recursive-descent parser for the sake of simplicity, and if
195195
/// necessary there's probably lots of room for improvement performance-wise.
196196
pub struct Parser<'a> {
197-
priv input: &'a str,
198-
priv cur: str::CharOffsets<'a>,
199-
priv depth: uint,
197+
input: &'a str,
198+
cur: str::CharOffsets<'a>,
199+
depth: uint,
200200
/// Error messages accumulated during parsing
201-
errors: ~[~str],
201+
pub errors: ~[~str],
202202
}
203203

204204
impl<'a> Iterator<Piece<'a>> for Parser<'a> {

trunk/src/libstd/fmt/rt.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ pub enum Piece<'a> {
2828
}
2929

3030
pub struct Argument<'a> {
31-
position: Position,
32-
format: FormatSpec,
33-
method: Option<&'a Method<'a>>
31+
pub position: Position,
32+
pub format: FormatSpec,
33+
pub method: Option<&'a Method<'a>>
3434
}
3535

3636
pub struct FormatSpec {
37-
fill: char,
38-
align: parse::Alignment,
39-
flags: uint,
40-
precision: Count,
41-
width: Count,
37+
pub fill: char,
38+
pub align: parse::Alignment,
39+
pub flags: uint,
40+
pub precision: Count,
41+
pub width: Count,
4242
}
4343

4444
pub enum Count {
@@ -60,11 +60,11 @@ pub enum PluralSelector {
6060
}
6161

6262
pub struct PluralArm<'a> {
63-
selector: PluralSelector,
64-
result: &'a [Piece<'a>],
63+
pub selector: PluralSelector,
64+
pub result: &'a [Piece<'a>],
6565
}
6666

6767
pub struct SelectArm<'a> {
68-
selector: &'a str,
69-
result: &'a [Piece<'a>],
68+
pub selector: &'a str,
69+
pub result: &'a [Piece<'a>],
7070
}

trunk/src/libstd/gc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ use managed;
2929
task annihilation. For now, cycles need to be broken manually by using `Rc<T>` \
3030
with a non-owning `Weak<T>` pointer. A tracing garbage collector is planned."]
3131
pub struct Gc<T> {
32-
priv ptr: @T,
33-
priv marker: marker::NoSend,
32+
ptr: @T,
33+
marker: marker::NoSend,
3434
}
3535

3636
#[cfg(test)]
3737
pub struct Gc<T> {
38-
priv ptr: @T,
39-
priv marker: marker::NoSend,
38+
ptr: @T,
39+
marker: marker::NoSend,
4040
}
4141

4242
impl<T: 'static> Gc<T> {

0 commit comments

Comments
 (0)