Don't prepend deriving-generated attributes with _

This commit is contained in:
James Sanderson
2018-04-19 13:57:43 +01:00
parent 24d410abd6
commit a3241d1350
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ pub fn expand_deriving_debug(cx: &mut ExtCtxt,
name: "fmt",
generics: LifetimeBounds::empty(),
explicit_self: borrowed_explicit_self(),
args: vec![(fmtr, "_f")],
args: vec![(fmtr, "f")],
ret_ty: Literal(path_std!(cx, fmt::Result)),
attributes: Vec::new(),
is_unsafe: false,