]> git.lizzy.rs Git - rust.git/commitdiff
fix after rebase
authorJorge Aparicio <jorge@japaric.io>
Wed, 16 May 2018 17:55:57 +0000 (19:55 +0200)
committerJorge Aparicio <jorge@japaric.io>
Sun, 3 Jun 2018 11:46:19 +0000 (13:46 +0200)
src/librustc_typeck/check/mod.rs

index 5c33eb5f0af12427ab0d104cb0a13349fde2fc4f..23ebf418195f22126978696225d0a06bb57e57f1 100644 (file)
@@ -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 &&