Fix arguments on ExprUseVisitor::new

This commit is contained in:
Manish Goregaokar
2019-11-28 07:20:37 -08:00
parent dc9d839410
commit c1c5c3522d
4 changed files with 2 additions and 8 deletions

View File

@@ -12,13 +12,11 @@ pub fn mutated_variables<'a, 'tcx>(expr: &'tcx Expr, cx: &'a LateContext<'a, 'tc
skip: false,
};
let def_id = def_id::DefId::local(expr.hir_id.owner);
let region_scope_tree = &cx.tcx.region_scope_tree(def_id);
ExprUseVisitor::new(
&mut delegate,
cx.tcx,
def_id,
cx.param_env,
region_scope_tree,
cx.tables,
)
.walk_expr(expr);