pkg: do not treat unknown Go types as adt.TopKind
We had one of these cases with pkg/time.Split, which returned
the type Parts, which is a struct. Declaring the result kind as
adt.TopKind works, but declaring it as adt.StructKind is more precise.
We no longer have a catch-all default, forcing us to handle all types
in the best way we can, much like adtKind does now.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ie890f45c0918e0c2f18c5a60679fecebf7133fb4
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201036
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>