Provide better names for builtin deriving-generated attributes

This commit is contained in:
James Sanderson
2018-04-15 20:51:10 +01:00
parent 21dae950be
commit 4ae9488ce8
10 changed files with 19 additions and 15 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],
args: vec![(fmtr, "_f")],
ret_ty: Literal(path_std!(cx, fmt::Result)),
attributes: Vec::new(),
is_unsafe: false,