about summary refs log tree commit diff
path: root/src/libstd/map.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-07 18:10:06 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-08 18:19:24 -0700
commit6a0720b439a4692f55d3b9951e74d452a7aef802 (patch)
treed2dd72702f32e0254f7d72dd5782a8b6741d0004 /src/libstd/map.rs
parente997948c8a70d76ffac3c60867d47f98e698988f (diff)
downloadrust-6a0720b439a4692f55d3b9951e74d452a7aef802.tar.gz
rust-6a0720b439a4692f55d3b9951e74d452a7aef802.zip
Convert impls to new syntax
Diffstat (limited to 'src/libstd/map.rs')
-rw-r--r--src/libstd/map.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs
index 695f40fc387..944e9c93e19 100644
--- a/src/libstd/map.rs
+++ b/src/libstd/map.rs
@@ -2,7 +2,6 @@
 
 #[warn(deprecated_mode)];
 
-import chained::hashmap;
 import io::writer_util;
 import to_str::to_str;
 export hashmap, hashfn, eqfn, set, map, chained, hashmap, str_hash;
@@ -127,7 +126,7 @@ mod chained {
         found_after(@entry<K,V>, @entry<K,V>)
     }
 
-    impl private_methods<K, V: copy> for t<K, V> {
+    priv impl<K, V: copy> t<K, V> {
         fn search_rem(k: &K, h: uint, idx: uint,
                       e_root: @entry<K,V>) -> search_result<K,V> {
             let mut e0 = e_root;
@@ -207,7 +206,7 @@ mod chained {
         }
     }
 
-    impl hashmap<K: copy, V: copy> of map<K, V> for t<K, V> {
+    impl<K: copy, V: copy> t<K, V>: map<K, V> {
         fn size() -> uint { self.count }
 
         fn contains_key(+k: K) -> bool {
@@ -328,7 +327,7 @@ mod chained {
         }
     }
 
-    impl hashmap<K: copy to_str, V: to_str copy> of to_str for t<K, V> {
+    impl<K: copy to_str, V: to_str copy> t<K, V>: to_str {
         fn to_writer(wr: io::writer) {
             if self.count == 0u {
                 wr.write_str(~"{}");
@@ -354,7 +353,7 @@ mod chained {
         }
     }
 
-    impl hashmap<K: copy, V: copy> of ops::index<K, V> for t<K, V> {
+    impl<K: copy, V: copy> t<K, V>: ops::index<K, V> {
         pure fn index(&&k: K) -> V {
             unchecked {
                 self.get(k)