internal/core/adt: implement BuiltinValidator equality
Two BuiltinValidator values are equal when they
wrap the same *Builtin (pointer identity, since
builtins are singletons) and have pairwise-equal
Args. Previously the case was empty, making all
BuiltinValidator comparisons return false.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Id1de9f19ebee699abed4c53f5e4f13bbc95d5324
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1234638
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>