]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/deriving/encodable.rs
auto merge of #13704 : edwardw/rust/doc-hidden, r=alexcrichton
[rust.git] / src / libsyntax / ext / deriving / encodable.rs
index 8fdb994ecdd80ba2142e8cf062abc35395565fe6..ec3d4e0078bc6c5c0037088705bff066048a5c97 100644 (file)
@@ -123,7 +123,9 @@ pub fn expand_deriving_encodable(cx: &mut ExtCtxt,
                                            true)),
                 attributes: Vec::new(),
                 const_nonmatching: true,
-                combine_substructure: encodable_substructure,
+                combine_substructure: combine_substructure(|a, b, c| {
+                    encodable_substructure(a, b, c)
+                }),
             })
     };