Skip to content

Commit 6447f4c

Browse files
committed
---
yaml --- r: 140762 b: refs/heads/try2 c: 58a37a1 h: refs/heads/master v: v3
1 parent b004e48 commit 6447f4c

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: db0693ac8d06202a289f451c223eb6f514819ffe
8+
refs/heads/try2: 58a37a1f485a738f6802b42dd39437618b18bbae
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/old_iter.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,26 +128,30 @@ pub fn _eachi<A,IA:BaseIter<A>>(this: &IA, blk: &fn(uint, &A) -> bool) -> bool {
128128
}
129129

130130
#[cfg(stage0)]
131-
pub fn eachi<A,IA:BaseIter<A>>(self: &IA, blk: &fn(uint, &A) -> bool) {
132-
_eachi(self, blk);
131+
pub fn eachi<A,IA:BaseIter<A>>(this: &IA, blk: &fn(uint, &A) -> bool) {
132+
_eachi(this, blk);
133133
}
134134
#[cfg(not(stage0))]
135-
pub fn eachi<A,IA:BaseIter<A>>(self: &IA, blk: &fn(uint, &A) -> bool) -> bool {
136-
_eachi(self, blk)
135+
pub fn eachi<A,IA:BaseIter<A>>(this: &IA, blk: &fn(uint, &A) -> bool) -> bool {
136+
_eachi(this, blk)
137137
}
138138

139139
#[inline(always)]
140140
pub fn all<A,IA:BaseIter<A>>(this: &IA, blk: &fn(&A) -> bool) -> bool {
141141
for this.each |a| {
142-
if !blk(a) { return false; }
142+
if !blk(a) {
143+
return false;
144+
}
143145
}
144146
return true;
145147
}
146148

147149
#[inline(always)]
148150
pub fn any<A,IA:BaseIter<A>>(this: &IA, blk: &fn(&A) -> bool) -> bool {
149151
for this.each |a| {
150-
if blk(a) { return true; }
152+
if blk(a) {
153+
return true;
154+
}
151155
}
152156
return false;
153157
}

branches/try2/src/libstd/priority_queue.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub impl <T:Ord> PriorityQueue<T> {
153153
while pos > start {
154154
let parent = (pos - 1) >> 1;
155155
if new > self.data[parent] {
156-
let x = replace(&mut self.data[parent], rusti::uninit());
156+
let x = replace(&mut self.data[parent], uninit());
157157
move_val_init(&mut self.data[pos], x);
158158
pos = parent;
159159
loop
@@ -172,7 +172,7 @@ pub impl <T:Ord> PriorityQueue<T> {
172172
while pos > start {
173173
let parent = (pos - 1) >> 1;
174174
if new > self.data[parent] {
175-
let x = replace(&mut self.data[parent], rusti::init());
175+
let x = replace(&mut self.data[parent], init());
176176
move_val_init(&mut self.data[pos], x);
177177
pos = parent;
178178
loop
@@ -196,7 +196,7 @@ pub impl <T:Ord> PriorityQueue<T> {
196196
if right < end && !(self.data[child] > self.data[right]) {
197197
child = right;
198198
}
199-
let x = replace(&mut self.data[child], rusti::uninit());
199+
let x = replace(&mut self.data[child], uninit());
200200
move_val_init(&mut self.data[pos], x);
201201
pos = child;
202202
child = 2 * pos + 1;
@@ -219,7 +219,7 @@ pub impl <T:Ord> PriorityQueue<T> {
219219
if right < end && !(self.data[child] > self.data[right]) {
220220
child = right;
221221
}
222-
let x = replace(&mut self.data[child], rusti::init());
222+
let x = replace(&mut self.data[child], init());
223223
move_val_init(&mut self.data[pos], x);
224224
pos = child;
225225
child = 2 * pos + 1;

0 commit comments

Comments
 (0)