Skip to content

Commit 202e3ed

Browse files
Xavier DenisXavier Denis
Xavier Denis
authored and
Xavier Denis
committed
Make a minimal amount of region APIs public
1 parent 31e6e8c commit 202e3ed

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_borrowck/src/region_infer

1 file changed

+3
-3
lines changed

compiler/rustc_borrowck/src/region_infer/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,13 +1329,13 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13291329
}
13301330

13311331
// Evaluate whether `sup_region == sub_region`.
1332-
fn eval_equal(&self, r1: RegionVid, r2: RegionVid) -> bool {
1332+
pub fn eval_equal(&self, r1: RegionVid, r2: RegionVid) -> bool {
13331333
self.eval_outlives(r1, r2) && self.eval_outlives(r2, r1)
13341334
}
13351335

13361336
// Evaluate whether `sup_region: sub_region`.
13371337
#[instrument(skip(self), level = "debug", ret)]
1338-
fn eval_outlives(&self, sup_region: RegionVid, sub_region: RegionVid) -> bool {
1338+
pub fn eval_outlives(&self, sup_region: RegionVid, sub_region: RegionVid) -> bool {
13391339
debug!(
13401340
"sup_region's value = {:?} universal={:?}",
13411341
self.region_value_str(sup_region),
@@ -2248,7 +2248,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
22482248
}
22492249

22502250
/// Access to the SCC constraint graph.
2251-
pub(crate) fn constraint_sccs(&self) -> &Sccs<RegionVid, ConstraintSccIndex> {
2251+
pub fn constraint_sccs(&self) -> &Sccs<RegionVid, ConstraintSccIndex> {
22522252
self.constraint_sccs.as_ref()
22532253
}
22542254

0 commit comments

Comments
 (0)