internal/core/dep: always introduce Environment for Comprehension Value to fix panic
Comprehension conjuncts need an extra wrapping of
an Evaluator to account for the Comprehenion's Value clauses.
The dep package creates its own Evaluator. But for Comprehensions
that get "pushed down" (in case of a fixed field), markExpr would
discard the Comprehension and mark references in the Value before
the Value was actually unwrapped. This has now been fixed.
This introduces some more reporting of "inner" dependencies
(msg => msg, in this case), which is a known problem that should
be solved in another CL.
Fixes #2512
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: If28f59fccf6f8dbe7e81a132607b542af737044b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/557517
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
authored by