File tree 1 file changed +12
-4
lines changed
compiler/rustc_resolve/src
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -85,20 +85,28 @@ impl<'a> std::fmt::Debug for ImportKind<'a> {
85
85
Single {
86
86
ref source,
87
87
ref target,
88
+ ref source_bindings,
89
+ ref target_bindings,
88
90
ref type_ns_only,
89
91
ref nested,
90
92
ref id,
91
- // Ignore the following to avoid an infinite loop while printing.
92
- source_bindings : _,
93
- target_bindings : _,
94
93
} => f
95
94
. debug_struct ( "Single" )
96
95
. field ( "source" , source)
97
96
. field ( "target" , target)
97
+ // Ignore the nested bindings to avoid an infinite loop while printing.
98
+ . field (
99
+ "source_bindings" ,
100
+ & source_bindings. clone ( ) . map ( |b| b. into_inner ( ) . map ( |_| format_args ! ( ".." ) ) ) ,
101
+ )
102
+ . field (
103
+ "target_bindings" ,
104
+ & target_bindings. clone ( ) . map ( |b| b. into_inner ( ) . map ( |_| format_args ! ( ".." ) ) ) ,
105
+ )
98
106
. field ( "type_ns_only" , type_ns_only)
99
107
. field ( "nested" , nested)
100
108
. field ( "id" , id)
101
- . finish_non_exhaustive ( ) ,
109
+ . finish ( ) ,
102
110
Glob { ref is_prelude, ref max_vis, ref id } => f
103
111
. debug_struct ( "Glob" )
104
112
. field ( "is_prelude" , is_prelude)
You can’t perform that action at this time.
0 commit comments