@@ -24,9 +24,9 @@ fn struct_() -> Result<()> {
24
24
impl <T > :: core:: fmt:: Debug for Test <T > {
25
25
fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
26
26
match self {
27
- Test { field: ref __field } => {
27
+ Test { field: ref __field_field } => {
28
28
let mut __builder = :: core:: fmt:: Formatter :: debug_struct( __f, "Test" ) ;
29
- :: core:: fmt:: DebugStruct :: field( & mut __builder, "field" , __field ) ;
29
+ :: core:: fmt:: DebugStruct :: field( & mut __builder, "field" , __field_field ) ;
30
30
:: core:: fmt:: DebugStruct :: finish( & mut __builder)
31
31
}
32
32
}
@@ -52,7 +52,7 @@ fn struct_() -> Result<()> {
52
52
impl <T > :: core:: hash:: Hash for Test <T > {
53
53
fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
54
54
match self {
55
- Test { field: ref __field } => { :: core:: hash:: Hash :: hash( __field , __state) ; }
55
+ Test { field: ref __field_field } => { :: core:: hash:: Hash :: hash( __field_field , __state) ; }
56
56
}
57
57
}
58
58
}
@@ -61,8 +61,8 @@ fn struct_() -> Result<()> {
61
61
#[ inline]
62
62
fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
63
63
match ( self , __other) {
64
- ( Test { field: ref __field } , Test { field: ref __other_field } ) =>
65
- match :: core:: cmp:: Ord :: cmp( __field , __other_field ) {
64
+ ( Test { field: ref __field_field } , Test { field: ref __other_field_field } ) =>
65
+ match :: core:: cmp:: Ord :: cmp( __field_field , __other_field_field ) {
66
66
:: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
67
67
__cmp => __cmp,
68
68
} ,
@@ -74,8 +74,8 @@ fn struct_() -> Result<()> {
74
74
#[ inline]
75
75
fn eq( & self , __other: & Self ) -> bool {
76
76
match ( self , __other) {
77
- ( Test { field: ref __field } , Test { field: ref __other_field } ) =>
78
- true && :: core:: cmp:: PartialEq :: eq( __field , __other_field ) ,
77
+ ( Test { field: ref __field_field } , Test { field: ref __other_field_field } ) =>
78
+ true && :: core:: cmp:: PartialEq :: eq( __field_field , __other_field_field ) ,
79
79
}
80
80
}
81
81
}
@@ -111,9 +111,9 @@ fn tuple() -> Result<()> {
111
111
impl <T > :: core:: fmt:: Debug for Test <T > {
112
112
fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
113
113
match self {
114
- Test ( ref __0 ) => {
114
+ Test ( ref __field_0 ) => {
115
115
let mut __builder = :: core:: fmt:: Formatter :: debug_tuple( __f, "Test" ) ;
116
- :: core:: fmt:: DebugTuple :: field( & mut __builder, __0 ) ;
116
+ :: core:: fmt:: DebugTuple :: field( & mut __builder, __field_0 ) ;
117
117
:: core:: fmt:: DebugTuple :: finish( & mut __builder)
118
118
}
119
119
}
@@ -139,7 +139,7 @@ fn tuple() -> Result<()> {
139
139
impl <T > :: core:: hash:: Hash for Test <T > {
140
140
fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
141
141
match self {
142
- Test ( ref __0 ) => { :: core:: hash:: Hash :: hash( __0 , __state) ; }
142
+ Test ( ref __field_0 ) => { :: core:: hash:: Hash :: hash( __field_0 , __state) ; }
143
143
}
144
144
}
145
145
}
@@ -148,8 +148,8 @@ fn tuple() -> Result<()> {
148
148
#[ inline]
149
149
fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
150
150
match ( self , __other) {
151
- ( Test ( ref __0 ) , Test ( ref __other_0 ) ) =>
152
- match :: core:: cmp:: Ord :: cmp( __0 , __other_0 ) {
151
+ ( Test ( ref __field_0 ) , Test ( ref __other_field_0 ) ) =>
152
+ match :: core:: cmp:: Ord :: cmp( __field_0 , __other_field_0 ) {
153
153
:: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
154
154
__cmp => __cmp,
155
155
} ,
@@ -161,8 +161,8 @@ fn tuple() -> Result<()> {
161
161
#[ inline]
162
162
fn eq( & self , __other: & Self ) -> bool {
163
163
match ( self , __other) {
164
- ( Test ( ref __0 ) , Test ( ref __other_0 ) ) =>
165
- true && :: core:: cmp:: PartialEq :: eq( __0 , __other_0 ) ,
164
+ ( Test ( ref __field_0 ) , Test ( ref __other_field_0 ) ) =>
165
+ true && :: core:: cmp:: PartialEq :: eq( __field_0 , __other_field_0 ) ,
166
166
}
167
167
}
168
168
}
@@ -204,13 +204,13 @@ fn enum_() -> Result<()> {
204
204
#[ cfg( all( not( feature = "nightly" ) , feature = "safe" ) ) ]
205
205
let ord = quote ! {
206
206
match self {
207
- Test :: A { field: ref __field } => :: core:: cmp:: Ordering :: Less ,
207
+ Test :: A { field: ref __field_field } => :: core:: cmp:: Ordering :: Less ,
208
208
Test :: B { } =>
209
209
match __other {
210
210
Test :: A { .. } => :: core:: cmp:: Ordering :: Greater ,
211
211
_ => :: core:: cmp:: Ordering :: Less ,
212
212
} ,
213
- Test :: C ( ref __0 ) =>
213
+ Test :: C ( ref __field_0 ) =>
214
214
match __other {
215
215
Test :: A { .. } | Test :: B { .. } => :: core:: cmp:: Ordering :: Greater ,
216
216
_ => :: core:: cmp:: Ordering :: Less ,
@@ -250,18 +250,18 @@ fn enum_() -> Result<()> {
250
250
impl <T > :: core:: fmt:: Debug for Test <T > {
251
251
fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
252
252
match self {
253
- Test :: A { field: ref __field } => {
253
+ Test :: A { field: ref __field_field } => {
254
254
let mut __builder = :: core:: fmt:: Formatter :: debug_struct( __f, "A" ) ;
255
- :: core:: fmt:: DebugStruct :: field( & mut __builder, "field" , __field ) ;
255
+ :: core:: fmt:: DebugStruct :: field( & mut __builder, "field" , __field_field ) ;
256
256
:: core:: fmt:: DebugStruct :: finish( & mut __builder)
257
257
}
258
258
Test :: B { } => {
259
259
let mut __builder = :: core:: fmt:: Formatter :: debug_struct( __f, "B" ) ;
260
260
:: core:: fmt:: DebugStruct :: finish( & mut __builder)
261
261
}
262
- Test :: C ( ref __0 ) => {
262
+ Test :: C ( ref __field_0 ) => {
263
263
let mut __builder = :: core:: fmt:: Formatter :: debug_tuple( __f, "C" ) ;
264
- :: core:: fmt:: DebugTuple :: field( & mut __builder, __0 ) ;
264
+ :: core:: fmt:: DebugTuple :: field( & mut __builder, __field_0 ) ;
265
265
:: core:: fmt:: DebugTuple :: finish( & mut __builder)
266
266
}
267
267
Test :: D ( ) => {
@@ -293,16 +293,16 @@ fn enum_() -> Result<()> {
293
293
impl <T > :: core:: hash:: Hash for Test <T > {
294
294
fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
295
295
match self {
296
- Test :: A { field: ref __field } => {
296
+ Test :: A { field: ref __field_field } => {
297
297
:: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
298
- :: core:: hash:: Hash :: hash( __field , __state) ;
298
+ :: core:: hash:: Hash :: hash( __field_field , __state) ;
299
299
}
300
300
Test :: B { } => {
301
301
:: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
302
302
}
303
- Test :: C ( ref __0 ) => {
303
+ Test :: C ( ref __field_0 ) => {
304
304
:: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
305
- :: core:: hash:: Hash :: hash( __0 , __state) ;
305
+ :: core:: hash:: Hash :: hash( __field_0 , __state) ;
306
306
}
307
307
Test :: D ( ) => {
308
308
:: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
@@ -321,13 +321,13 @@ fn enum_() -> Result<()> {
321
321
322
322
if __self_disc == __other_disc {
323
323
match ( self , __other) {
324
- ( Test :: A { field: ref __field } , Test :: A { field: ref __other_field } ) =>
325
- match :: core:: cmp:: Ord :: cmp( __field , __other_field ) {
324
+ ( Test :: A { field: ref __field_field } , Test :: A { field: ref __other_field_field } ) =>
325
+ match :: core:: cmp:: Ord :: cmp( __field_field , __other_field_field ) {
326
326
:: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
327
327
__cmp => __cmp,
328
328
} ,
329
- ( Test :: C ( ref __0 ) , Test :: C ( ref __other_0 ) ) =>
330
- match :: core:: cmp:: Ord :: cmp( __0 , __other_0 ) {
329
+ ( Test :: C ( ref __field_0 ) , Test :: C ( ref __other_field_0 ) ) =>
330
+ match :: core:: cmp:: Ord :: cmp( __field_0 , __other_field_0 ) {
331
331
:: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
332
332
__cmp => __cmp,
333
333
} ,
@@ -344,10 +344,10 @@ fn enum_() -> Result<()> {
344
344
fn eq( & self , __other: & Self ) -> bool {
345
345
if :: core:: mem:: discriminant( self ) == :: core:: mem:: discriminant( __other) {
346
346
match ( self , __other) {
347
- ( Test :: A { field: ref __field } , Test :: A { field: ref __other_field } ) =>
348
- true && :: core:: cmp:: PartialEq :: eq( __field , __other_field ) ,
349
- ( Test :: C ( ref __0 ) , Test :: C ( ref __other_0 ) ) =>
350
- true && :: core:: cmp:: PartialEq :: eq( __0 , __other_0 ) ,
347
+ ( Test :: A { field: ref __field_field } , Test :: A { field: ref __other_field_field } ) =>
348
+ true && :: core:: cmp:: PartialEq :: eq( __field_field , __other_field_field ) ,
349
+ ( Test :: C ( ref __field_0 ) , Test :: C ( ref __other_field_0 ) ) =>
350
+ true && :: core:: cmp:: PartialEq :: eq( __field_0 , __other_field_0 ) ,
351
351
_ => true ,
352
352
}
353
353
} else {
0 commit comments