@@ -309,17 +309,13 @@ pub(crate) struct FunctionCx<'m, 'clif, 'tcx: 'm> {
309
309
}
310
310
311
311
impl < ' tcx > LayoutOfHelpers < ' tcx > for FunctionCx < ' _ , ' _ , ' tcx > {
312
- type LayoutOfResult = TyAndLayout < ' tcx > ;
313
-
314
312
#[ inline]
315
313
fn handle_layout_err ( & self , err : LayoutError < ' tcx > , span : Span , ty : Ty < ' tcx > ) -> ! {
316
314
RevealAllLayoutCx ( self . tcx ) . handle_layout_err ( err, span, ty)
317
315
}
318
316
}
319
317
320
318
impl < ' tcx > FnAbiOfHelpers < ' tcx > for FunctionCx < ' _ , ' _ , ' tcx > {
321
- type FnAbiOfResult = & ' tcx FnAbi < ' tcx , Ty < ' tcx > > ;
322
-
323
319
#[ inline]
324
320
fn handle_fn_abi_err (
325
321
& self ,
@@ -450,8 +446,6 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
450
446
pub ( crate ) struct RevealAllLayoutCx < ' tcx > ( pub ( crate ) TyCtxt < ' tcx > ) ;
451
447
452
448
impl < ' tcx > LayoutOfHelpers < ' tcx > for RevealAllLayoutCx < ' tcx > {
453
- type LayoutOfResult = TyAndLayout < ' tcx > ;
454
-
455
449
#[ inline]
456
450
fn handle_layout_err ( & self , err : LayoutError < ' tcx > , span : Span , ty : Ty < ' tcx > ) -> ! {
457
451
if let LayoutError :: SizeOverflow ( _) | LayoutError :: ReferencesError ( _) = err {
@@ -466,8 +460,6 @@ impl<'tcx> LayoutOfHelpers<'tcx> for RevealAllLayoutCx<'tcx> {
466
460
}
467
461
468
462
impl < ' tcx > FnAbiOfHelpers < ' tcx > for RevealAllLayoutCx < ' tcx > {
469
- type FnAbiOfResult = & ' tcx FnAbi < ' tcx , Ty < ' tcx > > ;
470
-
471
463
#[ inline]
472
464
fn handle_fn_abi_err (
473
465
& self ,
0 commit comments