@@ -99,15 +99,15 @@ impl LivenessValues {
9999 }
100100
101101 /// Iterate through each region that has a value in this set.
102- pub ( crate ) fn regions ( & self ) -> impl Iterator < Item = RegionVid > + ' _ {
102+ pub ( crate ) fn regions ( & self ) -> impl Iterator < Item = RegionVid > {
103103 self . points . as_ref ( ) . expect ( "use with_specific_points" ) . rows ( )
104104 }
105105
106106 /// Iterate through each region that has a value in this set.
107107 // We are passing query instability implications to the caller.
108108 #[ rustc_lint_query_instability]
109109 #[ allow( rustc:: potential_query_instability) ]
110- pub ( crate ) fn live_regions_unordered ( & self ) -> impl Iterator < Item = RegionVid > + ' _ {
110+ pub ( crate ) fn live_regions_unordered ( & self ) -> impl Iterator < Item = RegionVid > {
111111 self . live_regions . as_ref ( ) . unwrap ( ) . iter ( ) . copied ( )
112112 }
113113
@@ -176,7 +176,7 @@ impl LivenessValues {
176176 }
177177
178178 /// Returns an iterator of all the points where `region` is live.
179- fn live_points ( & self , region : RegionVid ) -> impl Iterator < Item = PointIndex > + ' _ {
179+ fn live_points ( & self , region : RegionVid ) -> impl Iterator < Item = PointIndex > {
180180 let Some ( points) = & self . points else {
181181 unreachable ! (
182182 "Should be using LivenessValues::with_specific_points to ask whether live at a location"
@@ -362,7 +362,7 @@ impl<N: Idx> RegionValues<N> {
362362 }
363363
364364 /// Returns the locations contained within a given region `r`.
365- pub ( crate ) fn locations_outlived_by < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = Location > + ' a {
365+ pub ( crate ) fn locations_outlived_by < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = Location > {
366366 self . points . row ( r) . into_iter ( ) . flat_map ( move |set| {
367367 set. iter ( )
368368 . take_while ( move |& p| self . elements . point_in_range ( p) )
@@ -374,15 +374,15 @@ impl<N: Idx> RegionValues<N> {
374374 pub ( crate ) fn universal_regions_outlived_by < ' a > (
375375 & ' a self ,
376376 r : N ,
377- ) -> impl Iterator < Item = RegionVid > + ' a {
377+ ) -> impl Iterator < Item = RegionVid > {
378378 self . free_regions . row ( r) . into_iter ( ) . flat_map ( |set| set. iter ( ) )
379379 }
380380
381381 /// Returns all the elements contained in a given region's value.
382382 pub ( crate ) fn placeholders_contained_in < ' a > (
383383 & ' a self ,
384384 r : N ,
385- ) -> impl Iterator < Item = ty:: PlaceholderRegion > + ' a {
385+ ) -> impl Iterator < Item = ty:: PlaceholderRegion > {
386386 self . placeholders
387387 . row ( r)
388388 . into_iter ( )
@@ -391,10 +391,7 @@ impl<N: Idx> RegionValues<N> {
391391 }
392392
393393 /// Returns all the elements contained in a given region's value.
394- pub ( crate ) fn elements_contained_in < ' a > (
395- & ' a self ,
396- r : N ,
397- ) -> impl Iterator < Item = RegionElement > + ' a {
394+ pub ( crate ) fn elements_contained_in < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = RegionElement > {
398395 let points_iter = self . locations_outlived_by ( r) . map ( RegionElement :: Location ) ;
399396
400397 let free_regions_iter =
0 commit comments