@@ -25,7 +25,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
25
25
pub ( super ) fn find_anon_type (
26
26
& self ,
27
27
region : Region < ' tcx > ,
28
- br : & ty:: BoundRegion ,
28
+ br : & ty:: BoundRegionKind ,
29
29
) -> Option < ( & hir:: Ty < ' tcx > , & hir:: FnDecl < ' tcx > ) > {
30
30
if let Some ( anon_reg) = self . tcx ( ) . is_suitable_region ( region) {
31
31
let hir_id = self . tcx ( ) . hir ( ) . local_def_id_to_hir_id ( anon_reg. def_id ) ;
@@ -56,7 +56,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
56
56
fn find_component_for_bound_region (
57
57
& self ,
58
58
arg : & ' tcx hir:: Ty < ' tcx > ,
59
- br : & ty:: BoundRegion ,
59
+ br : & ty:: BoundRegionKind ,
60
60
) -> Option < & ' tcx hir:: Ty < ' tcx > > {
61
61
let mut nested_visitor = FindNestedTypeVisitor {
62
62
tcx : self . tcx ( ) ,
@@ -80,7 +80,7 @@ struct FindNestedTypeVisitor<'tcx> {
80
80
tcx : TyCtxt < ' tcx > ,
81
81
// The bound_region corresponding to the Refree(freeregion)
82
82
// associated with the anonymous region we are looking for.
83
- bound_region : ty:: BoundRegion ,
83
+ bound_region : ty:: BoundRegionKind ,
84
84
// The type where the anonymous lifetime appears
85
85
// for e.g., Vec<`&u8`> and <`&u8`>
86
86
found_type : Option < & ' tcx hir:: Ty < ' tcx > > ,
@@ -207,7 +207,7 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> {
207
207
struct TyPathVisitor < ' tcx > {
208
208
tcx : TyCtxt < ' tcx > ,
209
209
found_it : bool ,
210
- bound_region : ty:: BoundRegion ,
210
+ bound_region : ty:: BoundRegionKind ,
211
211
current_index : ty:: DebruijnIndex ,
212
212
}
213
213
0 commit comments