@@ -115,7 +115,7 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> {
115
115
// error. We will then search the function parameters for a bound
116
116
// region at the right depth with the same index
117
117
(
118
- Some ( rl:: Region :: LateBoundAnon ( debruijn_index, anon_index) ) ,
118
+ Some ( rl:: Region :: LateBoundAnon ( debruijn_index, _ , anon_index) ) ,
119
119
ty:: BrAnon ( br_index) ,
120
120
) => {
121
121
debug ! (
@@ -143,7 +143,7 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> {
143
143
// error. We will then search the function parameters for a bound
144
144
// region at the right depth with the same index
145
145
(
146
- Some ( rl:: Region :: LateBound ( debruijn_index, id, _) ) ,
146
+ Some ( rl:: Region :: LateBound ( debruijn_index, _ , id, _) ) ,
147
147
ty:: BrNamed ( def_id, _) ,
148
148
) => {
149
149
debug ! (
@@ -162,8 +162,8 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> {
162
162
rl:: Region :: Static
163
163
| rl:: Region :: Free ( _, _)
164
164
| rl:: Region :: EarlyBound ( _, _, _)
165
- | rl:: Region :: LateBound ( _, _, _)
166
- | rl:: Region :: LateBoundAnon ( _, _) ,
165
+ | rl:: Region :: LateBound ( _, _, _, _ )
166
+ | rl:: Region :: LateBoundAnon ( _, _, _ ) ,
167
167
)
168
168
| None ,
169
169
_,
@@ -217,7 +217,10 @@ impl Visitor<'tcx> for TyPathVisitor<'tcx> {
217
217
fn visit_lifetime ( & mut self , lifetime : & hir:: Lifetime ) {
218
218
match ( self . tcx . named_region ( lifetime. hir_id ) , self . bound_region ) {
219
219
// the lifetime of the TyPath!
220
- ( Some ( rl:: Region :: LateBoundAnon ( debruijn_index, anon_index) ) , ty:: BrAnon ( br_index) ) => {
220
+ (
221
+ Some ( rl:: Region :: LateBoundAnon ( debruijn_index, _, anon_index) ) ,
222
+ ty:: BrAnon ( br_index) ,
223
+ ) => {
221
224
if debruijn_index == self . current_index && anon_index == br_index {
222
225
self . found_it = true ;
223
226
return ;
@@ -232,7 +235,7 @@ impl Visitor<'tcx> for TyPathVisitor<'tcx> {
232
235
}
233
236
}
234
237
235
- ( Some ( rl:: Region :: LateBound ( debruijn_index, id, _) ) , ty:: BrNamed ( def_id, _) ) => {
238
+ ( Some ( rl:: Region :: LateBound ( debruijn_index, _ , id, _) ) , ty:: BrNamed ( def_id, _) ) => {
236
239
debug ! ( "FindNestedTypeVisitor::visit_ty: LateBound depth = {:?}" , debruijn_index, ) ;
237
240
debug ! ( "id={:?}" , id) ;
238
241
debug ! ( "def_id={:?}" , def_id) ;
@@ -246,8 +249,8 @@ impl Visitor<'tcx> for TyPathVisitor<'tcx> {
246
249
Some (
247
250
rl:: Region :: Static
248
251
| rl:: Region :: EarlyBound ( _, _, _)
249
- | rl:: Region :: LateBound ( _, _, _)
250
- | rl:: Region :: LateBoundAnon ( _, _)
252
+ | rl:: Region :: LateBound ( _, _, _, _ )
253
+ | rl:: Region :: LateBoundAnon ( _, _, _ )
251
254
| rl:: Region :: Free ( _, _) ,
252
255
)
253
256
| None ,
0 commit comments