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