internal/core/adt: remove EvalV2 optional tracking
Remove all OptionalType infrastructure and HasOptional
method as part of EvalV2 cleanup.
- Remove OptionalType type definition and constants
- Remove OptionalTypes() methods from Vertex and StructLit
- Remove FieldTypes field from CloseInfo struct
- Remove types field from StructLit struct
- Remove HasOptional() method (always returned false)
- Simplify verifyStructs() to always return true
- Update deprecated Template() function in cue/types.go
- Update IsOpen() function in internal/pkg/types.go
- Delete optional_test.go
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Ic43f6219b0a96e4b4b8111818dfec27e2e8208c9
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1220005
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>