1
Fork 0

Emit #[inline] on derive(Debug)

This commit is contained in:
Ben Kimock 2023-11-08 17:36:43 -05:00
parent 90fdc1fc27
commit d32d9238cf
3 changed files with 23 additions and 3 deletions

View file

@ -33,7 +33,7 @@ pub fn expand_deriving_debug(
explicit_self: true,
nonself_args: vec![(fmtr, sym::f)],
ret_ty: Path(path_std!(fmt::Result)),
attributes: ast::AttrVec::new(),
attributes: thin_vec![cx.attr_word(sym::inline, span)],
fieldless_variants_strategy:
FieldlessVariantsStrategy::SpecializeIfAllVariantsFieldless,
combine_substructure: combine_substructure(Box::new(|a, b, c| {