about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-02-27 13:45:37 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-02-28 11:32:26 -0800
commit2859c1ac6d760876282471ae57fee2e5731f85d5 (patch)
tree6fe22be7c7b742fc4de6aee8c45cbc011efb181b /src/libstd
parent09a2b4e5992a0508c6ea91c030ccee11151f67ac (diff)
downloadrust-2859c1ac6d760876282471ae57fee2e5731f85d5.tar.gz
rust-2859c1ac6d760876282471ae57fee2e5731f85d5.zip
librustc: Enforce cross-crate method privacy
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/oldmap.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/oldmap.rs b/src/libstd/oldmap.rs
index c1227f6b077..1d21f749b32 100644
--- a/src/libstd/oldmap.rs
+++ b/src/libstd/oldmap.rs
@@ -134,7 +134,9 @@ pub mod chained {
             }
             self.chains = new_chains;
         }
+    }
 
+    pub impl<K:Eq + IterBytes + Hash,V> T<K, V> {
         pure fn each_entry(blk: fn(@Entry<K,V>) -> bool) {
             // n.b. we can't use vec::iter() here because self.chains
             // is stored in a mutable location.