about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2023-04-15 15:41:42 +0300
committerGitHub <noreply@github.com>2023-04-15 15:41:42 +0300
commit4c80f58d4188165cc20f72223ec4d1ff46bfb4a8 (patch)
tree453fb157ee76652bec1fbe69f310eea8845efaa8
parentb506d966a3e413f0d8f3a2fc470f941d7d8c471d (diff)
downloadrust-4c80f58d4188165cc20f72223ec4d1ff46bfb4a8.tar.gz
rust-4c80f58d4188165cc20f72223ec4d1ff46bfb4a8.zip
Update compiler/rustc_trait_selection/src/traits/outlives_bounds.rs
-rw-r--r--compiler/rustc_trait_selection/src/traits/outlives_bounds.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs b/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs
index 5b8d9e7f0f7..e01a57ea4fe 100644
--- a/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs
+++ b/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs
@@ -56,8 +56,9 @@ impl<'a, 'tcx: 'a> InferCtxtExt<'a, 'tcx> for InferCtxt<'tcx> {
         let ty = self.resolve_vars_if_possible(ty);
         let ty = OpportunisticRegionResolver::new(self).fold_ty(ty);
 
-        // We must avoid processing unconstrained lifetime variables in implied
-        // bounds. See #110161 for context.
+        // We do not expect existential variables in implied bounds.
+        // We may however encounter unconstrained lifetime variables in invalid
+        // code. See #110161 for context.
         assert!(!ty.has_non_region_infer());
         if ty.needs_infer() {
             self.tcx.sess.delay_span_bug(