about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-25 09:32:39 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-03-25 09:32:39 +0100
commitbd3482632e71681aade51ac1e97730eb907c7249 (patch)
treef0e75cf42813fbd79b30e0127defcb5908de7275
parentbd156846fa84fde77cc801ea3b1f4d5750db94a4 (diff)
downloadrust-bd3482632e71681aade51ac1e97730eb907c7249.tar.gz
rust-bd3482632e71681aade51ac1e97730eb907c7249.zip
simplify check_pat_tuple_struct
-rw-r--r--src/librustc_typeck/check/pat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/pat.rs b/src/librustc_typeck/check/pat.rs
index ea04454a356..c235a0bb4ea 100644
--- a/src/librustc_typeck/check/pat.rs
+++ b/src/librustc_typeck/check/pat.rs
@@ -835,7 +835,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                 on_error();
                 return tcx.types.err;
             }
-            Res::Def(DefKind::AssocConst, _) | Res::Def(DefKind::AssocFn, _) => {
+            Res::Def(DefKind::AssocConst | DefKind::AssocFn, _) => {
                 report_unexpected_res(res);
                 return tcx.types.err;
             }