From 77baa4c372ae014db8e17f6d3c60bd88597853d9 Mon Sep 17 00:00:00 2001 From: dslomov Date: Mon, 10 Jul 2017 17:15:27 +0200 Subject: Make native declared providers type-safe. RELNOTES: None. PiperOrigin-RevId: 161395570 --- .../com/google/devtools/build/lib/rules/platform/ToolchainRule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java') diff --git a/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java b/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java index 8065d35909..3c393e2269 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java @@ -59,7 +59,7 @@ public class ToolchainRule implements RuleDefinition { */ .add( attr(EXEC_COMPATIBLE_WITH_ATTR, BuildType.LABEL_LIST) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER)) + .mandatoryProviders(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id()) .allowedFileTypes() .nonconfigurable("part of toolchain configuration")) /* @@ -68,7 +68,7 @@ public class ToolchainRule implements RuleDefinition { */ .add( attr(TARGET_COMPATIBLE_WITH_ATTR, BuildType.LABEL_LIST) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER)) + .mandatoryProviders(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id()) .allowedFileTypes() .nonconfigurable("part of toolchain configuration")) /* -- cgit v1.2.3