Skip to content

Commit 2c91934

Browse files
committed
add note why a function is pub
1 parent 8e0a8c6 commit 2c91934

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
@@ -223,6 +223,7 @@ impl<'tcx> OutOfScopePrecomputer<'_, 'tcx> {
223223
}
224224
}
225225

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

0 commit comments

Comments
 (0)