about summary refs log tree commit diff
diff options
context:
space:
mode:
authorblyxyas <blyxyas@gmail.com>2023-06-28 16:03:59 +0200
committerblyxyas <blyxyas@gmail.com>2023-06-28 16:03:59 +0200
commit57923c3720fad870b1edeed1dbe74f990b431288 (patch)
treed39f1ac2031b4dd3235ed825daf2e9ce476db6e7
parent0cd8bbc8674a38dab07ce55b36339ac403f70daa (diff)
downloadrust-57923c3720fad870b1edeed1dbe74f990b431288.tar.gz
rust-57923c3720fad870b1edeed1dbe74f990b431288.zip
Finally fix dogfood
-rw-r--r--tests/compile-test.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/compile-test.rs b/tests/compile-test.rs
index 50f8cf26fde..bda3662acd0 100644
--- a/tests/compile-test.rs
+++ b/tests/compile-test.rs
@@ -217,14 +217,13 @@ fn main() {
     // affected test 1000 times and gets the average.
     if let Ok(speedtest) = std::env::var("SPEEDTEST") {
         println!("----------- STARTING SPEEDTEST -----------");
-        let f;
-        match speedtest.as_str() {
-            "ui" => f = run_ui as fn(),
-            "cargo" => f = run_ui_cargo as fn(),
-            "toml" => f = run_ui_toml as fn(),
-            "internal" => f = run_internal_tests as fn(),
-            "rustfix-coverage-known-exceptions-accuracy" => f = rustfix_coverage_known_exceptions_accuracy as fn(),
-            "ui-cargo-toml-metadata" => f = ui_cargo_toml_metadata as fn(),
+        let f = match speedtest.as_str() {
+            "ui" => run_ui as fn(),
+            "cargo" => run_ui_cargo as fn(),
+            "toml" => run_ui_toml as fn(),
+            "internal" => run_internal_tests as fn(),
+            "rustfix-coverage-known-exceptions-accuracy" => rustfix_coverage_known_exceptions_accuracy as fn(),
+            "ui-cargo-toml-metadata" => ui_cargo_toml_metadata as fn(),
 
             _ => panic!("unknown speedtest: {speedtest} || accepted speedtests are: [ui, cargo, toml, internal]"),
         };