Skip to content

Commit 1d08022

Browse files
committed
Require a perf-config.json file.
1 parent 9cf0ecd commit 1d08022

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

collector/src/execute.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,6 @@ struct BenchmarkConfig {
134134
category: Category,
135135
}
136136

137-
impl Default for BenchmarkConfig {
138-
fn default() -> BenchmarkConfig {
139-
BenchmarkConfig {
140-
cargo_opts: None,
141-
cargo_rustc_opts: None,
142-
cargo_toml: None,
143-
disabled: false,
144-
runs: default_runs(),
145-
supports_stable: false,
146-
touch_file: None,
147-
category: Category::Secondary,
148-
}
149-
}
150-
}
151-
152137
#[derive(Ord, PartialOrd, Eq, PartialEq, Clone, Hash)]
153138
pub struct BenchmarkName(pub String);
154139

@@ -1240,7 +1225,7 @@ impl Benchmark {
12401225
)
12411226
.with_context(|| format!("failed to parse {:?}", config_path))?
12421227
} else {
1243-
BenchmarkConfig::default()
1228+
bail!("missing a perf-config.json file for `{}`", name);
12441229
};
12451230

12461231
Ok(Benchmark {

0 commit comments

Comments
 (0)