@@ -88,15 +88,15 @@ impl LivenessValues {
88
88
}
89
89
90
90
/// 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 > {
92
92
self . points . as_ref ( ) . expect ( "use with_specific_points" ) . rows ( )
93
93
}
94
94
95
95
/// Iterate through each region that has a value in this set.
96
96
// We are passing query instability implications to the caller.
97
97
#[ rustc_lint_query_instability]
98
98
#[ 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 > {
100
100
self . live_regions . as_ref ( ) . unwrap ( ) . iter ( ) . copied ( )
101
101
}
102
102
@@ -143,7 +143,7 @@ impl LivenessValues {
143
143
}
144
144
145
145
/// 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 > {
147
147
let Some ( points) = & self . points else {
148
148
unreachable ! (
149
149
"Should be using LivenessValues::with_specific_points to ask whether live at a location"
@@ -340,7 +340,7 @@ impl<N: Idx> RegionValues<N> {
340
340
}
341
341
342
342
/// 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 > {
344
344
self . points . row ( r) . into_iter ( ) . flat_map ( move |set| {
345
345
set. iter ( )
346
346
. take_while ( move |& p| self . location_map . point_in_range ( p) )
@@ -349,18 +349,15 @@ impl<N: Idx> RegionValues<N> {
349
349
}
350
350
351
351
/// 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 > {
356
353
self . free_regions . row ( r) . into_iter ( ) . flat_map ( |set| set. iter ( ) )
357
354
}
358
355
359
356
/// 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 ,
362
359
r : N ,
363
- ) -> impl Iterator < Item = ty:: PlaceholderRegion > + ' a {
360
+ ) -> impl Iterator < Item = ty:: PlaceholderRegion > {
364
361
self . placeholders
365
362
. row ( r)
366
363
. into_iter ( )
@@ -369,10 +366,7 @@ impl<N: Idx> RegionValues<N> {
369
366
}
370
367
371
368
/// 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 > {
376
370
let points_iter = self . locations_outlived_by ( r) . map ( RegionElement :: Location ) ;
377
371
378
372
let free_regions_iter =
0 commit comments