Emit #[inline] on derive(Debug) · rust-lang/rust@d32d923 (original) (raw)

`@@ -33,6 +33,7 @@ impl ::core::clone::Clone for Empty {

`

33

33

`impl ::core:📑:Copy for Empty { }

`

34

34

`#[automatically_derived]

`

35

35

`impl ::core::fmt::Debug for Empty {

`

``

36

`+

#[inline]

`

36

37

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

37

38

` ::core::fmt::Formatter::write_str(f, "Empty")

`

38

39

` }

`

`@@ -97,6 +98,7 @@ impl ::core::clone::Clone for Point {

`

97

98

`impl ::core:📑:Copy for Point { }

`

98

99

`#[automatically_derived]

`

99

100

`impl ::core::fmt::Debug for Point {

`

``

101

`+

#[inline]

`

100

102

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

101

103

` ::core::fmt::Formatter::debug_struct_field2_finish(f, "Point", "x",

`

102

104

` &self.x, "y", &&self.y)

`

`@@ -183,6 +185,7 @@ impl ::core::clone::Clone for PackedPoint {

`

183

185

`impl ::core:📑:Copy for PackedPoint { }

`

184

186

`#[automatically_derived]

`

185

187

`impl ::core::fmt::Debug for PackedPoint {

`

``

188

`+

#[inline]

`

186

189

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

187

190

` ::core::fmt::Formatter::debug_struct_field2_finish(f, "PackedPoint",

`

188

191

` "x", &{ self.x }, "y", &&{ self.y })

`

`@@ -276,6 +279,7 @@ impl ::core::clone::Clone for Big {

`

276

279

`impl ::core:📑:Copy for Big { }

`

277

280

`#[automatically_derived]

`

278

281

`impl ::core::fmt::Debug for Big {

`

``

282

`+

#[inline]

`

279

283

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

280

284

` let names: &'static _ =

`

281

285

` &["b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8"];

`

`@@ -475,6 +479,7 @@ impl Copy for PackedManualCopy {}

`

475

479

`struct Unsized([u32]);

`

476

480

`#[automatically_derived]

`

477

481

`impl ::core::fmt::Debug for Unsized {

`

``

482

`+

#[inline]

`

478

483

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

479

484

` ::core::fmt::Formatter::debug_tuple_field1_finish(f, "Unsized",

`

480

485

` &&self.0)

`

`@@ -527,6 +532,7 @@ impl ::core::cmp::Ord for Unsized {

`

527

532

`struct PackedUnsizedU8([u8]);

`

528

533

`#[automatically_derived]

`

529

534

`impl ::core::fmt::Debug for PackedUnsizedU8 {

`

``

535

`+

#[inline]

`

530

536

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

531

537

` ::core::fmt::Formatter::debug_tuple_field1_finish(f,

`

532

538

` "PackedUnsizedU8", &&self.0)

`

`@@ -569,6 +575,7 @@ impl<T: ::core:📑:Copy + Trait, U: ::core:📑:Copy>

`

569

575

`#[automatically_derived]

`

570

576

`impl<T: ::core::fmt::Debug + Trait, U: ::core::fmt::Debug> ::core::fmt::Debug

`

571

577

` for Generic<T, U> where T::A: ::core::fmt::Debug {

`

``

578

`+

#[inline]

`

572

579

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

573

580

` ::core::fmt::Formatter::debug_struct_field3_finish(f, "Generic", "t",

`

574

581

` &self.t, "ta", &self.ta, "u", &&self.u)

`

`@@ -687,6 +694,7 @@ impl<T: ::core::fmt::Debug + ::core:📑:Copy + Trait,

`

687

694

` U: ::core::fmt::Debug + ::core:📑:Copy> ::core::fmt::Debug for

`

688

695

` PackedGeneric<T, U> where T::A: ::core::fmt::Debug + ::core:📑:Copy

`

689

696

` {

`

``

697

`+

#[inline]

`

690

698

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

691

699

` ::core::fmt::Formatter::debug_tuple_field3_finish(f, "PackedGeneric",

`

692

700

` &{ self.0 }, &{ self.1 }, &&{ self.2 })

`

`@@ -797,6 +805,7 @@ impl ::core::clone::Clone for Enum0 {

`

797

805

`impl ::core:📑:Copy for Enum0 { }

`

798

806

`#[automatically_derived]

`

799

807

`impl ::core::fmt::Debug for Enum0 {

`

``

808

`+

#[inline]

`

800

809

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

801

810

` match *self {}

`

802

811

` }

`

`@@ -856,6 +865,7 @@ impl ::core::clone::Clone for Enum1 {

`

856

865

`}

`

857

866

`#[automatically_derived]

`

858

867

`impl ::core::fmt::Debug for Enum1 {

`

``

868

`+

#[inline]

`

859

869

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

860

870

` match self {

`

861

871

` Enum1::Single { x: __self_0 } =>

`

`@@ -932,6 +942,7 @@ impl ::core::clone::Clone for Fieldless1 {

`

932

942

`}

`

933

943

`#[automatically_derived]

`

934

944

`impl ::core::fmt::Debug for Fieldless1 {

`

``

945

`+

#[inline]

`

935

946

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

936

947

` ::core::fmt::Formatter::write_str(f, "A")

`

937

948

` }

`

`@@ -995,6 +1006,7 @@ impl ::core::clone::Clone for Fieldless {

`

995

1006

`impl ::core:📑:Copy for Fieldless { }

`

996

1007

`#[automatically_derived]

`

997

1008

`impl ::core::fmt::Debug for Fieldless {

`

``

1009

`+

#[inline]

`

998

1010

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

999

1011

` ::core::fmt::Formatter::write_str(f,

`

1000

1012

` match self {

`

`@@ -1083,6 +1095,7 @@ impl ::core::clone::Clone for Mixed {

`

1083

1095

`impl ::core:📑:Copy for Mixed { }

`

1084

1096

`#[automatically_derived]

`

1085

1097

`impl ::core::fmt::Debug for Mixed {

`

``

1098

`+

#[inline]

`

1086

1099

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

1087

1100

` match self {

`

1088

1101

` Mixed::P => ::core::fmt::Formatter::write_str(f, "P"),

`

`@@ -1217,6 +1230,7 @@ impl ::core::clone::Clone for Fielded {

`

1217

1230

`}

`

1218

1231

`#[automatically_derived]

`

1219

1232

`impl ::core::fmt::Debug for Fielded {

`

``

1233

`+

#[inline]

`

1220

1234

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

1221

1235

` match self {

`

1222

1236

` Fielded::X(__self_0) =>

`

`@@ -1341,6 +1355,7 @@ impl<T: ::core:📑:Copy, U: ::core:📑:Copy> ::core:📑:Copy

`

1341

1355

`#[automatically_derived]

`

1342

1356

`impl<T: ::core::fmt::Debug, U: ::core::fmt::Debug> ::core::fmt::Debug for

`

1343

1357

` EnumGeneric<T, U> {

`

``

1358

`+

#[inline]

`

1344

1359

` fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

`

1345

1360

` match self {

`

1346

1361

` EnumGeneric::One(__self_0) =>

`