about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-06-26 15:40:45 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-09-08 20:55:55 -0400
commit1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4 (patch)
tree1dfc3c24565deb51caebc3acc00391267d444a5d /src/librustdoc
parentdd0335a27f03c0b654c49d188e122c3a0776c6a3 (diff)
downloadrust-1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4.tar.gz
rust-1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4.zip
Remove ReEmpty
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/clean/mod.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 66f766bfbe8..a132a029fca 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -241,7 +241,6 @@ pub(crate) fn clean_middle_region<'tcx>(region: ty::Region<'tcx>) -> Option<Life
         | ty::ReFree(..)
         | ty::ReVar(..)
         | ty::RePlaceholder(..)
-        | ty::ReEmpty(_)
         | ty::ReErased => {
             debug!("cannot clean region {:?}", region);
             None
@@ -338,10 +337,6 @@ fn clean_region_outlives_predicate<'tcx>(
 ) -> Option<WherePredicate> {
     let ty::OutlivesPredicate(a, b) = pred;
 
-    if a.is_empty() && b.is_empty() {
-        return None;
-    }
-
     Some(WherePredicate::RegionPredicate {
         lifetime: clean_middle_region(a).expect("failed to clean lifetime"),
         bounds: vec![GenericBound::Outlives(
@@ -356,10 +351,6 @@ fn clean_type_outlives_predicate<'tcx>(
 ) -> Option<WherePredicate> {
     let ty::OutlivesPredicate(ty, lt) = pred;
 
-    if lt.is_empty() {
-        return None;
-    }
-
     Some(WherePredicate::BoundPredicate {
         ty: clean_middle_ty(ty, cx, None),
         bounds: vec![GenericBound::Outlives(