Skip to content

Commit 520d02f

Browse files
committed
Check that the bench path exists before invoking analysis-stats
1 parent 3a6196b commit 520d02f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xtask/src/metrics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ impl Metrics {
9797
name: &str,
9898
path: &str,
9999
) -> anyhow::Result<()> {
100+
assert!(Path::new(path).exists(), "unable to find bench in {path}");
100101
eprintln!("\nMeasuring analysis-stats/{name}");
101102
let output = cmd!(sh, "./target/release/rust-analyzer -q analysis-stats {path}").read()?;
102103
for (metric, value, unit) in parse_metrics(&output) {

0 commit comments

Comments
 (0)