Inline MemCategorization into ExprUseVisitor
This commit is contained in:
parent
2baeb9be54
commit
dfc9c9132b
@ -120,7 +120,7 @@ fn copy(&mut self, _: &PlaceWithHirId<'_>, _: HirId) {}
|
||||
|
||||
let mut s = S(HirIdSet::default());
|
||||
let infcx = cx.tcx.infer_ctxt().build();
|
||||
let mut v = ExprUseVisitor::new(
|
||||
let v = ExprUseVisitor::new(
|
||||
&mut s,
|
||||
&infcx,
|
||||
cx.tcx.hir().body_owner_def_id(cx.enclosing_body.unwrap()),
|
||||
@ -152,7 +152,7 @@ fn copy(&mut self, _: &PlaceWithHirId<'_>, _: HirId) {}
|
||||
|
||||
let mut s = S(HirIdSet::default());
|
||||
let infcx = cx.tcx.infer_ctxt().build();
|
||||
let mut v = ExprUseVisitor::new(
|
||||
let v = ExprUseVisitor::new(
|
||||
&mut s,
|
||||
&infcx,
|
||||
cx.tcx.hir().body_owner_def_id(cx.enclosing_body.unwrap()),
|
||||
|
@ -253,7 +253,7 @@ fn visit_branch(
|
||||
};
|
||||
|
||||
let infcx = self.cx.tcx.infer_ctxt().build();
|
||||
let mut vis = ExprUseVisitor::new(
|
||||
let vis = ExprUseVisitor::new(
|
||||
&mut delegate,
|
||||
&infcx,
|
||||
cond.hir_id.owner.def_id,
|
||||
|
Loading…
Reference in New Issue
Block a user