Skip to content

Commit 28fafc4

Browse files
committed
lower-generic vs. outlive
1 parent 70497d9 commit 28fafc4

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_infer/src/infer/outlives

1 file changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/outlives/verify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
268268
// fn foo<'a, A>(x: &'a A) { x.bar() }
269269
//
270270
// The problem is that the type of `x` is `&'a A`. To be
271-
// well-formed, then, A must be lower-generic by `'a`, but we
272-
// don't know that this holds from first principles.
271+
// well-formed, then, A must outlive `'a`, but we don't know that
272+
// this holds from first principles.
273273
let from_region_bound_pairs = self.region_bound_pairs.iter().filter_map(|&(r, p)| {
274274
debug!(
275275
"declared_generic_bounds_from_env_for_erased_ty: region_bound_pair = {:?}",

0 commit comments

Comments
 (0)