mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
try to clarify confusing comment
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user