add note why a function is pub

This commit is contained in:
Rémy Rakic 2023-06-30 19:11:09 +00:00
parent b012615286
commit af8a318aa1

View File

@ -222,6 +222,7 @@ fn precompute_borrows_out_of_scope(
}
}
// This is `pub` because it's used by unstable external borrowck data users, see `consumers.rs`.
pub fn calculate_borrows_out_of_scope_at_location<'tcx>(
body: &Body<'tcx>,
regioncx: &RegionInferenceContext<'tcx>,