summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-05-02 12:38:00 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-05-02 12:38:22 +0200
commit326601fdcad8635625e7a706a5426652a4c1de78 (patch)
treefbca455a7783009dab4cefb850ce7906bf09e3df
parent71e53e4c05201e97717e5fef24c6e5ce5eda980c (diff)
downloadrules-cc-326601fdcad8635625e7a706a5426652a4c1de78.tar.gz
Expression ['', 'field_runfiles']: ensure disjointness
... by using "disjoint_map_union" instead of "map_union" which has a latest-wins semantics and does not have a "msg" arguement.
-rw-r--r--EXPRESSIONS2
1 files changed, 1 insertions, 1 deletions
diff --git a/EXPRESSIONS b/EXPRESSIONS
index 1c2ff84..f40e5a3 100644
--- a/EXPRESSIONS
+++ b/EXPRESSIONS
@@ -59,7 +59,7 @@
}
, "imports": {"runfiles_list": "field_runfiles_list"}
, "expression":
- { "type": "map_union"
+ { "type": "disjoint_map_union"
, "msg": "runfiles must not overlap"
, "$1": {"type": "CALL_EXPRESSION", "name": "runfiles_list"}
}