@@ -36,7 +36,7 @@ fn specialization() -> TokenStream {
36
36
fn __displaydoc_display( & self ) -> Self ;
37
37
}
38
38
39
- impl <T : core:: fmt:: Display > DisplayToDisplayDoc for & T {
39
+ impl <T : :: core:: fmt:: Display > DisplayToDisplayDoc for & T {
40
40
fn __displaydoc_display( & self ) -> Self {
41
41
self
42
42
}
@@ -49,17 +49,17 @@ fn specialization() -> TokenStream {
49
49
extern crate std;
50
50
51
51
trait PathToDisplayDoc {
52
- fn __displaydoc_display( & self ) -> std:: path:: Display <' _>;
52
+ fn __displaydoc_display( & self ) -> :: std:: path:: Display <' _>;
53
53
}
54
54
55
- impl PathToDisplayDoc for std:: path:: Path {
56
- fn __displaydoc_display( & self ) -> std:: path:: Display <' _> {
55
+ impl PathToDisplayDoc for :: std:: path:: Path {
56
+ fn __displaydoc_display( & self ) -> :: std:: path:: Display <' _> {
57
57
self . display( )
58
58
}
59
59
}
60
60
61
- impl PathToDisplayDoc for std:: path:: PathBuf {
62
- fn __displaydoc_display( & self ) -> std:: path:: Display <' _> {
61
+ impl PathToDisplayDoc for :: std:: path:: PathBuf {
62
+ fn __displaydoc_display( & self ) -> :: std:: path:: Display <' _> {
63
63
self . display( )
64
64
}
65
65
}
@@ -91,8 +91,8 @@ fn impl_struct(input: &DeriveInput, data: &DataStruct) -> Result<TokenStream> {
91
91
Fields :: Unit => quote ! ( _) ,
92
92
} ;
93
93
quote ! {
94
- impl #impl_generics core:: fmt:: Display for #ty #ty_generics #where_clause {
95
- fn fmt( & self , formatter: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
94
+ impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
95
+ fn fmt( & self , formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
96
96
// NB: This destructures the fields of `self` into named variables (for unnamed
97
97
// fields, it uses _0, _1, etc as above). The `#[allow(unused_variables)]`
98
98
// section means it doesn't have to parse the individual field references out of
@@ -366,8 +366,8 @@ fn impl_enum(input: &DeriveInput, data: &DataEnum) -> Result<TokenStream> {
366
366
367
367
if data. variants . is_empty ( ) {
368
368
Ok ( quote ! {
369
- impl #impl_generics core:: fmt:: Display for #ty #ty_generics #where_clause {
370
- fn fmt( & self , formatter: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
369
+ impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
370
+ fn fmt( & self , formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
371
371
unreachable!( "empty enums cannot be instantiated and thus cannot be printed" )
372
372
}
373
373
}
@@ -395,8 +395,8 @@ fn impl_enum(input: &DeriveInput, data: &DataEnum) -> Result<TokenStream> {
395
395
} )
396
396
. collect :: < Result < Vec < _ > > > ( ) ?;
397
397
Ok ( quote ! {
398
- impl #impl_generics core:: fmt:: Display for #ty #ty_generics #where_clause {
399
- fn fmt( & self , formatter: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
398
+ impl #impl_generics :: core:: fmt:: Display for #ty #ty_generics #where_clause {
399
+ fn fmt( & self , formatter: & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
400
400
#[ allow( unused_variables) ]
401
401
match self {
402
402
#( #arms, ) *
0 commit comments