about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-05-12 17:36:53 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-05-12 17:36:53 -0700
commit58a37a1f485a738f6802b42dd39437618b18bbae (patch)
tree837010feec6db4c5c2f9be6eb1c62de90e9d57b8
parentdb0693ac8d06202a289f451c223eb6f514819ffe (diff)
libstd: Fix merge fallout.
-rw-r--r--src/libcore/old_iter.rs16
-rw-r--r--src/libstd/priority_queue.rs8
2 files changed, 14 insertions, 10 deletions
diff --git a/src/libcore/old_iter.rs b/src/libcore/old_iter.rs
index 95bc8872c91..13d8fd26654 100644
--- a/src/libcore/old_iter.rs
+++ b/src/libcore/old_iter.rs
@@ -128,18 +128,20 @@ pub fn _eachi<A,IA:BaseIter<A>>(this: &IA, blk: &fn(uint, &A) -> bool) -> bool {
 }
 
 #[cfg(stage0)]
-pub fn eachi<A,IA:BaseIter<A>>(self: &IA, blk: &fn(uint, &A) -> bool) {
-    _eachi(self, blk);
+pub fn eachi<A,IA:BaseIter<A>>(this: &IA, blk: &fn(uint, &A) -> bool) {
+    _eachi(this, blk);
 }
 #[cfg(not(stage0))]
-pub fn eachi<A,IA:BaseIter<A>>(self: &IA, blk: &fn(uint, &A) -> bool) -> bool {
-    _eachi(self, blk)
+pub fn eachi<A,IA:BaseIter<A>>(this: &IA, blk: &fn(uint, &A) -> bool) -> bool {
+    _eachi(this, blk)
 }
 
 #[inline(always)]
 pub fn all<A,IA:BaseIter<A>>(this: &IA, blk: &fn(&A) -> bool) -> bool {
     for this.each |a| {
-        if !blk(a) { return false; }
+        if !blk(a) {
+            return false;
+        }
     }
     return true;
 }
@@ -147,7 +149,9 @@ pub fn all<A,IA:BaseIter<A>>(this: &IA, blk: &fn(&A) -> bool) -> bool {
 #[inline(always)]
 pub fn any<A,IA:BaseIter<A>>(this: &IA, blk: &fn(&A) -> bool) -> bool {
     for this.each |a| {
-        if blk(a) { return true; }
+        if blk(a) {
+            return true;
+        }
     }
     return false;
 }
diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs
index 5b3f3e6efa7..c5ab1a7719c 100644
--- a/src/libstd/priority_queue.rs
+++ b/src/libstd/priority_queue.rs
@@ -153,7 +153,7 @@ pub impl <T:Ord> PriorityQueue<T> {
             while pos > start {
                 let parent = (pos - 1) >> 1;
                 if new > self.data[parent] {
-                    let x = replace(&mut self.data[parent], rusti::uninit());
+                    let x = replace(&mut self.data[parent], uninit());
                     move_val_init(&mut self.data[pos], x);
                     pos = parent;
                     loop
@@ -172,7 +172,7 @@ pub impl <T:Ord> PriorityQueue<T> {
             while pos > start {
                 let parent = (pos - 1) >> 1;
                 if new > self.data[parent] {
-                    let x = replace(&mut self.data[parent], rusti::init());
+                    let x = replace(&mut self.data[parent], init());
                     move_val_init(&mut self.data[pos], x);
                     pos = parent;
                     loop
@@ -196,7 +196,7 @@ pub impl <T:Ord> PriorityQueue<T> {
                 if right < end && !(self.data[child] > self.data[right]) {
                     child = right;
                 }
-                let x = replace(&mut self.data[child], rusti::uninit());
+                let x = replace(&mut self.data[child], uninit());
                 move_val_init(&mut self.data[pos], x);
                 pos = child;
                 child = 2 * pos + 1;
@@ -219,7 +219,7 @@ pub impl <T:Ord> PriorityQueue<T> {
                 if right < end && !(self.data[child] > self.data[right]) {
                     child = right;
                 }
-                let x = replace(&mut self.data[child], rusti::init());
+                let x = replace(&mut self.data[child], init());
                 move_val_init(&mut self.data[pos], x);
                 pos = child;
                 child = 2 * pos + 1;