@@ -39,7 +39,7 @@ criterion_main!(bench_get_or_intern, bench_resolve, bench_get, bench_iter);
3939
4040fn bench_get_or_intern_static ( c : & mut Criterion ) {
4141 let mut g = c. benchmark_group ( "get_or_intern_static" ) ;
42- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
42+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
4343 #[ rustfmt:: skip]
4444 let static_strings = & [
4545 "a" , "b" , "c" , "d" , "e" , "f" , "g" , "h" , "i" , "j" , "k" , "l" , "m" ,
@@ -87,7 +87,7 @@ fn bench_get_or_intern_static(c: &mut Criterion) {
8787fn bench_get_or_intern_fill_with_capacity ( c : & mut Criterion ) {
8888 let mut g = c. benchmark_group ( "get_or_intern/fill-empty/with_capacity" ) ;
8989 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
90- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
90+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
9191 g. bench_with_input (
9292 BB :: NAME ,
9393 & ( BENCH_LEN_STRINGS , BENCH_STRING_LEN ) ,
@@ -113,7 +113,7 @@ fn bench_get_or_intern_fill_with_capacity(c: &mut Criterion) {
113113fn bench_get_or_intern_fill ( c : & mut Criterion ) {
114114 let mut g = c. benchmark_group ( "get_or_intern/fill-empty/new" ) ;
115115 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
116- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
116+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
117117 g. bench_with_input (
118118 BB :: NAME ,
119119 & ( BENCH_LEN_STRINGS , BENCH_STRING_LEN ) ,
@@ -139,7 +139,7 @@ fn bench_get_or_intern_fill(c: &mut Criterion) {
139139fn bench_get_or_intern_already_filled ( c : & mut Criterion ) {
140140 let mut g = c. benchmark_group ( "get_or_intern/already-filled" ) ;
141141 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
142- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
142+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
143143 g. bench_with_input (
144144 BB :: NAME ,
145145 & ( BENCH_LEN_STRINGS , BENCH_STRING_LEN ) ,
@@ -165,7 +165,7 @@ fn bench_get_or_intern_already_filled(c: &mut Criterion) {
165165fn bench_resolve_already_filled ( c : & mut Criterion ) {
166166 let mut g = c. benchmark_group ( "resolve/already-filled" ) ;
167167 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
168- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
168+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
169169 g. bench_with_input (
170170 BB :: NAME ,
171171 & ( BENCH_LEN_STRINGS , BENCH_STRING_LEN ) ,
@@ -191,7 +191,7 @@ fn bench_resolve_already_filled(c: &mut Criterion) {
191191fn bench_resolve_unchecked_already_filled ( c : & mut Criterion ) {
192192 let mut g = c. benchmark_group ( "resolve_unchecked/already-filled" ) ;
193193 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
194- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
194+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
195195 g. bench_with_input (
196196 BB :: NAME ,
197197 & ( BENCH_LEN_STRINGS , BENCH_STRING_LEN ) ,
@@ -220,7 +220,7 @@ fn bench_resolve_unchecked_already_filled(c: &mut Criterion) {
220220fn bench_get_already_filled ( c : & mut Criterion ) {
221221 let mut g = c. benchmark_group ( "get/already-filled" ) ;
222222 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
223- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > ) {
223+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > ) {
224224 g. bench_with_input (
225225 BB :: NAME ,
226226 & ( BENCH_LEN_STRINGS , BENCH_STRING_LEN ) ,
@@ -246,11 +246,11 @@ fn bench_get_already_filled(c: &mut Criterion) {
246246fn bench_iter_already_filled ( c : & mut Criterion ) {
247247 let mut g = c. benchmark_group ( "iter/already-filled" ) ;
248248 g. throughput ( Throughput :: Elements ( BENCH_LEN_STRINGS as u64 ) ) ;
249- fn bench_for_backend < BB : BackendBenchmark > ( g : & mut BenchmarkGroup < WallTime > )
249+ fn bench_for_backend < ' i , BB : BackendBenchmark < ' i > > ( g : & mut BenchmarkGroup < WallTime > )
250250 where
251- for < ' a > & ' a <BB as BackendBenchmark >:: Backend : IntoIterator <
251+ for < ' a > & ' a <BB as BackendBenchmark < ' i > >:: Backend : IntoIterator <
252252 Item = (
253- <<BB as BackendBenchmark > :: Backend as Backend >:: Symbol ,
253+ <<BB as BackendBenchmark < ' i > > :: Backend as Backend < ' i > >:: Symbol ,
254254 & ' a str ,
255255 ) ,
256256 > ,
0 commit comments