about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-06-28 23:44:55 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-06-29 17:37:03 -0400
commit052f28a8083c624a8f0a892893f9a059906e15c5 (patch)
tree724acd57e40005155bb048e89b7af3db5de8d617
parenteee7accedb4b529dac67b2a50c4e25e3f47777d8 (diff)
downloadrust-052f28a8083c624a8f0a892893f9a059906e15c5.tar.gz
rust-052f28a8083c624a8f0a892893f9a059906e15c5.zip
minor vec cleanup
* hide the rustrt module in the docs
* remove the useless `traits` module wrapping the `Add` impl
-rw-r--r--src/libstd/vec.rs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index 4196fbac0be..cff4ac10145 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -23,6 +23,7 @@ use iter::FromIter;
 use kinds::Copy;
 use libc;
 use num::Zero;
+use ops::Add;
 use option::{None, Option, Some};
 use ptr::to_unsafe_ptr;
 use ptr;
@@ -40,6 +41,7 @@ use util;
 
 #[cfg(not(test))] use cmp::Equiv;
 
+#[doc(hidden)]
 pub mod rustrt {
     use libc;
     use vec::raw;
@@ -1180,16 +1182,10 @@ impl<T:Ord> Ord for @[T] {
 }
 
 #[cfg(not(test))]
-pub mod traits {
-    use kinds::Copy;
-    use ops::Add;
-    use vec::append;
-
-    impl<'self,T:Copy> Add<&'self [T],~[T]> for ~[T] {
-        #[inline]
-        fn add(&self, rhs: & &'self [T]) -> ~[T] {
-            append(copy *self, (*rhs))
-        }
+impl<'self,T:Copy> Add<&'self [T], ~[T]> for ~[T] {
+    #[inline]
+    fn add(&self, rhs: & &'self [T]) -> ~[T] {
+        append(copy *self, (*rhs))
     }
 }