Skip to content

Commit 58a37a1

Browse files
committed
libstd: Fix merge fallout.
1 parent db0693a commit 58a37a1

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/libcore/old_iter.rs

+10-6
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
}

src/libstd/priority_queue.rs

+4-4
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)