Skip to content

Commit 3d826e5

Browse files
committed
remove dead is_foo_free_region helpers
Only `is_local_free_region` is used.
1 parent 3c56c36 commit 3d826e5

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/librustc_mir/borrow_check/nll/universal_regions.rs

-17
Original file line numberDiff line numberDiff line change
@@ -249,23 +249,6 @@ impl<'tcx> UniversalRegions<'tcx> {
249249
(FIRST_GLOBAL_INDEX..self.num_universals).map(RegionVid::new)
250250
}
251251

252-
/// True if `r` is classified as a global region.
253-
pub fn is_global_free_region(&self, r: RegionVid) -> bool {
254-
self.region_classification(r) == Some(RegionClassification::Global)
255-
}
256-
257-
/// True if `r` is classified as an external region.
258-
pub fn is_extern_free_region(&self, r: RegionVid) -> bool {
259-
self.region_classification(r) == Some(RegionClassification::External)
260-
}
261-
262-
/// True if `r` is a free region that is classified as global or
263-
/// extern. This is an important category, because these regions
264-
/// can be referenced in `ClosureRegionRequirements`.
265-
pub fn is_non_local_free_region(&self, r: RegionVid) -> bool {
266-
self.region_classification(r) == Some(RegionClassification::Local)
267-
}
268-
269252
/// True if `r` is classified as an local region.
270253
pub fn is_local_free_region(&self, r: RegionVid) -> bool {
271254
self.region_classification(r) == Some(RegionClassification::Local)

0 commit comments

Comments
 (0)