Skip to content

Commit 4c80f58

Browse files
authored
Update compiler/rustc_trait_selection/src/traits/outlives_bounds.rs
1 parent b506d96 commit 4c80f58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_trait_selection/src/traits/outlives_bounds.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ impl<'a, 'tcx: 'a> InferCtxtExt<'a, 'tcx> for InferCtxt<'tcx> {
5656
let ty = self.resolve_vars_if_possible(ty);
5757
let ty = OpportunisticRegionResolver::new(self).fold_ty(ty);
5858

59-
// We must avoid processing unconstrained lifetime variables in implied
60-
// bounds. See #110161 for context.
59+
// We do not expect existential variables in implied bounds.
60+
// We may however encounter unconstrained lifetime variables in invalid
61+
// code. See #110161 for context.
6162
assert!(!ty.has_non_region_infer());
6263
if ty.needs_infer() {
6364
self.tcx.sess.delay_span_bug(

0 commit comments

Comments
 (0)