about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-05-16 19:55:57 +0200
committerJorge Aparicio <jorge@japaric.io>2018-06-03 13:46:19 +0200
commit86a07696219fecfe4444aeb727d02ad8a4ebcda0 (patch)
tree11a710aa0ce9450644bb19d0deb981ae66aea281 /src
parent430ad769008c0aaa40949a1d98a6f0e18e35ec65 (diff)
downloadrust-86a07696219fecfe4444aeb727d02ad8a4ebcda0.tar.gz
rust-86a07696219fecfe4444aeb727d02ad8a4ebcda0.zip
fix after rebase
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index 5c33eb5f0af..23ebf418195 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 &&