@@ -36,6 +36,7 @@ fn fallback(input: &DeriveInput, error: syn::Error) -> TokenStream {
3636 #error
3737
3838 #[ allow( unused_qualifications) ]
39+ #[ automatically_derived]
3940 impl #impl_generics std:: error:: Error for #ty #ty_generics #where_clause
4041 where
4142 // Work around trivial bounds being unstable.
@@ -44,6 +45,7 @@ fn fallback(input: &DeriveInput, error: syn::Error) -> TokenStream {
4445 { }
4546
4647 #[ allow( unused_qualifications) ]
48+ #[ automatically_derived]
4749 impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
4850 fn fmt( & self , __formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
4951 :: core:: unreachable!( )
@@ -178,6 +180,7 @@ fn impl_struct(input: Struct) -> TokenStream {
178180 let display_where_clause = display_inferred_bounds. augment_where_clause ( input. generics ) ;
179181 quote ! {
180182 #[ allow( unused_qualifications) ]
183+ #[ automatically_derived]
181184 impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #display_where_clause {
182185 #[ allow( clippy:: used_underscore_binding) ]
183186 fn fmt( & self , __formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
@@ -193,6 +196,7 @@ fn impl_struct(input: Struct) -> TokenStream {
193196 let body = from_initializer ( from_field, backtrace_field) ;
194197 quote ! {
195198 #[ allow( unused_qualifications) ]
199+ #[ automatically_derived]
196200 impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
197201 #[ allow( deprecated) ]
198202 fn from( source: #from) -> Self {
@@ -211,6 +215,7 @@ fn impl_struct(input: Struct) -> TokenStream {
211215
212216 quote ! {
213217 #[ allow( unused_qualifications) ]
218+ #[ automatically_derived]
214219 impl #impl_generics std:: error:: Error for #ty #ty_generics #error_where_clause {
215220 #source_method
216221 #provide_method
@@ -427,6 +432,7 @@ fn impl_enum(input: Enum) -> TokenStream {
427432 let display_where_clause = display_inferred_bounds. augment_where_clause ( input. generics ) ;
428433 Some ( quote ! {
429434 #[ allow( unused_qualifications) ]
435+ #[ automatically_derived]
430436 impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #display_where_clause {
431437 fn fmt( & self , __formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
432438 #use_as_display
@@ -449,6 +455,7 @@ fn impl_enum(input: Enum) -> TokenStream {
449455 let body = from_initializer ( from_field, backtrace_field) ;
450456 Some ( quote ! {
451457 #[ allow( unused_qualifications) ]
458+ #[ automatically_derived]
452459 impl #impl_generics :: core:: convert:: From <#from> for #ty #ty_generics #where_clause {
453460 #[ allow( deprecated) ]
454461 fn from( source: #from) -> Self {
@@ -467,6 +474,7 @@ fn impl_enum(input: Enum) -> TokenStream {
467474
468475 quote ! {
469476 #[ allow( unused_qualifications) ]
477+ #[ automatically_derived]
470478 impl #impl_generics std:: error:: Error for #ty #ty_generics #error_where_clause {
471479 #source_method
472480 #provide_method
0 commit comments