diff --git a/src/main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java b/src/main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java index af72cc51691752..076090ee0263ca 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java @@ -1045,19 +1045,8 @@ public Label label(Object input, StarlarkThread thread) throws EvalException { @Override public ExecGroup execGroup( - Sequence toolchains, - Sequence execCompatibleWith, - Boolean copyFromRule, - StarlarkThread thread) + Sequence toolchains, Sequence execCompatibleWith, StarlarkThread thread) throws EvalException { - if (copyFromRule) { - if (!toolchains.isEmpty() || !execCompatibleWith.isEmpty()) { - throw Starlark.errorf( - "An exec group cannot set copy_from_rule=True and declare toolchains or constraints."); - } - return ExecGroup.copyFromDefault(); - } - ImmutableSet toolchainTypes = parseToolchainTypes(toolchains, thread); ImmutableSet