aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/syntax/Eval.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/syntax/Eval.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/Eval.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/Eval.java b/src/main/java/com/google/devtools/build/lib/syntax/Eval.java
index 33ce4426bb..98130ae3ff 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/Eval.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/Eval.java
@@ -124,17 +124,6 @@ public class Eval {
}
void execLoad(LoadStatement node) throws EvalException, InterruptedException {
- if (env.getSemantics().incompatibleLoadArgumentIsLabel()) {
- String s = node.getImport().getValue();
- if (!s.startsWith("//") && !s.startsWith(":") && !s.startsWith("@")) {
- throw new EvalException(
- node.getLocation(),
- "First argument of 'load' must be a label and start with either '//', ':', or '@'. "
- + "Use --incompatible_load_argument_is_label=false to temporarily disable this "
- + "check.");
- }
- }
-
for (Map.Entry<Identifier, String> entry : node.getSymbolMap().entrySet()) {
try {
Identifier name = entry.getKey();