From c11ee0fb6719e38820762308d67f70cee000bed8 Mon Sep 17 00:00:00 2001 From: blake2-ppc Date: Tue, 10 Sep 2013 05:50:11 +0200 Subject: std::at_vec and vec: Unify build_sized, build_sized_opt into build These functions have very few users since they are mostly replaced by iterator-based constructions. Convert a few remaining users in-tree, and reduce the number of functions by basically renaming build_sized_opt to build, and removing the other two. This for both the vec and the at_vec versions. --- src/libsyntax/ext/deriving/generic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ext/deriving/generic.rs b/src/libsyntax/ext/deriving/generic.rs index 7050cfbedb7..8221be1bbcb 100644 --- a/src/libsyntax/ext/deriving/generic.rs +++ b/src/libsyntax/ext/deriving/generic.rs @@ -958,7 +958,7 @@ fn create_struct_pattern(cx: @ExtCtxt, // struct_type is definitely not Unknown, since struct_def.fields // must be nonempty to reach here let pattern = if struct_type == Record { - let field_pats = do vec::build |push| { + let field_pats = do vec::build(None) |push| { for (&pat, &(id, _)) in subpats.iter().zip(ident_expr.iter()) { // id is guaranteed to be Some push(ast::FieldPat { ident: id.unwrap(), pat: pat }) -- cgit 1.4.1-3-g733a5