// error. We will then search the function parameters for a bound
// region at the right depth with the same index
(
- Some(rl::Region::LateBoundAnon(debruijn_index, anon_index)),
+ Some(rl::Region::LateBoundAnon(debruijn_index, _, anon_index)),
ty::BrAnon(br_index),
) => {
debug!(
// error. We will then search the function parameters for a bound
// region at the right depth with the same index
(
- Some(rl::Region::LateBound(debruijn_index, id, _)),
+ Some(rl::Region::LateBound(debruijn_index, _, id, _)),
ty::BrNamed(def_id, _),
) => {
debug!(
rl::Region::Static
| rl::Region::Free(_, _)
| rl::Region::EarlyBound(_, _, _)
- | rl::Region::LateBound(_, _, _)
- | rl::Region::LateBoundAnon(_, _),
+ | rl::Region::LateBound(_, _, _, _)
+ | rl::Region::LateBoundAnon(_, _, _),
)
| None,
_,
fn visit_lifetime(&mut self, lifetime: &hir::Lifetime) {
match (self.tcx.named_region(lifetime.hir_id), self.bound_region) {
// the lifetime of the TyPath!
- (Some(rl::Region::LateBoundAnon(debruijn_index, anon_index)), ty::BrAnon(br_index)) => {
+ (
+ Some(rl::Region::LateBoundAnon(debruijn_index, _, anon_index)),
+ ty::BrAnon(br_index),
+ ) => {
if debruijn_index == self.current_index && anon_index == br_index {
self.found_it = true;
return;
}
}
- (Some(rl::Region::LateBound(debruijn_index, id, _)), ty::BrNamed(def_id, _)) => {
+ (Some(rl::Region::LateBound(debruijn_index, _, id, _)), ty::BrNamed(def_id, _)) => {
debug!("FindNestedTypeVisitor::visit_ty: LateBound depth = {:?}", debruijn_index,);
debug!("id={:?}", id);
debug!("def_id={:?}", def_id);
Some(
rl::Region::Static
| rl::Region::EarlyBound(_, _, _)
- | rl::Region::LateBound(_, _, _)
- | rl::Region::LateBoundAnon(_, _)
+ | rl::Region::LateBound(_, _, _, _)
+ | rl::Region::LateBoundAnon(_, _, _)
| rl::Region::Free(_, _),
)
| None,