about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2023-06-30 19:11:09 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-10-05 15:25:46 +0000
commitaf8a318aa1c38cc37a5889a2f50ac09589b0c6eb (patch)
treebe2edec6e320cbfee50719587319147b883f85b7
parentb01261528655a27c57ff9a229702cba1b660743a (diff)
downloadrust-af8a318aa1c38cc37a5889a2f50ac09589b0c6eb.tar.gz
rust-af8a318aa1c38cc37a5889a2f50ac09589b0c6eb.zip
add note why a function is pub
-rw-r--r--compiler/rustc_borrowck/src/dataflow.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/src/dataflow.rs b/compiler/rustc_borrowck/src/dataflow.rs
index 031dbe299d1..a615b383fee 100644
--- a/compiler/rustc_borrowck/src/dataflow.rs
+++ b/compiler/rustc_borrowck/src/dataflow.rs
@@ -222,6 +222,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>,