Skip to content

Commit d05658b

Browse files
committed
---
yaml --- r: 66234 b: refs/heads/master c: caa50ce h: refs/heads/master v: v3
1 parent 46e2842 commit d05658b

File tree

4 files changed

+1
-58
lines changed

4 files changed

+1
-58
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: 2afdf0d6a18bd0fb3369088eff1f8d9c707ad43d
2+
refs/heads/master: caa50ce15d8ed8f0d50c9049053a5e2cd5a0d701
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libstd/iterator.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pub trait Iterator<A> {
4343
/// Return a lower bound and upper bound on the remaining length of the iterator.
4444
///
4545
/// The common use case for the estimate is pre-allocating space to store the results.
46-
#[cfg(not(stage0))]
4746
fn size_hint(&self) -> (Option<uint>, Option<uint>) { (None, None) }
4847
}
4948

@@ -610,7 +609,6 @@ impl<A, T: Iterator<A>, U: Iterator<A>> Iterator<A> for ChainIterator<A, T, U> {
610609
}
611610

612611
#[inline]
613-
#[cfg(not(stage0))]
614612
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
615613
let (a_lower, a_upper) = self.a.size_hint();
616614
let (b_lower, b_upper) = self.b.size_hint();
@@ -664,7 +662,6 @@ impl<'self, A, B, T: Iterator<A>> Iterator<B> for MapIterator<'self, A, B, T> {
664662
}
665663

666664
#[inline]
667-
#[cfg(not(stage0))]
668665
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
669666
self.iter.size_hint()
670667
}
@@ -690,7 +687,6 @@ impl<'self, A, T: Iterator<A>> Iterator<A> for FilterIterator<'self, A, T> {
690687
}
691688

692689
#[inline]
693-
#[cfg(not(stage0))]
694690
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
695691
let (_, upper) = self.iter.size_hint();
696692
(None, upper) // can't know a lower bound, due to the predicate
@@ -716,7 +712,6 @@ impl<'self, A, B, T: Iterator<A>> Iterator<B> for FilterMapIterator<'self, A, B,
716712
}
717713

718714
#[inline]
719-
#[cfg(not(stage0))]
720715
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
721716
let (_, upper) = self.iter.size_hint();
722717
(None, upper) // can't know a lower bound, due to the predicate

trunk/src/libstd/unstable/intrinsics.rs

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ pub extern "rust-intrinsic" {
4242
/// Atomic compare and exchange, release ordering.
4343
pub fn atomic_cxchg_rel(dst: &mut int, old: int, src: int) -> int;
4444

45-
#[cfg(not(stage0))]
4645
pub fn atomic_cxchg_acqrel(dst: &mut int, old: int, src: int) -> int;
47-
#[cfg(not(stage0))]
4846
pub fn atomic_cxchg_relaxed(dst: &mut int, old: int, src: int) -> int;
4947

5048

@@ -53,15 +51,13 @@ pub extern "rust-intrinsic" {
5351
/// Atomic load, acquire ordering.
5452
pub fn atomic_load_acq(src: &int) -> int;
5553

56-
#[cfg(not(stage0))]
5754
pub fn atomic_load_relaxed(src: &int) -> int;
5855

5956
/// Atomic store, sequentially consistent.
6057
pub fn atomic_store(dst: &mut int, val: int);
6158
/// Atomic store, release ordering.
6259
pub fn atomic_store_rel(dst: &mut int, val: int);
6360

64-
#[cfg(not(stage0))]
6561
pub fn atomic_store_relaxed(dst: &mut int, val: int);
6662

6763
/// Atomic exchange, sequentially consistent.
@@ -70,9 +66,7 @@ pub extern "rust-intrinsic" {
7066
pub fn atomic_xchg_acq(dst: &mut int, src: int) -> int;
7167
/// Atomic exchange, release ordering.
7268
pub fn atomic_xchg_rel(dst: &mut int, src: int) -> int;
73-
#[cfg(not(stage0))]
7469
pub fn atomic_xchg_acqrel(dst: &mut int, src: int) -> int;
75-
#[cfg(not(stage0))]
7670
pub fn atomic_xchg_relaxed(dst: &mut int, src: int) -> int;
7771

7872
/// Atomic addition, sequentially consistent.
@@ -81,9 +75,7 @@ pub extern "rust-intrinsic" {
8175
pub fn atomic_xadd_acq(dst: &mut int, src: int) -> int;
8276
/// Atomic addition, release ordering.
8377
pub fn atomic_xadd_rel(dst: &mut int, src: int) -> int;
84-
#[cfg(not(stage0))]
8578
pub fn atomic_xadd_acqrel(dst: &mut int, src: int) -> int;
86-
#[cfg(not(stage0))]
8779
pub fn atomic_xadd_relaxed(dst: &mut int, src: int) -> int;
8880

8981
/// Atomic subtraction, sequentially consistent.
@@ -92,97 +84,55 @@ pub extern "rust-intrinsic" {
9284
pub fn atomic_xsub_acq(dst: &mut int, src: int) -> int;
9385
/// Atomic subtraction, release ordering.
9486
pub fn atomic_xsub_rel(dst: &mut int, src: int) -> int;
95-
#[cfg(not(stage0))]
9687
pub fn atomic_xsub_acqrel(dst: &mut int, src: int) -> int;
97-
#[cfg(not(stage0))]
9888
pub fn atomic_xsub_relaxed(dst: &mut int, src: int) -> int;
9989

100-
#[cfg(not(stage0))]
10190
pub fn atomic_and(dst: &mut int, src: int) -> int;
102-
#[cfg(not(stage0))]
10391
pub fn atomic_and_acq(dst: &mut int, src: int) -> int;
104-
#[cfg(not(stage0))]
10592
pub fn atomic_and_rel(dst: &mut int, src: int) -> int;
106-
#[cfg(not(stage0))]
10793
pub fn atomic_and_acqrel(dst: &mut int, src: int) -> int;
108-
#[cfg(not(stage0))]
10994
pub fn atomic_and_relaxed(dst: &mut int, src: int) -> int;
11095

111-
#[cfg(not(stage0))]
11296
pub fn atomic_nand(dst: &mut int, src: int) -> int;
113-
#[cfg(not(stage0))]
11497
pub fn atomic_nand_acq(dst: &mut int, src: int) -> int;
115-
#[cfg(not(stage0))]
11698
pub fn atomic_nand_rel(dst: &mut int, src: int) -> int;
117-
#[cfg(not(stage0))]
11899
pub fn atomic_nand_acqrel(dst: &mut int, src: int) -> int;
119-
#[cfg(not(stage0))]
120100
pub fn atomic_nand_relaxed(dst: &mut int, src: int) -> int;
121101

122-
#[cfg(not(stage0))]
123102
pub fn atomic_or(dst: &mut int, src: int) -> int;
124-
#[cfg(not(stage0))]
125103
pub fn atomic_or_acq(dst: &mut int, src: int) -> int;
126-
#[cfg(not(stage0))]
127104
pub fn atomic_or_rel(dst: &mut int, src: int) -> int;
128-
#[cfg(not(stage0))]
129105
pub fn atomic_or_acqrel(dst: &mut int, src: int) -> int;
130-
#[cfg(not(stage0))]
131106
pub fn atomic_or_relaxed(dst: &mut int, src: int) -> int;
132107

133-
#[cfg(not(stage0))]
134108
pub fn atomic_xor(dst: &mut int, src: int) -> int;
135-
#[cfg(not(stage0))]
136109
pub fn atomic_xor_acq(dst: &mut int, src: int) -> int;
137-
#[cfg(not(stage0))]
138110
pub fn atomic_xor_rel(dst: &mut int, src: int) -> int;
139-
#[cfg(not(stage0))]
140111
pub fn atomic_xor_acqrel(dst: &mut int, src: int) -> int;
141-
#[cfg(not(stage0))]
142112
pub fn atomic_xor_relaxed(dst: &mut int, src: int) -> int;
143113

144-
#[cfg(not(stage0))]
145114
pub fn atomic_max(dst: &mut int, src: int) -> int;
146-
#[cfg(not(stage0))]
147115
pub fn atomic_max_acq(dst: &mut int, src: int) -> int;
148-
#[cfg(not(stage0))]
149116
pub fn atomic_max_rel(dst: &mut int, src: int) -> int;
150-
#[cfg(not(stage0))]
151117
pub fn atomic_max_acqrel(dst: &mut int, src: int) -> int;
152-
#[cfg(not(stage0))]
153118
pub fn atomic_max_relaxed(dst: &mut int, src: int) -> int;
154119

155-
#[cfg(not(stage0))]
156120
pub fn atomic_min(dst: &mut int, src: int) -> int;
157-
#[cfg(not(stage0))]
158121
pub fn atomic_min_acq(dst: &mut int, src: int) -> int;
159-
#[cfg(not(stage0))]
160122
pub fn atomic_min_rel(dst: &mut int, src: int) -> int;
161-
#[cfg(not(stage0))]
162123
pub fn atomic_min_acqrel(dst: &mut int, src: int) -> int;
163-
#[cfg(not(stage0))]
164124
pub fn atomic_min_relaxed(dst: &mut int, src: int) -> int;
165125

166-
#[cfg(not(stage0))]
167126
pub fn atomic_umin(dst: &mut int, src: int) -> int;
168-
#[cfg(not(stage0))]
169127
pub fn atomic_umin_acq(dst: &mut int, src: int) -> int;
170-
#[cfg(not(stage0))]
171128
pub fn atomic_umin_rel(dst: &mut int, src: int) -> int;
172-
#[cfg(not(stage0))]
173129
pub fn atomic_umin_acqrel(dst: &mut int, src: int) -> int;
174-
#[cfg(not(stage0))]
175130
pub fn atomic_umin_relaxed(dst: &mut int, src: int) -> int;
176131

177-
#[cfg(not(stage0))]
178132
pub fn atomic_umax(dst: &mut int, src: int) -> int;
179-
#[cfg(not(stage0))]
180133
pub fn atomic_umax_acq(dst: &mut int, src: int) -> int;
181-
#[cfg(not(stage0))]
182134
pub fn atomic_umax_rel(dst: &mut int, src: int) -> int;
183-
#[cfg(not(stage0))]
184135
pub fn atomic_umax_acqrel(dst: &mut int, src: int) -> int;
185-
#[cfg(not(stage0))]
186136
pub fn atomic_umax_relaxed(dst: &mut int, src: int) -> int;
187137

188138
/// The size of a type in bytes.

trunk/src/libstd/vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,6 @@ macro_rules! iterator {
24462446
}
24472447

24482448
#[inline]
2449-
#[cfg(not(stage0))]
24502449
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
24512450
let exact = Some(((self.end as uint) - (self.ptr as uint)) / size_of::<$elem>());
24522451
(exact, exact)
@@ -3929,7 +3928,6 @@ mod tests {
39293928
}
39303929

39313930
#[test]
3932-
#[cfg(not(stage0))]
39333931
fn test_iterator() {
39343932
use iterator::*;
39353933
let xs = [1, 2, 5, 10, 11];

0 commit comments

Comments
 (0)