From 09e591c12fcfef0533c113eca7dab59cd770e521 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 1 Jul 2011 12:46:14 -0700 Subject: rustc: Use interior vectors for tag type parameters --- src/comp/util/ppaux.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/comp/util') diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index e3eb707dbf5..58ed9b6157c 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -1,4 +1,5 @@ import std::io; +import std::ivec; import std::vec; import std::str; import std::int; @@ -118,9 +119,9 @@ fn ty_to_str(&ctxt cx, &t typ) -> str { // The user should never see this if the cname is set properly! s += ""; - if (vec::len[t](tps) > 0u) { - auto f = bind ty_to_str(cx, _); - auto strs = vec::map[t, str](f, tps); + if (ivec::len[t](tps) > 0u) { + let vec[str] strs = []; + for (t typ in tps) { strs += [ty_to_str(cx, typ)]; } s += "[" + str::connect(strs, ",") + "]"; } } -- cgit 1.4.1-3-g733a5