fail on {dist, install} subcommand if download-rustc is enabled
This commit is contained in:
parent
a3bb170e37
commit
b0b4f4a1f3
1 changed files with 9 additions and 0 deletions
|
|
@ -414,6 +414,15 @@ impl StepDescription {
|
|||
.map(|desc| (desc.should_run)(ShouldRun::new(builder, desc.kind)))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
if builder.download_rustc() && (builder.kind == Kind::Dist || builder.kind == Kind::Install)
|
||||
{
|
||||
eprintln!(
|
||||
"ERROR: '{}' subcommand is incompatible with `rust.download-rustc`.",
|
||||
builder.kind.as_str()
|
||||
);
|
||||
crate::exit!(1);
|
||||
}
|
||||
|
||||
// sanity checks on rules
|
||||
for (desc, should_run) in v.iter().zip(&should_runs) {
|
||||
assert!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue