File tree 1 file changed +5
-3
lines changed
collector/src/compile/benchmark
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ pub fn get_compile_benchmarks(
475
475
let mut excludes = to_hashmap ( exclude) ;
476
476
let mut exclude_suffixes = to_hashmap ( exclude_suffix) ;
477
477
478
- for ( path, name) in paths {
478
+ for ( path, name) in paths. clone ( ) {
479
479
let mut skip = false ;
480
480
481
481
let name_matches_prefix = |prefixes : & mut HashMap < & str , usize > | {
@@ -508,9 +508,11 @@ pub fn get_compile_benchmarks(
508
508
. collect ( ) ;
509
509
if !unused. is_empty ( ) {
510
510
bail ! (
511
- "Warning: one or more unused --{} entries: {:?}" ,
511
+ r#"Warning: one or more unused --{} entries: {:?} found.
512
+ Expected zero or more entries or substrings from list: {:?}."# ,
512
513
option,
513
- unused
514
+ unused,
515
+ & paths. iter( ) . map( |( _, name) | name) . collect:: <Vec <_>>( ) ,
514
516
) ;
515
517
}
516
518
}
You can’t perform that action at this time.
0 commit comments