Skip to content

Commit

Permalink
Auto merge of rust-lang#117727 - saethlin:inline-derived-fmt, r=<try>
Browse files Browse the repository at this point in the history
Emit #[inline] on derive(Debug)

Breaking out part of rust-lang#116583 (comment)

r? `@ghost`
  • Loading branch information
bors committed Nov 8, 2023
2 parents 90fdc1f + 857e13c commit bdd5a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_builtin_macros/src/deriving/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: attributes: thin_vec![cx.attr_word(sym::inline, span)],
fieldless_variants_strategy:
FieldlessVariantsStrategy::SpecializeIfAllVariantsFieldless,
combine_substructure: combine_substructure(Box::new(|a, b, c| {
Expand Down

0 comments on commit bdd5a9a

Please sign in to comment.