macros: init MethodDef.unify_fieldless_variants to false

AFAICT this field is irrelevant to us, but it still must be initialized.
This commit is contained in:
Josh Stone 2016-05-18 16:24:33 -07:00
parent ace0951f2a
commit 0adac57e11
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt,
MethodDef {
name: "from_i64",
is_unsafe: false,
unify_fieldless_variants: false,
generics: LifetimeBounds::empty(),
explicit_self: None,
args: vec!(Literal(path_local!(i64))),
@ -91,6 +92,7 @@ pub fn expand_deriving_from_primitive(cx: &mut ExtCtxt,
MethodDef {
name: "from_u64",
is_unsafe: false,
unify_fieldless_variants: false,
generics: LifetimeBounds::empty(),
explicit_self: None,
args: vec!(Literal(path_local!(u64))),