about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-05-19 11:32:09 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-08 21:29:57 -0700
commit50942c7695783875bd2161596036a52755ffb09c (patch)
tree0d8ddd4e8d3a58c33de17eeb966684f6796d4547 /src/libsyntax
parent443a1cdf949fad31c5a851be02017d09ce09f318 (diff)
downloadrust-50942c7695783875bd2161596036a52755ffb09c.tar.gz
rust-50942c7695783875bd2161596036a52755ffb09c.zip
core: Rename `container` mod to `collections`. Closes #12543
Also renames the `Container` trait to `Collection`.

[breaking-change]
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/owned_slice.rs2
-rw-r--r--src/libsyntax/util/small_vector.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/owned_slice.rs b/src/libsyntax/owned_slice.rs
index 28d63ea071a..016dd879dcd 100644
--- a/src/libsyntax/owned_slice.rs
+++ b/src/libsyntax/owned_slice.rs
@@ -121,7 +121,7 @@ impl<T: PartialEq> PartialEq for OwnedSlice<T> {
 
 impl<T: Eq> Eq for OwnedSlice<T> {}
 
-impl<T> Container for OwnedSlice<T> {
+impl<T> Collection for OwnedSlice<T> {
     fn len(&self) -> uint { self.len }
 }
 
diff --git a/src/libsyntax/util/small_vector.rs b/src/libsyntax/util/small_vector.rs
index 693407b854f..a3b2c23dfdf 100644
--- a/src/libsyntax/util/small_vector.rs
+++ b/src/libsyntax/util/small_vector.rs
@@ -23,7 +23,7 @@ enum SmallVectorRepr<T> {
     Many(Vec<T> ),
 }
 
-impl<T> Container for SmallVector<T> {
+impl<T> Collection for SmallVector<T> {
     fn len(&self) -> uint {
         match self.repr {
             Zero => 0,