Skip to content

Commit 99542b7

Browse files
committed
---
yaml --- r: 93157 b: refs/heads/try c: 92662a9 h: refs/heads/master i: 93155: d68594c v: v3
1 parent 5539e93 commit 99542b7

File tree

15 files changed

+31
-67
lines changed

15 files changed

+31
-67
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: ad465441ba3424cc5bcba2227c6a42ffe09fd77f
5+
refs/heads/try: 92662a9f9101c702215a6160eb3af0aabc583423
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libextra/arc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ fn borrow_rwlock<T:Freeze + Send>(state: *mut RWArcInner<T>) -> *RWLock {
521521

522522
/// The "write permission" token used for RWArc.write_downgrade().
523523
pub struct RWWriteMode<'self, T> {
524-
525524
priv data: &'self mut T,
526525
priv token: sync::RWLockWriteMode<'self>,
527526
priv poison: PoisonOnFail,

branches/try/src/libextra/comm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ pub fn DuplexStream<T:Send,U:Send>()
9191
}
9292

9393
/// An extension of `pipes::stream` that provides synchronous message sending.
94-
// all were already priv
9594
pub struct SyncChan<T> { priv duplex_stream: DuplexStream<T, ()> }
9695
/// An extension of `pipes::stream` that acknowledges each message received.
9796
pub struct SyncPort<T> { priv duplex_stream: DuplexStream<(), T> }

branches/try/src/libextra/ebml.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ pub mod writer {
618618

619619
// ebml writing
620620
pub struct Encoder {
621-
writer: @io::Writer,
622-
priv size_positions: ~[uint],
621+
writer: @io::Writer,
622+
priv size_positions: ~[uint],
623623
}
624624

625625
impl Clone for Encoder {

branches/try/src/libextra/fileinput.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ file is `stdin`.
109109
*/
110110
#[deriving(Clone)]
111111
pub struct FileInputState {
112-
priv current_path: Option<Path>,
113-
priv line_num: uint,
114-
priv line_num_file: uint
112+
current_path: Option<Path>,
113+
line_num: uint,
114+
line_num_file: uint
115115
}
116116

117117
impl FileInputState {

branches/try/src/libextra/getopts.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ pub enum Occur {
114114
pub struct Opt {
115115
/// Name of the option
116116
name: Name,
117-
/// Wheter it has an argument... should be public!!
117+
/// Wheter it has an argument
118118
hasarg: HasArg,
119-
/// How often it can occur... should be private !!
119+
/// How often it can occur
120120
occur: Occur,
121121
/// Which options it aliases
122122
priv aliases: ~[Opt],
@@ -133,13 +133,11 @@ enum Optval {
133133
/// of matches and a vector of free strings.
134134
#[deriving(Clone, Eq)]
135135
pub struct Matches {
136-
137136
/// Options that matched
138137
priv opts: ~[Opt],
139138
/// Values of the Options that matched
140139
priv vals: ~[~[Optval]],
141140
/// Free string fragments
142-
// public
143141
free: ~[~str]
144142
}
145143

branches/try/src/libextra/num/complex.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ use std::num::{Zero,One,ToStrRadix};
2525
#[deriving(Eq,Clone)]
2626
pub struct Cmplx<T> {
2727
/// Real portion of the complex number
28-
priv re: T,
28+
re: T,
2929
/// Imaginary portion of the complex number
30-
priv im: T
30+
im: T
3131
}
3232

3333
pub type Complex32 = Cmplx<f32>;

branches/try/src/libextra/sync.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ enum ReacquireOrderLock<'self> {
167167

168168
/// A mechanism for atomic-unlock-and-deschedule blocking and signalling.
169169
pub struct Condvar<'self> {
170-
171-
172170
// The 'Sem' object associated with this condvar. This is the one that's
173171
// atomically-unlocked-and-descheduled upon and reacquired during wakeup.
174172
priv sem: &'self Sem<~[WaitQueue]>,
@@ -667,7 +665,6 @@ impl RWLock {
667665
/// The "write permission" token used for rwlock.write_downgrade().
668666
669667
pub struct RWLockWriteMode<'self> { priv lock: &'self RWLock, priv token: NonCopyable }
670-
671668
/// The "read permission" token used for rwlock.write_downgrade().
672669
pub struct RWLockReadMode<'self> { priv lock: &'self RWLock,
673670
priv token: NonCopyable }

branches/try/src/libextra/term.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ fn cap_for_attr(attr: attr::Attr) -> &'static str {
9595

9696
#[cfg(not(target_os = "win32"))]
9797
pub struct Terminal {
98-
9998
priv num_colors: u16,
10099
priv out: @io::Writer,
101100
priv ti: ~TermInfo

branches/try/src/libstd/fmt/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,20 +478,18 @@ pub mod rt;
478478
/// traits.
479479
pub struct Formatter<'self> {
480480
/// Flags for formatting (packed version of rt::Flag)
481-
flags: uint,
481+
flags: uint,
482482
/// Character used as 'fill' whenever there is alignment
483483
fill: char,
484484
/// Boolean indication of whether the output should be left-aligned
485485
align: parse::Alignment,
486486
/// Optionally specified integer width that the output should be
487487
width: Option<uint>,
488488
/// Optionally specified precision for numeric types
489-
precision: Option<uint>,
489+
precision: Option<uint>,
490490

491491
/// Output buffer.
492492
buf: &'self mut io::Writer,
493-
494-
// already priv
495493
priv curarg: vec::VecIterator<'self, Argument<'self>>,
496494
priv args: &'self [Argument<'self>],
497495
}

branches/try/src/libstd/fmt/rt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct FormatSpec {
3838
fill: char,
3939
align: parse::Alignment,
4040
flags: uint,
41-
precision: Count,
41+
precision: Count,
4242
width: Count,
4343
}
4444

branches/try/src/libstd/io.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,9 +1815,9 @@ pub mod fsync {
18151815
}
18161816

18171817
pub struct Arg<t> {
1818-
priv val: t,
1819-
priv opt_level: Option<Level>,
1820-
priv fsync_fn: extern "Rust" fn(f: &t, Level) -> int,
1818+
priv val: t,
1819+
priv opt_level: Option<Level>,
1820+
priv fsync_fn: extern "Rust" fn(f: &t, Level) -> int,
18211821
}
18221822

18231823
// fsync file after executing blk

branches/try/src/libstd/iter.rs

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@ impl<A, T: DoubleEndedIterator<A> + RandomAccessIterator<A>> RandomAccessIterato
792792

793793
/// A mutable reference to an iterator
794794
pub struct ByRef<'self, T> {
795-
// already priv
796795
priv iter: &'self mut T
797796
}
798797

@@ -928,7 +927,6 @@ impl<A, T: Clone + Iterator<A>> ClonableIterator for T {
928927
/// An iterator that repeats endlessly
929928
#[deriving(Clone)]
930929
pub struct Cycle<T> {
931-
// already priv
932930
priv orig: T,
933931
priv iter: T,
934932
}
@@ -980,7 +978,6 @@ impl<A, T: Clone + RandomAccessIterator<A>> RandomAccessIterator<A> for Cycle<T>
980978
/// An iterator which strings two iterators together
981979
#[deriving(Clone)]
982980
pub struct Chain<T, U> {
983-
// already priv
984981
priv a: T,
985982
priv b: U,
986983
priv flag: bool
@@ -1050,7 +1047,6 @@ for Chain<T, U> {
10501047
/// An iterator which iterates two other iterators simultaneously
10511048
#[deriving(Clone)]
10521049
pub struct Zip<T, U> {
1053-
// already priv
10541050
priv a: T,
10551051
priv b: U
10561052
}
@@ -1129,7 +1125,6 @@ RandomAccessIterator<(A, B)> for Zip<T, U> {
11291125

11301126
/// An iterator which maps the values of `iter` with `f`
11311127
pub struct Map<'self, A, B, T> {
1132-
// already priv
11331128
priv iter: T,
11341129
priv f: &'self fn(A) -> B
11351130
}
@@ -1179,7 +1174,6 @@ impl<'self, A, B, T: RandomAccessIterator<A>> RandomAccessIterator<B> for Map<'s
11791174

11801175
/// An iterator which filters the elements of `iter` with `predicate`
11811176
pub struct Filter<'self, A, T> {
1182-
// already priv
11831177
priv iter: T,
11841178
priv predicate: &'self fn(&A) -> bool
11851179
}
@@ -1224,7 +1218,6 @@ impl<'self, A, T: DoubleEndedIterator<A>> DoubleEndedIterator<A> for Filter<'sel
12241218

12251219
/// An iterator which uses `f` to both filter and map elements from `iter`
12261220
pub struct FilterMap<'self, A, B, T> {
1227-
// already priv
12281221
priv iter: T,
12291222
priv f: &'self fn(A) -> Option<B>
12301223
}
@@ -1269,7 +1262,6 @@ for FilterMap<'self, A, B, T> {
12691262
/// An iterator which yields the current count and the element during iteration
12701263
#[deriving(Clone)]
12711264
pub struct Enumerate<T> {
1272-
// already priv
12731265
priv iter: T,
12741266
priv count: uint
12751267
}
@@ -1324,7 +1316,6 @@ impl<A, T: RandomAccessIterator<A>> RandomAccessIterator<(uint, A)> for Enumerat
13241316

13251317
/// An iterator with a `peek()` that returns an optional reference to the next element.
13261318
pub struct Peekable<A, T> {
1327-
// already priv
13281319
priv iter: T,
13291320
priv peeked: Option<A>,
13301321
}
@@ -1369,7 +1360,6 @@ impl<'self, A, T: Iterator<A>> Peekable<A, T> {
13691360

13701361
/// An iterator which rejects elements while `predicate` is true
13711362
pub struct SkipWhile<'self, A, T> {
1372-
// already priv
13731363
priv iter: T,
13741364
priv flag: bool,
13751365
priv predicate: &'self fn(&A) -> bool
@@ -1408,7 +1398,6 @@ impl<'self, A, T: Iterator<A>> Iterator<A> for SkipWhile<'self, A, T> {
14081398

14091399
/// An iterator which only accepts elements while `predicate` is true
14101400
pub struct TakeWhile<'self, A, T> {
1411-
// already priv
14121401
priv iter: T,
14131402
priv flag: bool,
14141403
priv predicate: &'self fn(&A) -> bool
@@ -1444,7 +1433,6 @@ impl<'self, A, T: Iterator<A>> Iterator<A> for TakeWhile<'self, A, T> {
14441433
/// An iterator which skips over `n` elements of `iter`.
14451434
#[deriving(Clone)]
14461435
pub struct Skip<T> {
1447-
// already priv
14481436
priv iter: T,
14491437
priv n: uint
14501438
}
@@ -1509,7 +1497,6 @@ impl<A, T: RandomAccessIterator<A>> RandomAccessIterator<A> for Skip<T> {
15091497
/// An iterator which only iterates over the first `n` iterations of `iter`.
15101498
#[deriving(Clone)]
15111499
pub struct Take<T> {
1512-
// already priv
15131500
priv iter: T,
15141501
priv n: uint
15151502
}
@@ -1559,13 +1546,11 @@ impl<A, T: RandomAccessIterator<A>> RandomAccessIterator<A> for Take<T> {
15591546

15601547
/// An iterator to maintain state while iterating another iterator
15611548
pub struct Scan<'self, A, B, T, St> {
1562-
// already priv
15631549
priv iter: T,
15641550
priv f: &'self fn(&mut St, A) -> Option<B>,
15651551

15661552
/// The current internal state to be passed to the closure next.
1567-
// priv by reedlepee
1568-
priv state: St
1553+
state: St
15691554
}
15701555

15711556
impl<'self, A, B, T: Iterator<A>, St> Iterator<B> for Scan<'self, A, B, T, St> {
@@ -1585,7 +1570,6 @@ impl<'self, A, B, T: Iterator<A>, St> Iterator<B> for Scan<'self, A, B, T, St> {
15851570
/// and yields the elements of the produced iterators
15861571
///
15871572
pub struct FlatMap<'self, A, T, U> {
1588-
// already priv
15891573
priv iter: T,
15901574
priv f: &'self fn(A) -> U,
15911575
priv frontiter: Option<U>,
@@ -1645,7 +1629,6 @@ impl<'self,
16451629
/// yields `None` once.
16461630
#[deriving(Clone, DeepClone)]
16471631
pub struct Fuse<T> {
1648-
// already priv
16491632
priv iter: T,
16501633
priv done: bool
16511634
}
@@ -1718,7 +1701,6 @@ impl<T> Fuse<T> {
17181701
/// An iterator that calls a function with a reference to each
17191702
/// element before yielding it.
17201703
pub struct Inspect<'self, A, T> {
1721-
// already priv
17221704
priv iter: T,
17231705
priv f: &'self fn(&A)
17241706
}
@@ -1772,10 +1754,8 @@ for Inspect<'self, A, T> {
17721754

17731755
/// An iterator which just modifies the contained state throughout iteration.
17741756
pub struct Unfold<'self, A, St> {
1775-
// already priv
17761757
priv f: &'self fn(&mut St) -> Option<A>,
17771758
/// Internal state that will be yielded on the next iteration
1778-
/// priv reedlepee
17791759
state: St
17801760
}
17811761

@@ -1809,7 +1789,6 @@ impl<'self, A, St> Iterator<A> for Unfold<'self, A, St> {
18091789
/// iteration
18101790
#[deriving(Clone)]
18111791
pub struct Counter<A> {
1812-
// by reedlepee
18131792
/// The current state the counter is at (next value to be yielded)
18141793
priv state: A,
18151794
/// The amount that this iterator is stepping by
@@ -1839,7 +1818,6 @@ impl<A: Add<A, A> + Clone> Iterator<A> for Counter<A> {
18391818
/// An iterator over the range [start, stop)
18401819
#[deriving(Clone, DeepClone)]
18411820
pub struct Range<A> {
1842-
// already priv
18431821
priv state: A,
18441822
priv stop: A,
18451823
priv one: A
@@ -1884,7 +1862,6 @@ impl<A: Integer + Ord + Clone> DoubleEndedIterator<A> for Range<A> {
18841862
/// An iterator over the range [start, stop]
18851863
#[deriving(Clone, DeepClone)]
18861864
pub struct RangeInclusive<A> {
1887-
// already priv
18881865
priv range: Range<A>,
18891866
priv done: bool
18901867
}
@@ -1946,7 +1923,6 @@ impl<A: Sub<A, A> + Integer + Ord + Clone> DoubleEndedIterator<A> for RangeInclu
19461923
/// An iterator over the range [start, stop) by `step`. It handles overflow by stopping.
19471924
#[deriving(Clone, DeepClone)]
19481925
pub struct RangeStep<A> {
1949-
// already priv
19501926
priv state: A,
19511927
priv stop: A,
19521928
priv step: A,
@@ -1979,7 +1955,6 @@ impl<A: CheckedAdd + Ord + Clone> Iterator<A> for RangeStep<A> {
19791955
/// An iterator over the range [start, stop] by `step`. It handles overflow by stopping.
19801956
#[deriving(Clone, DeepClone)]
19811957
pub struct RangeStepInclusive<A> {
1982-
// already priv
19831958
priv state: A,
19841959
priv stop: A,
19851960
priv step: A,
@@ -2015,7 +1990,6 @@ impl<A: CheckedAdd + Ord + Clone + Eq> Iterator<A> for RangeStepInclusive<A> {
20151990
/// An iterator that repeats an element endlessly
20161991
#[deriving(Clone, DeepClone)]
20171992
pub struct Repeat<A> {
2018-
// already priv
20191993
priv element: A
20201994
}
20211995

branches/try/src/libstd/rt/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use vec::{OwnedVector};
4040
/// in too much allocation and too many events.
4141
pub struct Scheduler {
4242
/// There are N work queues, one per scheduler.
43-
work_queue: WorkQueue<~Task>,
43+
priv work_queue: WorkQueue<~Task>,
4444
/// Work queues for the other schedulers. These are created by
4545
/// cloning the core work queues.
4646
work_queues: ~[WorkQueue<~Task>],

0 commit comments

Comments
 (0)