@@ -100,15 +100,15 @@ impl LivenessValues {
100100 }
101101
102102 /// Iterate through each region that has a value in this set.
103- pub ( crate ) fn regions ( & self ) -> impl Iterator < Item = RegionVid > + ' _ {
103+ pub ( crate ) fn regions ( & self ) -> impl Iterator < Item = RegionVid > {
104104 self . points . as_ref ( ) . expect ( "use with_specific_points" ) . rows ( )
105105 }
106106
107107 /// Iterate through each region that has a value in this set.
108108 // We are passing query instability implications to the caller.
109109 #[ rustc_lint_query_instability]
110110 #[ allow( rustc:: potential_query_instability) ]
111- pub ( crate ) fn live_regions_unordered ( & self ) -> impl Iterator < Item = RegionVid > + ' _ {
111+ pub ( crate ) fn live_regions_unordered ( & self ) -> impl Iterator < Item = RegionVid > {
112112 self . live_regions . as_ref ( ) . unwrap ( ) . iter ( ) . copied ( )
113113 }
114114
@@ -173,7 +173,7 @@ impl LivenessValues {
173173 }
174174
175175 /// Returns an iterator of all the points where `region` is live.
176- fn live_points ( & self , region : RegionVid ) -> impl Iterator < Item = PointIndex > + ' _ {
176+ fn live_points ( & self , region : RegionVid ) -> impl Iterator < Item = PointIndex > {
177177 let Some ( points) = & self . points else {
178178 unreachable ! (
179179 "Should be using LivenessValues::with_specific_points to ask whether live at a location"
@@ -359,7 +359,7 @@ impl<N: Idx> RegionValues<N> {
359359 }
360360
361361 /// Returns the locations contained within a given region `r`.
362- pub ( crate ) fn locations_outlived_by < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = Location > + ' a {
362+ pub ( crate ) fn locations_outlived_by < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = Location > {
363363 self . points . row ( r) . into_iter ( ) . flat_map ( move |set| {
364364 set. iter ( )
365365 . take_while ( move |& p| self . elements . point_in_range ( p) )
@@ -371,15 +371,15 @@ impl<N: Idx> RegionValues<N> {
371371 pub ( crate ) fn universal_regions_outlived_by < ' a > (
372372 & ' a self ,
373373 r : N ,
374- ) -> impl Iterator < Item = RegionVid > + ' a {
374+ ) -> impl Iterator < Item = RegionVid > {
375375 self . free_regions . row ( r) . into_iter ( ) . flat_map ( |set| set. iter ( ) )
376376 }
377377
378378 /// Returns all the elements contained in a given region's value.
379379 pub ( crate ) fn placeholders_contained_in < ' a > (
380380 & ' a self ,
381381 r : N ,
382- ) -> impl Iterator < Item = ty:: PlaceholderRegion > + ' a {
382+ ) -> impl Iterator < Item = ty:: PlaceholderRegion > {
383383 self . placeholders
384384 . row ( r)
385385 . into_iter ( )
@@ -388,10 +388,7 @@ impl<N: Idx> RegionValues<N> {
388388 }
389389
390390 /// Returns all the elements contained in a given region's value.
391- pub ( crate ) fn elements_contained_in < ' a > (
392- & ' a self ,
393- r : N ,
394- ) -> impl Iterator < Item = RegionElement > + ' a {
391+ pub ( crate ) fn elements_contained_in < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = RegionElement > {
395392 let points_iter = self . locations_outlived_by ( r) . map ( RegionElement :: Location ) ;
396393
397394 let free_regions_iter =
0 commit comments