Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: add some defensive code
This change is needed for an upcoming change, where it would otherwise cause a crash. It addresses a few issues: In allChildConjunctsKnown: it was sometimes called with a status that is finalized. This was possible in some rare cases. It should be safe to simply return true in these cases, so that is what we do now. Separately, we changed one of the call sites in unify to no call this function if such a condition is met. Note that Rooted additionally tests whether the nonRooted flag is set. We separate out these changes so that bisection will isolate any issues caused by this. Issue cue-lang#2854 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I87df035ccdde61309884391131fa2a6de7d4887e Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202209 Reviewed-by: Matthew Sackman <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information