@@ -88,15 +88,15 @@ impl LivenessValues {
8888 }
8989
9090 /// Iterate through each region that has a value in this set.
91- pub ( crate ) fn regions ( & self ) -> impl Iterator < Item = RegionVid > + ' _ {
91+ pub ( crate ) fn regions ( & self ) -> impl Iterator < Item = RegionVid > {
9292 self . points . as_ref ( ) . expect ( "use with_specific_points" ) . rows ( )
9393 }
9494
9595 /// Iterate through each region that has a value in this set.
9696 // We are passing query instability implications to the caller.
9797 #[ rustc_lint_query_instability]
9898 #[ allow( rustc:: potential_query_instability) ]
99- pub ( crate ) fn live_regions_unordered ( & self ) -> impl Iterator < Item = RegionVid > + ' _ {
99+ pub ( crate ) fn live_regions_unordered ( & self ) -> impl Iterator < Item = RegionVid > {
100100 self . live_regions . as_ref ( ) . unwrap ( ) . iter ( ) . copied ( )
101101 }
102102
@@ -143,7 +143,7 @@ impl LivenessValues {
143143 }
144144
145145 /// Returns an iterator of all the points where `region` is live.
146- fn live_points ( & self , region : RegionVid ) -> impl Iterator < Item = PointIndex > + ' _ {
146+ fn live_points ( & self , region : RegionVid ) -> impl Iterator < Item = PointIndex > {
147147 let Some ( points) = & self . points else {
148148 unreachable ! (
149149 "Should be using LivenessValues::with_specific_points to ask whether live at a location"
@@ -340,7 +340,7 @@ impl<N: Idx> RegionValues<N> {
340340 }
341341
342342 /// Returns the locations contained within a given region `r`.
343- pub ( crate ) fn locations_outlived_by < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = Location > + ' a {
343+ pub ( crate ) fn locations_outlived_by ( & self , r : N ) -> impl Iterator < Item = Location > {
344344 self . points . row ( r) . into_iter ( ) . flat_map ( move |set| {
345345 set. iter ( )
346346 . take_while ( move |& p| self . location_map . point_in_range ( p) )
@@ -349,18 +349,15 @@ impl<N: Idx> RegionValues<N> {
349349 }
350350
351351 /// Returns just the universal regions that are contained in a given region's value.
352- pub ( crate ) fn universal_regions_outlived_by < ' a > (
353- & ' a self ,
354- r : N ,
355- ) -> impl Iterator < Item = RegionVid > + ' a {
352+ pub ( crate ) fn universal_regions_outlived_by ( & self , r : N ) -> impl Iterator < Item = RegionVid > {
356353 self . free_regions . row ( r) . into_iter ( ) . flat_map ( |set| set. iter ( ) )
357354 }
358355
359356 /// Returns all the elements contained in a given region's value.
360- pub ( crate ) fn placeholders_contained_in < ' a > (
361- & ' a self ,
357+ pub ( crate ) fn placeholders_contained_in (
358+ & self ,
362359 r : N ,
363- ) -> impl Iterator < Item = ty:: PlaceholderRegion > + ' a {
360+ ) -> impl Iterator < Item = ty:: PlaceholderRegion > {
364361 self . placeholders
365362 . row ( r)
366363 . into_iter ( )
@@ -369,10 +366,7 @@ impl<N: Idx> RegionValues<N> {
369366 }
370367
371368 /// Returns all the elements contained in a given region's value.
372- pub ( crate ) fn elements_contained_in < ' a > (
373- & ' a self ,
374- r : N ,
375- ) -> impl Iterator < Item = RegionElement > + ' a {
369+ pub ( crate ) fn elements_contained_in ( & self , r : N ) -> impl Iterator < Item = RegionElement > {
376370 let points_iter = self . locations_outlived_by ( r) . map ( RegionElement :: Location ) ;
377371
378372 let free_regions_iter =
0 commit comments