]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax_ext/deriving/cmp/partial_ord.rs
Auto merge of #35856 - phimuemue:master, r=brson
[rust.git] / src / libsyntax_ext / deriving / cmp / partial_ord.rs
index 10a9738742e4486c470f6e531eee3b1c9cefd89f..99d60c43c5457deec8b75c111a56a83acb0d5233 100644 (file)
@@ -88,6 +88,7 @@ macro_rules! md {
         additional_bounds: vec![],
         generics: LifetimeBounds::empty(),
         is_unsafe: false,
+        supports_unions: false,
         methods: methods,
         associated_types: Vec::new(),
     };
@@ -165,7 +166,7 @@ pub fn cs_partial_cmp(cx: &mut ExtCtxt, span: Span, substr: &Substructure) -> P<
         };
 
         let eq_arm = cx.arm(span,
-                            vec![cx.pat_some(span, cx.pat_enum(span, ordering.clone(), vec![]))],
+                            vec![cx.pat_some(span, cx.pat_path(span, ordering.clone()))],
                             old);
         let neq_arm = cx.arm(span,
                              vec![cx.pat_ident(span, test_id)],