about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-09-25 18:27:45 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-09-25 18:27:55 -0700
commit3023bd872949ce4ba45e13dbcd30d6b98963d0ed (patch)
treece41435fb14227e5baadb6cb8d0a9f738077ea12 /src/libstd
parentab6318803e1764e6e894441c2829f9b47acbf298 (diff)
downloadrust-3023bd872949ce4ba45e13dbcd30d6b98963d0ed.tar.gz
rust-3023bd872949ce4ba45e13dbcd30d6b98963d0ed.zip
Demode dvec
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/bitv.rs2
-rw-r--r--src/libstd/ebml.rs2
-rw-r--r--src/libstd/map.rs2
-rw-r--r--src/libstd/smallintmap.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs
index 2c0a3716411..0ff0c0b6457 100644
--- a/src/libstd/bitv.rs
+++ b/src/libstd/bitv.rs
@@ -556,7 +556,7 @@ pure fn land(w0: uint, w1: uint) -> uint { return w0 & w1; }
 pure fn right(_w0: uint, w1: uint) -> uint { return w1; }
 
 impl Bitv: ops::Index<uint,bool> {
-    pure fn index(&&i: uint) -> bool {
+    pure fn index(+i: uint) -> bool {
         self.get(i)
     }
 }
diff --git a/src/libstd/ebml.rs b/src/libstd/ebml.rs
index db41c428cbe..9b7f7a79f22 100644
--- a/src/libstd/ebml.rs
+++ b/src/libstd/ebml.rs
@@ -42,7 +42,7 @@ type Doc = {data: @~[u8], start: uint, end: uint};
 type TaggedDoc = {tag: uint, doc: Doc};
 
 impl Doc: ops::Index<uint,Doc> {
-    pure fn index(&&tag: uint) -> Doc {
+    pure fn index(+tag: uint) -> Doc {
         unsafe {
             get_doc(self, tag)
         }
diff --git a/src/libstd/map.rs b/src/libstd/map.rs
index 9bdf6e15ee5..06df5a9e8ae 100644
--- a/src/libstd/map.rs
+++ b/src/libstd/map.rs
@@ -356,7 +356,7 @@ mod chained {
     }
 
     impl<K:Eq IterBytes Hash Copy, V: Copy> T<K, V>: ops::Index<K, V> {
-        pure fn index(&&k: K) -> V {
+        pure fn index(+k: K) -> V {
             unsafe {
                 self.get(k)
             }
diff --git a/src/libstd/smallintmap.rs b/src/libstd/smallintmap.rs
index 8ce1ebde127..5fc8ead59fd 100644
--- a/src/libstd/smallintmap.rs
+++ b/src/libstd/smallintmap.rs
@@ -132,7 +132,7 @@ impl<V: Copy> SmallIntMap<V>: map::Map<uint, V> {
 }
 
 impl<V: Copy> SmallIntMap<V>: ops::Index<uint, V> {
-    pure fn index(&&key: uint) -> V {
+    pure fn index(+key: uint) -> V {
         unsafe {
             get(self, key)
         }