@@ -36,6 +36,7 @@ fn fallback(input: &DeriveInput, error: syn::Error) -> TokenStream {
36
36
#error
37
37
38
38
#[ allow( unused_qualifications) ]
39
+ #[ automatically_derived]
39
40
impl #impl_generics std:: error:: Error for #ty #ty_generics #where_clause
40
41
where
41
42
// Work around trivial bounds being unstable.
@@ -44,6 +45,7 @@ fn fallback(input: &DeriveInput, error: syn::Error) -> TokenStream {
44
45
{ }
45
46
46
47
#[ allow( unused_qualifications) ]
48
+ #[ automatically_derived]
47
49
impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
48
50
fn fmt( & self , __formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
49
51
:: core:: unreachable!( )
@@ -178,6 +180,7 @@ fn impl_struct(input: Struct) -> TokenStream {
178
180
let display_where_clause = display_inferred_bounds. augment_where_clause ( input. generics ) ;
179
181
quote ! {
180
182
#[ allow( unused_qualifications) ]
183
+ #[ automatically_derived]
181
184
impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #display_where_clause {
182
185
#[ allow( clippy:: used_underscore_binding) ]
183
186
fn fmt( & self , __formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
@@ -193,6 +196,7 @@ fn impl_struct(input: Struct) -> TokenStream {
193
196
let body = from_initializer ( from_field, backtrace_field) ;
194
197
quote ! {
195
198
#[ allow( unused_qualifications) ]
199
+ #[ automatically_derived]
196
200
impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
197
201
#[ allow( deprecated) ]
198
202
fn from( source: #from) -> Self {
@@ -211,6 +215,7 @@ fn impl_struct(input: Struct) -> TokenStream {
211
215
212
216
quote ! {
213
217
#[ allow( unused_qualifications) ]
218
+ #[ automatically_derived]
214
219
impl #impl_generics std:: error:: Error for #ty #ty_generics #error_where_clause {
215
220
#source_method
216
221
#provide_method
@@ -427,6 +432,7 @@ fn impl_enum(input: Enum) -> TokenStream {
427
432
let display_where_clause = display_inferred_bounds. augment_where_clause ( input. generics ) ;
428
433
Some ( quote ! {
429
434
#[ allow( unused_qualifications) ]
435
+ #[ automatically_derived]
430
436
impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #display_where_clause {
431
437
fn fmt( & self , __formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
432
438
#use_as_display
@@ -449,6 +455,7 @@ fn impl_enum(input: Enum) -> TokenStream {
449
455
let body = from_initializer ( from_field, backtrace_field) ;
450
456
Some ( quote ! {
451
457
#[ allow( unused_qualifications) ]
458
+ #[ automatically_derived]
452
459
impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
453
460
#[ allow( deprecated) ]
454
461
fn from( source: #from) -> Self {
@@ -467,6 +474,7 @@ fn impl_enum(input: Enum) -> TokenStream {
467
474
468
475
quote ! {
469
476
#[ allow( unused_qualifications) ]
477
+ #[ automatically_derived]
470
478
impl #impl_generics std:: error:: Error for #ty #ty_generics #error_where_clause {
471
479
#source_method
472
480
#provide_method
0 commit comments