Unnamed repository; edit this file 'description' to name the repository.
Check that the bench path exists before invoking analysis-stats
| -rw-r--r-- | xtask/src/metrics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index de81c88e27..f49d1dc9dd 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs @@ -97,6 +97,7 @@ impl Metrics { name: &str, path: &str, ) -> anyhow::Result<()> { + assert!(Path::new(path).exists(), "unable to find bench in {path}"); eprintln!("\nMeasuring analysis-stats/{name}"); let output = cmd!(sh, "./target/release/rust-analyzer -q analysis-stats {path}").read()?; for (metric, value, unit) in parse_metrics(&output) { |