@@ -12,13 +12,12 @@ use rustc_middle::mir::mono::CodegenUnit;
1212use rustc_middle:: span_bug;
1313use rustc_middle:: ty:: layout:: {
1414 FnAbiError , FnAbiOf , FnAbiOfHelpers , FnAbiRequest , HasParamEnv , HasTyCtxt , LayoutError ,
15- LayoutOfHelpers , TyAndLayout ,
15+ LayoutOfHelpers ,
1616} ;
1717use rustc_middle:: ty:: { self , Instance , ParamEnv , PolyExistentialTraitRef , Ty , TyCtxt } ;
1818use rustc_session:: Session ;
1919use rustc_span:: source_map:: respan;
2020use rustc_span:: { Span , DUMMY_SP } ;
21- use rustc_target:: abi:: call:: FnAbi ;
2221use rustc_target:: abi:: { HasDataLayout , PointeeInfo , Size , TargetDataLayout , VariantIdx } ;
2322use rustc_target:: spec:: { HasTargetSpec , HasWasmCAbiOpt , Target , TlsModel , WasmCAbi } ;
2423
@@ -572,8 +571,6 @@ impl<'gcc, 'tcx> HasWasmCAbiOpt for CodegenCx<'gcc, 'tcx> {
572571}
573572
574573impl < ' gcc , ' tcx > LayoutOfHelpers < ' tcx > for CodegenCx < ' gcc , ' tcx > {
575- type LayoutOfResult = TyAndLayout < ' tcx > ;
576-
577574 #[ inline]
578575 fn handle_layout_err ( & self , err : LayoutError < ' tcx > , span : Span , ty : Ty < ' tcx > ) -> ! {
579576 if let LayoutError :: SizeOverflow ( _) | LayoutError :: ReferencesError ( _) = err {
@@ -585,8 +582,6 @@ impl<'gcc, 'tcx> LayoutOfHelpers<'tcx> for CodegenCx<'gcc, 'tcx> {
585582}
586583
587584impl < ' gcc , ' tcx > FnAbiOfHelpers < ' tcx > for CodegenCx < ' gcc , ' tcx > {
588- type FnAbiOfResult = & ' tcx FnAbi < ' tcx , Ty < ' tcx > > ;
589-
590585 #[ inline]
591586 fn handle_fn_abi_err (
592587 & self ,
0 commit comments