File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
compiler/rustc_hir_pretty/src Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ impl<'a> State<'a> {
183
183
Node :: Ty ( a) => self . print_type ( a) ,
184
184
Node :: AssocItemConstraint ( a) => self . print_assoc_item_constraint ( a) ,
185
185
Node :: TraitRef ( a) => self . print_trait_ref ( a) ,
186
- Node :: OpaqueTy ( o ) => self . print_opaque_ty ( o ) ,
186
+ Node :: OpaqueTy ( _ ) => panic ! ( "cannot print Node::OpaqueTy" ) ,
187
187
Node :: Pat ( a) => self . print_pat ( a) ,
188
188
Node :: TyPat ( a) => self . print_ty_pat ( a) ,
189
189
Node :: PatField ( a) => self . print_patfield ( a) ,
@@ -764,14 +764,6 @@ impl<'a> State<'a> {
764
764
self . print_path ( t. path , false ) ;
765
765
}
766
766
767
- fn print_opaque_ty ( & mut self , o : & hir:: OpaqueTy < ' _ > ) {
768
- // FIXME(nnethercote): `cb` and `ib` are unclosed
769
- let ( _cb, _ib) = self . head ( "opaque" ) ;
770
- self . word ( "{" ) ;
771
- self . print_bounds ( "impl" , o. bounds ) ;
772
- self . word ( "}" ) ;
773
- }
774
-
775
767
fn print_formal_generic_params ( & mut self , generic_params : & [ hir:: GenericParam < ' _ > ] ) {
776
768
if !generic_params. is_empty ( ) {
777
769
self . word ( "for" ) ;
You can’t perform that action at this time.
0 commit comments