try to clarify confusing comment

This commit is contained in:
Niko Matsakis 2022-06-23 16:54:55 -04:00
parent c3137d9e8c
commit d8337ee2f4

View File

@ -57,7 +57,15 @@ pub fn extract_verify_if_eq<'tcx>(
}
}
} else {
// The region does not contain any inference variables.
// The region does not contain any bound variables, so we don't need
// to do any substitution.
//
// Example:
//
// for<'a> <T as Foo<'a>>::Item: 'b
//
// In this case, we've now matched and found a value for
// `'a`, but it doesn't affect the bound `'b`.
Some(verify_if_eq.bound)
}
}