internal/core/adt: partial revert of fixes for 3919
We removed a piece of code which seemingly
was redundant after the fix for 3919. It turns
out, though, that it is still necessary in some
cases. Reverting it did not affect the results
of 3919 except one change in an error message,
which is now what it was before the change
for 3919.
Issue #3919
Fixes #3931
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I4d8657e3b3c85ab67e60684d3726c6f819e296f3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1215499
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>