internal/core/adt: limit closedness check in Equal
The closedness check only makes sense
for CheckStructural . The flags != 0 test was
used before some of the other options were
introduced. We now only check closedness
if CheckStructural is enabled.
Note that this currently only impacts evalv2
behavior. The resulting changes are correct.
Issue #2583
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I32a188f2d092469f043f6ae047cf914ffef90708
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1217007
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>