@@ -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;
@@ -2287,19 +2287,6 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
2287
2287
hir:: TyKind :: Tup ( fields) => {
2288
2288
Ty :: new_tup_from_iter ( tcx, fields. iter ( ) . map ( |t| self . lower_ty ( t) ) )
2289
2289
}
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
- }
2303
2290
hir:: TyKind :: BareFn ( bf) => {
2304
2291
require_c_abi_if_c_variadic ( tcx, bf. decl , bf. abi , hir_ty. span ) ;
2305
2292
0 commit comments