@@ -100,15 +100,15 @@ impl LivenessValues {
100
100
}
101
101
102
102
/// 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 > {
104
104
self . points . as_ref ( ) . expect ( "use with_specific_points" ) . rows ( )
105
105
}
106
106
107
107
/// Iterate through each region that has a value in this set.
108
108
// We are passing query instability implications to the caller.
109
109
#[ rustc_lint_query_instability]
110
110
#[ 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 > {
112
112
self . live_regions . as_ref ( ) . unwrap ( ) . iter ( ) . copied ( )
113
113
}
114
114
@@ -173,7 +173,7 @@ impl LivenessValues {
173
173
}
174
174
175
175
/// 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 > {
177
177
let Some ( points) = & self . points else {
178
178
unreachable ! (
179
179
"Should be using LivenessValues::with_specific_points to ask whether live at a location"
@@ -359,7 +359,7 @@ impl<N: Idx> RegionValues<N> {
359
359
}
360
360
361
361
/// 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 > {
363
363
self . points . row ( r) . into_iter ( ) . flat_map ( move |set| {
364
364
set. iter ( )
365
365
. take_while ( move |& p| self . elements . point_in_range ( p) )
@@ -371,15 +371,15 @@ impl<N: Idx> RegionValues<N> {
371
371
pub ( crate ) fn universal_regions_outlived_by < ' a > (
372
372
& ' a self ,
373
373
r : N ,
374
- ) -> impl Iterator < Item = RegionVid > + ' a {
374
+ ) -> impl Iterator < Item = RegionVid > {
375
375
self . free_regions . row ( r) . into_iter ( ) . flat_map ( |set| set. iter ( ) )
376
376
}
377
377
378
378
/// Returns all the elements contained in a given region's value.
379
379
pub ( crate ) fn placeholders_contained_in < ' a > (
380
380
& ' a self ,
381
381
r : N ,
382
- ) -> impl Iterator < Item = ty:: PlaceholderRegion > + ' a {
382
+ ) -> impl Iterator < Item = ty:: PlaceholderRegion > {
383
383
self . placeholders
384
384
. row ( r)
385
385
. into_iter ( )
@@ -388,10 +388,7 @@ impl<N: Idx> RegionValues<N> {
388
388
}
389
389
390
390
/// 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 > {
395
392
let points_iter = self . locations_outlived_by ( r) . map ( RegionElement :: Location ) ;
396
393
397
394
let free_regions_iter =
0 commit comments