diff options
author | Googler <noreply@google.com> | 2016-09-05 10:44:11 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2016-09-06 15:38:37 +0000 |
commit | f53a136d37f89de9bc4bb0f2b25ff4197edabad3 (patch) | |
tree | f59a35685c3d1e5906d3ba8adb846ff3547f7cc2 /src/main/java | |
parent | 5fd7da5b801a929c669b58322ce5f730b26818fd (diff) |
Fix misleading warning for rule dependency
RELNOTES: Reverts a change that lead to misleading warnings.
--
MOS_MIGRATED_REVID=132230645
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java index 11d2730628..f74ec75055 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java @@ -1846,7 +1846,7 @@ public final class RuleContext extends TargetContext Predicate<RuleClass> warningPredicate = attribute.getAllowedRuleClassesWarningPredicate(); if (warningPredicate.apply(ruleClass)) { reportBadPrerequisite(attribute, prerequisiteTarget.getTargetKind(), prerequisite, - "expected " + warningPredicate, true); + "expected " + attribute.getAllowedRuleClassesPredicate(), true); return; } } |