File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -152,17 +152,13 @@ impl<I: Interner> Debug for QuantifiedWhereClauses<I> {
152
152
153
153
impl < I : Interner > Debug for ProjectionTy < I > {
154
154
fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
155
- I :: debug_projection_ty ( self , fmt) . unwrap_or_else ( || {
156
- unimplemented ! ( "cannot format ProjectionTy without setting Program in tls" )
157
- } )
155
+ I :: debug_projection_ty ( self , fmt) . unwrap_or_else ( || fmt. write_str ( "<ProjectionTy>" ) )
158
156
}
159
157
}
160
158
161
159
impl < I : Interner > Debug for OpaqueTy < I > {
162
160
fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
163
- I :: debug_opaque_ty ( self , fmt) . unwrap_or_else ( || {
164
- unimplemented ! ( "cannot format OpaqueTy without setting Program in tls" )
165
- } )
161
+ I :: debug_opaque_ty ( self , fmt) . unwrap_or_else ( || fmt. write_str ( "<OpaqueTy>" ) )
166
162
}
167
163
}
168
164
You can’t perform that action at this time.
0 commit comments