about summary refs log tree commit diff
path: root/src/librustc_const_eval
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-06-08 23:57:01 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-06-10 14:34:45 +0300
commit1f874ded52acaecd47b39e90e93d7d7a31c90dae (patch)
tree13ccd5df830dcee9516b0a0c1e5f00fb88b7284b /src/librustc_const_eval
parent5175bc18b5ece1f66a7bfca09202a97728f1d920 (diff)
rustc: do not depend on infcx.tables in MemCategorizationContext.
Diffstat (limited to 'src/librustc_const_eval')
-rw-r--r--src/librustc_const_eval/check_match.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_const_eval/check_match.rs b/src/librustc_const_eval/check_match.rs
index 7c3076fda4f..17cb60792c6 100644
--- a/src/librustc_const_eval/check_match.rs
+++ b/src/librustc_const_eval/check_match.rs
@@ -493,11 +493,12 @@ fn check_legality_of_move_bindings(cx: &MatchVisitor,
 ///
 /// FIXME: this should be done by borrowck.
 fn check_for_mutation_in_guard(cx: &MatchVisitor, guard: &hir::Expr) {
-    cx.tcx.infer_ctxt(cx.tables).enter(|infcx| {
+    cx.tcx.infer_ctxt(()).enter(|infcx| {
         let mut checker = MutationChecker {
             cx: cx,
         };
-        ExprUseVisitor::new(&mut checker, cx.region_maps, &infcx, cx.param_env).walk_expr(guard);
+        ExprUseVisitor::new(&mut checker, &infcx, cx.param_env, cx.region_maps, cx.tables)
+            .walk_expr(guard);
     });
 }