File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -432,10 +432,10 @@ pub fn get_compile_benchmarks(
432
432
benchmarks. push ( Benchmark :: new ( name, path) ?) ;
433
433
}
434
434
435
- // All prefixes must be used at least once. This is to catch typos.
436
- let check_for_unused = |option, prefixes : Option < HashMap < & str , usize > > | {
437
- if let Some ( prefixes ) = prefixes {
438
- let unused: Vec < _ > = prefixes
435
+ // All prefixes/suffixes must be used at least once. This is to catch typos.
436
+ let check_for_unused = |option, substrings : Option < HashMap < & str , usize > > | {
437
+ if let Some ( substrings ) = substrings {
438
+ let unused: Vec < _ > = substrings
439
439
. into_iter ( )
440
440
. filter_map ( |( i, n) | if n == 0 { Some ( i) } else { None } )
441
441
. collect ( ) ;
@@ -452,6 +452,7 @@ pub fn get_compile_benchmarks(
452
452
453
453
check_for_unused ( "include" , includes) ?;
454
454
check_for_unused ( "exclude" , excludes) ?;
455
+ check_for_unused ( "exclude-suffix" , exclude_suffixes) ?;
455
456
456
457
benchmarks. sort_by_key ( |benchmark| benchmark. name . clone ( ) ) ;
457
458
You can’t perform that action at this time.
0 commit comments