@@ -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 > {
362
+ pub ( crate ) fn locations_outlived_by ( & 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) )
@@ -368,16 +368,13 @@ impl<N: Idx> RegionValues<N> {
368
368
}
369
369
370
370
/// Returns just the universal regions that are contained in a given region's value.
371
- pub ( crate ) fn universal_regions_outlived_by < ' a > (
372
- & ' a self ,
373
- r : N ,
374
- ) -> impl Iterator < Item = RegionVid > {
371
+ pub ( crate ) fn universal_regions_outlived_by ( & self , r : N ) -> impl Iterator < Item = RegionVid > {
375
372
self . free_regions . row ( r) . into_iter ( ) . flat_map ( |set| set. iter ( ) )
376
373
}
377
374
378
375
/// Returns all the elements contained in a given region's value.
379
- pub ( crate ) fn placeholders_contained_in < ' a > (
380
- & ' a self ,
376
+ pub ( crate ) fn placeholders_contained_in (
377
+ & self ,
381
378
r : N ,
382
379
) -> impl Iterator < Item = ty:: PlaceholderRegion > {
383
380
self . placeholders
@@ -388,7 +385,7 @@ impl<N: Idx> RegionValues<N> {
388
385
}
389
386
390
387
/// Returns all the elements contained in a given region's value.
391
- pub ( crate ) fn elements_contained_in < ' a > ( & ' a self , r : N ) -> impl Iterator < Item = RegionElement > {
388
+ pub ( crate ) fn elements_contained_in ( & self , r : N ) -> impl Iterator < Item = RegionElement > {
392
389
let points_iter = self . locations_outlived_by ( r) . map ( RegionElement :: Location ) ;
393
390
394
391
let free_regions_iter =
0 commit comments