@@ -24,9 +24,9 @@ fn struct_() -> Result<()> {
2424 impl <T > :: core:: fmt:: Debug for Test <T > {
2525 fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
2626 match self {
27- Test { field: ref __field } => {
27+ Test { field: ref __field_field } => {
2828 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 ) ;
3030 :: core:: fmt:: DebugStruct :: finish( & mut __builder)
3131 }
3232 }
@@ -52,7 +52,7 @@ fn struct_() -> Result<()> {
5252 impl <T > :: core:: hash:: Hash for Test <T > {
5353 fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
5454 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) ; }
5656 }
5757 }
5858 }
@@ -61,8 +61,8 @@ fn struct_() -> Result<()> {
6161 #[ inline]
6262 fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
6363 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 ) {
6666 :: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
6767 __cmp => __cmp,
6868 } ,
@@ -74,8 +74,8 @@ fn struct_() -> Result<()> {
7474 #[ inline]
7575 fn eq( & self , __other: & Self ) -> bool {
7676 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 ) ,
7979 }
8080 }
8181 }
@@ -111,9 +111,9 @@ fn tuple() -> Result<()> {
111111 impl <T > :: core:: fmt:: Debug for Test <T > {
112112 fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
113113 match self {
114- Test ( ref __0 ) => {
114+ Test ( ref __field_0 ) => {
115115 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 ) ;
117117 :: core:: fmt:: DebugTuple :: finish( & mut __builder)
118118 }
119119 }
@@ -139,7 +139,7 @@ fn tuple() -> Result<()> {
139139 impl <T > :: core:: hash:: Hash for Test <T > {
140140 fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
141141 match self {
142- Test ( ref __0 ) => { :: core:: hash:: Hash :: hash( __0 , __state) ; }
142+ Test ( ref __field_0 ) => { :: core:: hash:: Hash :: hash( __field_0 , __state) ; }
143143 }
144144 }
145145 }
@@ -148,8 +148,8 @@ fn tuple() -> Result<()> {
148148 #[ inline]
149149 fn cmp( & self , __other: & Self ) -> :: core:: cmp:: Ordering {
150150 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 ) {
153153 :: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
154154 __cmp => __cmp,
155155 } ,
@@ -161,8 +161,8 @@ fn tuple() -> Result<()> {
161161 #[ inline]
162162 fn eq( & self , __other: & Self ) -> bool {
163163 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 ) ,
166166 }
167167 }
168168 }
@@ -204,13 +204,13 @@ fn enum_() -> Result<()> {
204204 #[ cfg( all( not( feature = "nightly" ) , feature = "safe" ) ) ]
205205 let ord = quote ! {
206206 match self {
207- Test :: A { field: ref __field } => :: core:: cmp:: Ordering :: Less ,
207+ Test :: A { field: ref __field_field } => :: core:: cmp:: Ordering :: Less ,
208208 Test :: B { } =>
209209 match __other {
210210 Test :: A { .. } => :: core:: cmp:: Ordering :: Greater ,
211211 _ => :: core:: cmp:: Ordering :: Less ,
212212 } ,
213- Test :: C ( ref __0 ) =>
213+ Test :: C ( ref __field_0 ) =>
214214 match __other {
215215 Test :: A { .. } | Test :: B { .. } => :: core:: cmp:: Ordering :: Greater ,
216216 _ => :: core:: cmp:: Ordering :: Less ,
@@ -250,18 +250,18 @@ fn enum_() -> Result<()> {
250250 impl <T > :: core:: fmt:: Debug for Test <T > {
251251 fn fmt( & self , __f: & mut :: core:: fmt:: Formatter <' _>) -> :: core:: fmt:: Result {
252252 match self {
253- Test :: A { field: ref __field } => {
253+ Test :: A { field: ref __field_field } => {
254254 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 ) ;
256256 :: core:: fmt:: DebugStruct :: finish( & mut __builder)
257257 }
258258 Test :: B { } => {
259259 let mut __builder = :: core:: fmt:: Formatter :: debug_struct( __f, "B" ) ;
260260 :: core:: fmt:: DebugStruct :: finish( & mut __builder)
261261 }
262- Test :: C ( ref __0 ) => {
262+ Test :: C ( ref __field_0 ) => {
263263 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 ) ;
265265 :: core:: fmt:: DebugTuple :: finish( & mut __builder)
266266 }
267267 Test :: D ( ) => {
@@ -293,16 +293,16 @@ fn enum_() -> Result<()> {
293293 impl <T > :: core:: hash:: Hash for Test <T > {
294294 fn hash<__H: :: core:: hash:: Hasher >( & self , __state: & mut __H) {
295295 match self {
296- Test :: A { field: ref __field } => {
296+ Test :: A { field: ref __field_field } => {
297297 :: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
298- :: core:: hash:: Hash :: hash( __field , __state) ;
298+ :: core:: hash:: Hash :: hash( __field_field , __state) ;
299299 }
300300 Test :: B { } => {
301301 :: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
302302 }
303- Test :: C ( ref __0 ) => {
303+ Test :: C ( ref __field_0 ) => {
304304 :: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
305- :: core:: hash:: Hash :: hash( __0 , __state) ;
305+ :: core:: hash:: Hash :: hash( __field_0 , __state) ;
306306 }
307307 Test :: D ( ) => {
308308 :: core:: hash:: Hash :: hash( & :: core:: mem:: discriminant( self ) , __state) ;
@@ -321,13 +321,13 @@ fn enum_() -> Result<()> {
321321
322322 if __self_disc == __other_disc {
323323 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 ) {
326326 :: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
327327 __cmp => __cmp,
328328 } ,
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 ) {
331331 :: core:: cmp:: Ordering :: Equal => :: core:: cmp:: Ordering :: Equal ,
332332 __cmp => __cmp,
333333 } ,
@@ -344,10 +344,10 @@ fn enum_() -> Result<()> {
344344 fn eq( & self , __other: & Self ) -> bool {
345345 if :: core:: mem:: discriminant( self ) == :: core:: mem:: discriminant( __other) {
346346 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 ) ,
351351 _ => true ,
352352 }
353353 } else {
0 commit comments