internal/core: search harder for BinExprs in toposort
Finding explicit unifications (`a & b`) is essential for correct
construction of the graph of nodes, which is central to toposort. By
searching through a vertex's structinfo's Decls, we can find more
BinExprs, and so build more correct graphs.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: Id19b772617b59853e38b4291560e9689b6e2e111
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207585
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>