Skip to content

Commit

Permalink
add note why a function is pub
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Sep 1, 2023
1 parent 8e0a8c6 commit 2c91934
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_borrowck/src/dataflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ impl<'tcx> OutOfScopePrecomputer<'_, 'tcx> {
}
}

// 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>,
Expand Down

0 comments on commit 2c91934

Please sign in to comment.