Skip to content

Commit

Permalink
work around rust-lang#48598
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Mar 19, 2018
1 parent 29f0760 commit 0fb1c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_passes/rvalue_promotion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ impl<'a, 'tcx> Visitor<'tcx> for CheckCrateVisitor<'a, 'tcx> {
let tcx = self.tcx;
let param_env = self.param_env;
let region_scope_tree = self.tcx.region_scope_tree(item_def_id);
euv::ExprUseVisitor::new(self, tcx, param_env, &region_scope_tree, self.tables, None)
let tables = self.tables; // FIXME(#48598)
euv::ExprUseVisitor::new(self, tcx, param_env, &region_scope_tree, tables, None)
.consume_body(body);

self.visit_body(body);
Expand Down

0 comments on commit 0fb1c95

Please sign in to comment.