@@ -25,7 +25,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
2525 pub ( super ) fn find_anon_type (
2626 & self ,
2727 region : Region < ' tcx > ,
28- br : & ty:: BoundRegion ,
28+ br : & ty:: BoundRegionKind ,
2929 ) -> Option < ( & hir:: Ty < ' tcx > , & hir:: FnDecl < ' tcx > ) > {
3030 if let Some ( anon_reg) = self . tcx ( ) . is_suitable_region ( region) {
3131 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> {
5656 fn find_component_for_bound_region (
5757 & self ,
5858 arg : & ' tcx hir:: Ty < ' tcx > ,
59- br : & ty:: BoundRegion ,
59+ br : & ty:: BoundRegionKind ,
6060 ) -> Option < & ' tcx hir:: Ty < ' tcx > > {
6161 let mut nested_visitor = FindNestedTypeVisitor {
6262 tcx : self . tcx ( ) ,
@@ -80,7 +80,7 @@ struct FindNestedTypeVisitor<'tcx> {
8080 tcx : TyCtxt < ' tcx > ,
8181 // The bound_region corresponding to the Refree(freeregion)
8282 // associated with the anonymous region we are looking for.
83- bound_region : ty:: BoundRegion ,
83+ bound_region : ty:: BoundRegionKind ,
8484 // The type where the anonymous lifetime appears
8585 // for e.g., Vec<`&u8`> and <`&u8`>
8686 found_type : Option < & ' tcx hir:: Ty < ' tcx > > ,
@@ -207,7 +207,7 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> {
207207struct TyPathVisitor < ' tcx > {
208208 tcx : TyCtxt < ' tcx > ,
209209 found_it : bool ,
210- bound_region : ty:: BoundRegion ,
210+ bound_region : ty:: BoundRegionKind ,
211211 current_index : ty:: DebruijnIndex ,
212212}
213213
0 commit comments