cue: fail on required field in various cases
In the cue package, structValue used to keep a list
of features to include. This is no longer necessary, as
optional and required fields are now arcs as well.
We replace it with a list of arcs instead. This allows
replacement arcs to be generated to reflect a required
field error when appropriate.
Fixes #2309
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Id028719ec329b8d586822117c7a8c3e75e9c8ee4
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552170
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>