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:
parent
28328c8389
commit
86fa1317a3
80 changed files with 192 additions and 195 deletions
|
@ -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:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue