@@ -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;
@@ -2304,19 +2304,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
23042304 hir:: TyKind :: Tup ( fields) => {
23052305 Ty :: new_tup_from_iter ( tcx, fields. iter ( ) . map ( |t| self . lower_ty ( t) ) )
23062306 }
2307- hir:: TyKind :: AnonAdt ( item_id) => {
2308- let _guard = debug_span ! ( "AnonAdt" ) ;
2309-
2310- let did = item_id. owner_id . def_id ;
2311- let adt_def = tcx. adt_def ( did) ;
2312-
2313- let args = ty:: GenericArgs :: for_item ( tcx, did. to_def_id ( ) , |param, _| {
2314- tcx. mk_param_from_def ( param)
2315- } ) ;
2316- debug ! ( ?args) ;
2317-
2318- Ty :: new_adt ( tcx, adt_def, tcx. mk_args ( args) )
2319- }
23202307 hir:: TyKind :: BareFn ( bf) => {
23212308 require_c_abi_if_c_variadic ( tcx, bf. decl , bf. abi , hir_ty. span ) ;
23222309
0 commit comments