cmd/compile/internal/syntax: remove AllowTypeSets mode

The respective issue has been accepted, so we can always
accept constraint literals with omitted interfaces.

For #48424.

Change-Id: Ia3d325401252a5a22d5ffa98d2ae6af73178dec0
Reviewed-on: https://go-review.googlesource.com/c/go/+/355709
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
Robert Griesemer 2021-10-13 11:50:46 -07:00
parent b90d258b18
commit 276fb279d1
7 changed files with 9 additions and 10 deletions

View file

@ -130,7 +130,7 @@ func testSyntaxErrors(t *testing.T, filename string) {
var mode Mode
if strings.HasSuffix(filename, ".go2") {
mode = AllowGenerics | AllowTypeSets
mode = AllowGenerics
}
ParseFile(filename, func(err error) {
e, ok := err.(Error)