diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-12-19 04:26:56 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-12-19 04:26:56 -0500 |
| commit | 3d826e5681770a2dfee4b980173f383b8201e844 (patch) | |
| tree | 3331aa8ca63acd2cdc5de6a8c10dbddf14bcca6a | |
| parent | 3c56c3610ec7684f4c759c3eee95a50fef208e1b (diff) | |
| download | rust-3d826e5681770a2dfee4b980173f383b8201e844.tar.gz rust-3d826e5681770a2dfee4b980173f383b8201e844.zip | |
remove dead `is_foo_free_region` helpers
Only `is_local_free_region` is used.
| -rw-r--r-- | src/librustc_mir/borrow_check/nll/universal_regions.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/librustc_mir/borrow_check/nll/universal_regions.rs b/src/librustc_mir/borrow_check/nll/universal_regions.rs index 99beae13bd9..64195338aa5 100644 --- a/src/librustc_mir/borrow_check/nll/universal_regions.rs +++ b/src/librustc_mir/borrow_check/nll/universal_regions.rs @@ -249,23 +249,6 @@ impl<'tcx> UniversalRegions<'tcx> { (FIRST_GLOBAL_INDEX..self.num_universals).map(RegionVid::new) } - /// True if `r` is classified as a global region. - pub fn is_global_free_region(&self, r: RegionVid) -> bool { - self.region_classification(r) == Some(RegionClassification::Global) - } - - /// True if `r` is classified as an external region. - pub fn is_extern_free_region(&self, r: RegionVid) -> bool { - self.region_classification(r) == Some(RegionClassification::External) - } - - /// True if `r` is a free region that is classified as global or - /// extern. This is an important category, because these regions - /// can be referenced in `ClosureRegionRequirements`. - pub fn is_non_local_free_region(&self, r: RegionVid) -> bool { - self.region_classification(r) == Some(RegionClassification::Local) - } - /// True if `r` is classified as an local region. pub fn is_local_free_region(&self, r: RegionVid) -> bool { self.region_classification(r) == Some(RegionClassification::Local) |
