-
Notifications
You must be signed in to change notification settings - Fork 301
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: do not count validators as new data
To detect cycles, we track which conjuncts are cyclic and not, and we allow cyclic conjuncts as long as non-cyclic conjuncts are added. In this CL, we do not count validators as non-cyclic, but rather inert. This has the advantage that some structural cycles are detected earlier. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I4a20ec2dad1f07261f8e2859885ef781286f71c2 Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1208007 Reviewed-by: Matthew Sackman <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
2 changed files
with
87 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters