]> git.proxmox.com Git - rustc.git/blobdiff - src/libsyntax_ext/deriving/debug.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / libsyntax_ext / deriving / debug.rs
index a31c695e360490e7e6077f4ce995c3514f028d6a..f367fed9cc2ceb52b788b75b5d40e6d960b86b5a 100644 (file)
@@ -35,6 +35,7 @@ pub fn expand_deriving_debug(cx: &mut ExtCtxt,
         additional_bounds: Vec::new(),
         generics: LifetimeBounds::empty(),
         is_unsafe: false,
+        supports_unions: false,
         methods: vec![MethodDef {
                           name: "fmt",
                           generics: LifetimeBounds::empty(),
@@ -77,7 +78,7 @@ fn show_substructure(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<E
 
     let mut stmts = match *substr.fields {
         Struct(_, ref fields) |
-        EnumMatching(_, _, ref fields) => {
+        EnumMatching(.., ref fields) => {
             let mut stmts = vec![];
             if !is_struct {
                 // tuple struct/"normal" variant