@@ -50,7 +50,7 @@ use rustc_span::{DUMMY_SP, Span};
50
50
use rustc_trait_selection:: infer:: InferCtxtExt ;
51
51
use rustc_trait_selection:: traits:: wf:: object_region_bounds;
52
52
use rustc_trait_selection:: traits:: { self , ObligationCtxt } ;
53
- use tracing:: { debug, debug_span , instrument} ;
53
+ use tracing:: { debug, instrument} ;
54
54
55
55
use crate :: bounds:: Bounds ;
56
56
use crate :: check:: check_abi_fn_ptr;
@@ -2304,19 +2304,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
2304
2304
hir:: TyKind :: Tup ( fields) => {
2305
2305
Ty :: new_tup_from_iter ( tcx, fields. iter ( ) . map ( |t| self . lower_ty ( t) ) )
2306
2306
}
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
- }
2320
2307
hir:: TyKind :: BareFn ( bf) => {
2321
2308
require_c_abi_if_c_variadic ( tcx, bf. decl , bf. abi , hir_ty. span ) ;
2322
2309
0 commit comments