From 54587bdccb7b6771cfc704a30fc0ef2c65824a15 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 16 Mar 2011 14:58:02 -0700 Subject: Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. Tweak std lib vec fns in process. --- src/comp/util/common.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/comp/util/common.rs') diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 63ec2c69..4b4f5481 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 -- cgit v1.2.3