about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-09-10 05:50:11 +0200
committerblake2-ppc <blake2-ppc>2013-09-10 05:50:11 +0200
commitc11ee0fb6719e38820762308d67f70cee000bed8 (patch)
tree256b9032dc36f372e00882660c1ee221ee5129e5 /src/libsyntax/ext/deriving
parent5f69a58e0ccf3d85b5f12f26ecf78ee7e7fec270 (diff)
downloadrust-c11ee0fb6719e38820762308d67f70cee000bed8.tar.gz
rust-c11ee0fb6719e38820762308d67f70cee000bed8.zip
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.
Diffstat (limited to 'src/libsyntax/ext/deriving')
-rw-r--r--src/libsyntax/ext/deriving/generic.rs2
1 files changed, 1 insertions, 1 deletions
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 })