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> {
152152
153153impl < I : Interner > Debug for ProjectionTy < I > {
154154 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>" ) )
158156 }
159157}
160158
161159impl < I : Interner > Debug for OpaqueTy < I > {
162160 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>" ) )
166162 }
167163}
168164
You can’t perform that action at this time.
0 commit comments