@@ -35,7 +35,7 @@ fn specialization() -> TokenStream {
35
35
fn __displaydoc_display( & self ) -> Self ;
36
36
}
37
37
38
- impl <T : core:: fmt:: Display > DisplayToDisplayDoc for & T {
38
+ impl <T : :: core:: fmt:: Display > DisplayToDisplayDoc for & T {
39
39
fn __displaydoc_display( & self ) -> Self {
40
40
self
41
41
}
@@ -90,8 +90,8 @@ fn impl_struct(input: &DeriveInput, data: &DataStruct) -> Result<TokenStream> {
90
90
Fields :: Unit => quote ! ( _) ,
91
91
} ;
92
92
quote ! {
93
- impl #impl_generics core:: fmt:: Display for #ty #ty_generics #where_clause {
94
- fn fmt( & self , formatter: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
93
+ impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
94
+ fn fmt( & self , formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
95
95
// NB: This destructures the fields of `self` into named variables (for unnamed
96
96
// fields, it uses _0, _1, etc as above). The `#[allow(unused_variables)]`
97
97
// section means it doesn't have to parse the individual field references out of
@@ -365,8 +365,8 @@ fn impl_enum(input: &DeriveInput, data: &DataEnum) -> Result<TokenStream> {
365
365
366
366
if data. variants . is_empty ( ) {
367
367
Ok ( quote ! {
368
- impl #impl_generics core:: fmt:: Display for #ty #ty_generics #where_clause {
369
- fn fmt( & self , formatter: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
368
+ impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
369
+ fn fmt( & self , formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
370
370
unreachable!( "empty enums cannot be instantiated and thus cannot be printed" )
371
371
}
372
372
}
@@ -394,8 +394,8 @@ fn impl_enum(input: &DeriveInput, data: &DataEnum) -> Result<TokenStream> {
394
394
} )
395
395
. collect :: < Result < Vec < _ > > > ( ) ?;
396
396
Ok ( quote ! {
397
- impl #impl_generics core:: fmt:: Display for #ty #ty_generics #where_clause {
398
- fn fmt( & self , formatter: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
397
+ impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
398
+ fn fmt( & self , formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
399
399
#[ allow( unused_variables) ]
400
400
match self {
401
401
#( #arms, ) *
0 commit comments