@@ -50,7 +50,7 @@ use rustc_span::{DUMMY_SP, Span};
5050use rustc_trait_selection:: infer:: InferCtxtExt ;
5151use rustc_trait_selection:: traits:: wf:: object_region_bounds;
5252use rustc_trait_selection:: traits:: { self , ObligationCtxt } ;
53- use tracing:: { debug, debug_span , instrument} ;
53+ use tracing:: { debug, instrument} ;
5454
5555use crate :: bounds:: Bounds ;
5656use crate :: check:: check_abi_fn_ptr;
@@ -2287,19 +2287,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
22872287 hir:: TyKind :: Tup ( fields) => {
22882288 Ty :: new_tup_from_iter ( tcx, fields. iter ( ) . map ( |t| self . lower_ty ( t) ) )
22892289 }
2290- hir:: TyKind :: AnonAdt ( item_id) => {
2291- let _guard = debug_span ! ( "AnonAdt" ) ;
2292-
2293- let did = item_id. owner_id . def_id ;
2294- let adt_def = tcx. adt_def ( did) ;
2295-
2296- let args = ty:: GenericArgs :: for_item ( tcx, did. to_def_id ( ) , |param, _| {
2297- tcx. mk_param_from_def ( param)
2298- } ) ;
2299- debug ! ( ?args) ;
2300-
2301- Ty :: new_adt ( tcx, adt_def, tcx. mk_args ( args) )
2302- }
23032290 hir:: TyKind :: BareFn ( bf) => {
23042291 require_c_abi_if_c_variadic ( tcx, bf. decl , bf. abi , hir_ty. span ) ;
23052292
0 commit comments