internal/core: fail on missing required only when concrete
In other case it is very much an incomplete error that should
be handled accordingly.
Also fixes a bug reporting issue where the error for a required
field that violates closedness did not get passed to the parent.
Fixes #2318
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Id3c629460e137a42fc7fe5dd44f05433c170d848
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552185
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>