@@ -334,11 +334,7 @@ impl Benchmark {
334334            return  Ok ( ( ) ) ; 
335335        } 
336336
337-         eprintln ! ( 
338-             "Preparing {} (test cases: {})" , 
339-             self . name, 
340-             benchmark_dirs. len( ) 
341-         ) ; 
337+         eprintln ! ( "Preparing {}" ,  self . name) ; 
342338
343339        // In parallel (but with a limit to the number of CPUs), prepare all 
344340        // profiles. This is done in parallel vs. sequentially because: 
@@ -456,7 +452,7 @@ impl Benchmark {
456452
457453                // Rustdoc does not support incremental compilation 
458454                if  !profile. is_doc ( )  { 
459-                     // An incremental  from scratch (slowest incremental case). 
455+                     // An incremental build  from scratch (slowest incremental case). 
460456                    // This is required for any subsequent incremental builds. 
461457                    if  scenarios. iter ( ) . any ( |s| s. is_incr ( ) )  { 
462458                        self . mk_cargo_process ( toolchain,  cwd,  profile,  backend,  target) 
@@ -529,21 +525,9 @@ impl Benchmark {
529525        } 
530526
531527        let  benchmark = database:: Benchmark :: from ( self . name . 0 . as_str ( ) ) ; 
532-         let  profile = match  profile { 
533-             Profile :: Check  => database:: Profile :: Check , 
534-             Profile :: Debug  => database:: Profile :: Debug , 
535-             Profile :: Doc  => database:: Profile :: Doc , 
536-             Profile :: DocJson  => database:: Profile :: DocJson , 
537-             Profile :: Opt  => database:: Profile :: Opt , 
538-             Profile :: Clippy  => database:: Profile :: Clippy , 
539-         } ; 
540-         let  backend = match  backend { 
541-             CodegenBackend :: Llvm  => database:: CodegenBackend :: Llvm , 
542-             CodegenBackend :: Cranelift  => database:: CodegenBackend :: Cranelift , 
543-         } ; 
544-         let  target = match  target { 
545-             Target :: X86_64UnknownLinuxGnu  => database:: Target :: X86_64UnknownLinuxGnu , 
546-         } ; 
528+         let  profile:  database:: Profile  = ( * profile) . into ( ) ; 
529+         let  backend:  database:: CodegenBackend  = ( * backend) . into ( ) ; 
530+         let  target:  database:: Target  = ( * target) . into ( ) ; 
547531
548532        match  scenario { 
549533            // For these scenarios, we can simply check if they were benchmarked or not 
0 commit comments