about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/diagnostics
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 /compiler/rustc_borrowck/src/diagnostics
parentdd0335a27f03c0b654c49d188e122c3a0776c6a3 (diff)
downloadrust-1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4.tar.gz
rust-1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4.zip
Remove ReEmpty
Diffstat (limited to 'compiler/rustc_borrowck/src/diagnostics')
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/region_name.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/region_name.rs b/compiler/rustc_borrowck/src/diagnostics/region_name.rs
index 75fde53b6cd..ce7c2841662 100644
--- a/compiler/rustc_borrowck/src/diagnostics/region_name.rs
+++ b/compiler/rustc_borrowck/src/diagnostics/region_name.rs
@@ -357,11 +357,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
                 ty::BoundRegionKind::BrAnon(_) => None,
             },
 
-            ty::ReLateBound(..)
-            | ty::ReVar(..)
-            | ty::RePlaceholder(..)
-            | ty::ReEmpty(_)
-            | ty::ReErased => None,
+            ty::ReLateBound(..) | ty::ReVar(..) | ty::RePlaceholder(..) | ty::ReErased => None,
         }
     }