Function rustc_borrowck::path_utils::each_borrow_involving_path
source ยท pub(crate) fn each_borrow_involving_path<'tcx, F, I, S>(
s: &mut S,
tcx: TyCtxt<'tcx>,
body: &Body<'tcx>,
access_place: (AccessDepth, Place<'tcx>),
borrow_set: &BorrowSet<'tcx>,
is_candidate: I,
op: F,
)
Expand description
Encapsulates the idea of iterating over every borrow that involves a particular path