about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-01-18 14:36:17 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-01-18 14:42:49 +1100
commit0373ce6876864a2f31b0ab885c7ba80e1f69eb15 (patch)
tree696572f12afe0ceba6ed6c07583b17dcee878eeb /src/tools/compiletest
parent6ae4cfbbb080cafea7f6be48ce47678ee057352c (diff)
downloadrust-0373ce6876864a2f31b0ab885c7ba80e1f69eb15.tar.gz
rust-0373ce6876864a2f31b0ab885c7ba80e1f69eb15.zip
Warn when no profiler runtime means coverage tests won't be run/blessed
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/main.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index 34d48559c37..42c751bb6be 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -15,6 +15,15 @@ fn main() {
         eprintln!("warning: `tidy` is not installed; diffs will not be generated");
     }
 
+    if !config.profiler_support && config.mode == Mode::CoverageRun {
+        let actioned = if config.bless { "blessed" } else { "checked" };
+        eprintln!(
+            r#"
+WARNING: profiler runtime is not available, so `.coverage` files won't be {actioned}
+help: try setting `profiler = true` in the `[build]` section of `config.toml`"#
+        );
+    }
+
     log_config(&config);
     run_tests(config);
 }