-
Notifications
You must be signed in to change notification settings - Fork 292
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: fix matching of "_" label
The introduction of the wildcards in the API introduced a regression that caused the string label "_" (which has the feature label 0), to be incorrectly singled out. The logic has now changed to reflect this. Note that without the changed logic, TestAllow in cue/types_test.go will fail. This also fixes printing of Selectors. Again, here "_" was incorrectly singled out and would convert a string label to a hidden label. This only seems to affect debug output. Fixes #1454 Signed-off-by: Marcel van Lohuizen <mpvl@golang.org> Change-Id: If08166862a677738af47937710774f6af5448953 Signed-off-by: Marcel van Lohuizen <mpvl@golang.org> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/530860 Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
- Loading branch information
Showing
4 changed files
with
125 additions
and
9 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
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