]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/deriving/rand.rs
auto merge of #13704 : edwardw/rust/doc-hidden, r=alexcrichton
[rust.git] / src / libsyntax / ext / deriving / rand.rs
index 597e0959de2df8a4a7ebeeb62580f2c2b7ce6146..23877dd29ea79d6c55e909cb7309e8ea33e2416d 100644 (file)
@@ -43,7 +43,9 @@ pub fn expand_deriving_rand(cx: &mut ExtCtxt,
                 ret_ty: Self,
                 attributes: Vec::new(),
                 const_nonmatching: false,
-                combine_substructure: rand_substructure
+                combine_substructure: combine_substructure(|a, b, c| {
+                    rand_substructure(a, b, c)
+                })
             }
         )
     };