@@ -150,9 +150,9 @@ impl<'tcx> FunctionCoverage<'tcx> {
150150 /// Generate an array of CounterExpressions, and an iterator over all `Counter`s and their
151151 /// associated `Regions` (from which the LLVM-specific `CoverageMapGenerator` will create
152152 /// `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 ) > ) {
156156 assert ! (
157157 self . source_hash != 0 || !self . is_used,
158158 "No counters provided the source_hash for used function: {:?}" ,
@@ -168,7 +168,7 @@ impl<'tcx> FunctionCoverage<'tcx> {
168168 ( counter_expressions, counter_regions)
169169 }
170170
171- fn counter_regions < ' a > ( & ' a self ) -> impl Iterator < Item = ( Counter , & ' a CodeRegion ) > {
171+ fn counter_regions ( & self ) -> impl Iterator < Item = ( Counter , & CodeRegion ) > {
172172 self . counters . iter_enumerated ( ) . filter_map ( |( index, entry) | {
173173 // Option::map() will return None to filter out missing counters. This may happen
174174 // if, for example, a MIR-instrumented counter is removed during an optimization.
@@ -177,8 +177,8 @@ impl<'tcx> FunctionCoverage<'tcx> {
177177 }
178178
179179 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 ) > ) {
182182 let mut counter_expressions = Vec :: with_capacity ( self . expressions . len ( ) ) ;
183183 let mut expression_regions = Vec :: with_capacity ( self . expressions . len ( ) ) ;
184184 let mut new_indexes = IndexVec :: from_elem_n ( None , self . expressions . len ( ) ) ;
@@ -336,7 +336,7 @@ impl<'tcx> FunctionCoverage<'tcx> {
336336 ( counter_expressions, expression_regions. into_iter ( ) )
337337 }
338338
339- fn unreachable_regions < ' a > ( & ' a self ) -> impl Iterator < Item = ( Counter , & ' a CodeRegion ) > {
339+ fn unreachable_regions ( & self ) -> impl Iterator < Item = ( Counter , & CodeRegion ) > {
340340 self . unreachable_regions . iter ( ) . map ( |region| ( Counter :: zero ( ) , region) )
341341 }
342342
0 commit comments