From 86a07696219fecfe4444aeb727d02ad8a4ebcda0 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 16 May 2018 19:55:57 +0200 Subject: [PATCH] fix after rebase --- src/librustc_typeck/check/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 5c33eb5f0af1..23ebf418195f 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -1144,7 +1144,7 @@ fn check_fn<'a, 'gcx, 'tcx>(inherited: &'a Inherited<'a, 'gcx, 'tcx>, let span = fcx.tcx.hir.span(fn_id); if inputs.len() == 1 { let arg_is_panic_info = match inputs[0].sty { - ty::TyRef(region, ty::TypeAndMut { ty, mutbl }) => match ty.sty { + ty::TyRef(region, ty, mutbl) => match ty.sty { ty::TyAdt(ref adt, _) => { adt.did == panic_info_did && mutbl == hir::Mutability::MutImmutable &&