Skip to content

Commit a317db1

Browse files
committed
Emit #[inline] on derive(Debug)
1 parent 90fdc1f commit a317db1

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_builtin_macros/src/deriving

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/deriving/debug.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn expand_deriving_debug(
3333
explicit_self: true,
3434
nonself_args: vec![(fmtr, sym::f)],
3535
ret_ty: Path(path_std!(fmt::Result)),
36-
attributes: ast::AttrVec::new(),
36+
attributes: thin_vec![cx.attr_word(sym::inline, span)],
3737
fieldless_variants_strategy:
3838
FieldlessVariantsStrategy::SpecializeIfAllVariantsFieldless,
3939
combine_substructure: combine_substructure(Box::new(|a, b, c| {

0 commit comments

Comments
 (0)