@@ -150,9 +150,9 @@ impl<'tcx> FunctionCoverage<'tcx> {
150
150
/// Generate an array of CounterExpressions, and an iterator over all `Counter`s and their
151
151
/// associated `Regions` (from which the LLVM-specific `CoverageMapGenerator` will create
152
152
/// `CounterMappingRegion`s.
153
- pub fn get_expressions_and_counter_regions < ' a > (
154
- & ' a self ,
155
- ) -> ( Vec < CounterExpression > , impl Iterator < Item = ( Counter , & ' a CodeRegion ) > ) {
153
+ pub fn get_expressions_and_counter_regions (
154
+ & self ,
155
+ ) -> ( Vec < CounterExpression > , impl Iterator < Item = ( Counter , & CodeRegion ) > ) {
156
156
assert ! (
157
157
self . source_hash != 0 || !self . is_used,
158
158
"No counters provided the source_hash for used function: {:?}" ,
@@ -168,7 +168,7 @@ impl<'tcx> FunctionCoverage<'tcx> {
168
168
( counter_expressions, counter_regions)
169
169
}
170
170
171
- fn counter_regions < ' a > ( & ' a self ) -> impl Iterator < Item = ( Counter , & ' a CodeRegion ) > {
171
+ fn counter_regions ( & self ) -> impl Iterator < Item = ( Counter , & CodeRegion ) > {
172
172
self . counters . iter_enumerated ( ) . filter_map ( |( index, entry) | {
173
173
// Option::map() will return None to filter out missing counters. This may happen
174
174
// if, for example, a MIR-instrumented counter is removed during an optimization.
@@ -177,8 +177,8 @@ impl<'tcx> FunctionCoverage<'tcx> {
177
177
}
178
178
179
179
fn expressions_with_regions (
180
- & ' a self ,
181
- ) -> ( Vec < CounterExpression > , impl Iterator < Item = ( Counter , & ' a CodeRegion ) > ) {
180
+ & self ,
181
+ ) -> ( Vec < CounterExpression > , impl Iterator < Item = ( Counter , & CodeRegion ) > ) {
182
182
let mut counter_expressions = Vec :: with_capacity ( self . expressions . len ( ) ) ;
183
183
let mut expression_regions = Vec :: with_capacity ( self . expressions . len ( ) ) ;
184
184
let mut new_indexes = IndexVec :: from_elem_n ( None , self . expressions . len ( ) ) ;
@@ -336,7 +336,7 @@ impl<'tcx> FunctionCoverage<'tcx> {
336
336
( counter_expressions, expression_regions. into_iter ( ) )
337
337
}
338
338
339
- fn unreachable_regions < ' a > ( & ' a self ) -> impl Iterator < Item = ( Counter , & ' a CodeRegion ) > {
339
+ fn unreachable_regions ( & self ) -> impl Iterator < Item = ( Counter , & CodeRegion ) > {
340
340
self . unreachable_regions . iter ( ) . map ( |region| ( Counter :: zero ( ) , region) )
341
341
}
342
342
0 commit comments