about summary refs log tree commit diff
path: root/src/comp/util
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-03-16 14:58:02 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-03-16 14:58:02 -0700
commit54587bdccb7b6771cfc704a30fc0ef2c65824a15 (patch)
tree6f154f9b038e9542b364e87ae887858a96bdb4a9 /src/comp/util
parent23eef4da22d55ad530f349dfd2dd40141258956f (diff)
downloadrust-54587bdccb7b6771cfc704a30fc0ef2c65824a15.tar.gz
rust-54587bdccb7b6771cfc704a30fc0ef2c65824a15.zip
Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. Tweak std lib vec fns in process.
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/common.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 63ec2c692b1..4b4f54818e9 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -68,15 +68,6 @@ fn istr(int i) -> str {
     ret _int.to_str(i, 10u);
 }
 
-
-// FIXME: Weird bug. Due to the way we auto-deref + in +=, we can't append a
-// boxed value to a vector-of-boxes using +=.  Best to figure out a way to fix
-// this. Deref-on-demand or something? It's a hazard of the ambiguity between
-// single-element and vector append.
-fn append[T](&mutable vec[T] v, &T t) {
-    v += t;
-}
-
 //
 // Local Variables:
 // mode: rust