Skip to content

Commit af8a318

Browse files
committed
add note why a function is pub
1 parent b012615 commit af8a318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_borrowck/src/dataflow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ impl<'tcx> OutOfScopePrecomputer<'_, 'tcx> {
222222
}
223223
}
224224

225+
// This is `pub` because it's used by unstable external borrowck data users, see `consumers.rs`.
225226
pub fn calculate_borrows_out_of_scope_at_location<'tcx>(
226227
body: &Body<'tcx>,
227228
regioncx: &RegionInferenceContext<'tcx>,

0 commit comments

Comments
 (0)