rename ReLateBound to ReBound
other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound`
This commit is contained in:
@@ -410,11 +410,11 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
||||
iter::zip(new_args.regions(), old_args.regions())
|
||||
{
|
||||
match (*new_region, *old_region) {
|
||||
// If both predicates have an `ReLateBound` (a HRTB) in the
|
||||
// If both predicates have an `ReBound` (a HRTB) in the
|
||||
// same spot, we do nothing.
|
||||
(ty::ReLateBound(_, _), ty::ReLateBound(_, _)) => {}
|
||||
(ty::ReBound(_, _), ty::ReBound(_, _)) => {}
|
||||
|
||||
(ty::ReLateBound(_, _), _) | (_, ty::ReVar(_)) => {
|
||||
(ty::ReBound(_, _), _) | (_, ty::ReVar(_)) => {
|
||||
// One of these is true:
|
||||
// The new predicate has a HRTB in a spot where the old
|
||||
// predicate does not (if they both had a HRTB, the previous
|
||||
@@ -440,7 +440,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
||||
// `user_computed_preds`.
|
||||
return false;
|
||||
}
|
||||
(_, ty::ReLateBound(_, _)) | (ty::ReVar(_), _) => {
|
||||
(_, ty::ReBound(_, _)) | (ty::ReVar(_), _) => {
|
||||
// This is the opposite situation as the previous arm.
|
||||
// One of these is true:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user