diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-07-12 16:35:02 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-07-12 16:35:02 -0700 |
| commit | e038e8e52bebe33ca2d949122bf876bbb2d97936 (patch) | |
| tree | abc2da93f7d99508a7fb0737e33a1eb8059068f8 /src/comp/syntax | |
| parent | 60cffd711655d4755f825a8495d2d1629bc10e98 (diff) | |
| download | rust-e038e8e52bebe33ca2d949122bf876bbb2d97936.tar.gz rust-e038e8e52bebe33ca2d949122bf876bbb2d97936.zip | |
rustc: Move ppaux away from exterior vectors
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/fold.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/comp/syntax/fold.rs b/src/comp/syntax/fold.rs index a7692490bcc..929f0bc3f10 100644 --- a/src/comp/syntax/fold.rs +++ b/src/comp/syntax/fold.rs @@ -2,9 +2,7 @@ import syntax::codemap::span; import ast::*; import std::ivec; -import std::vec; import std::option; -import vec::map; export ast_fold_precursor; export ast_fold; diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index d4510a9c293..8875208e2a8 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -1548,12 +1548,8 @@ fn constr_arg_to_str[T](&fn(&T) -> str f, &ast::constr_arg_general_[T] c) -> fn uint_to_str(&uint i) -> str { ret uint::str(i); } fn ast_constr_to_str(&@ast::constr c) -> str { - // TODO: Remove this vec->ivec conversion. - auto cags = ~[]; - for (@ast::constr_arg_general[uint] cag in c.node.args) { - cags += ~[cag]; - } - ret ast::path_to_str(c.node.path) + constr_args_to_str(uint_to_str, cags); + ret ast::path_to_str(c.node.path) + + constr_args_to_str(uint_to_str, c.node.args); } fn ast_constrs_str(&(@ast::constr)[] constrs) -> str { |
