From: Robert Griesemer Date: Fri, 18 Nov 2022 00:09:15 +0000 (-0800) Subject: go/types, types2: replace some Errorf calls with Error calls (cleanup) X-Git-Tag: go1.20rc1~173 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7f75b72904e9d7ac512307514c29043ff604bacb;p=gostls13.git go/types, types2: replace some Errorf calls with Error calls (cleanup) Change-Id: I9b6759a82b8009b323132c78cb7d78c2c35652bd Reviewed-on: https://go-review.googlesource.com/c/go/+/451815 Reviewed-by: Robert Griesemer Reviewed-by: Robert Findley Auto-Submit: Robert Griesemer Run-TryBot: Robert Griesemer TryBot-Result: Gopher Robot --- diff --git a/src/cmd/compile/internal/types2/issues_test.go b/src/cmd/compile/internal/types2/issues_test.go index c45c536e91..1fda04b9c5 100644 --- a/src/cmd/compile/internal/types2/issues_test.go +++ b/src/cmd/compile/internal/types2/issues_test.go @@ -593,24 +593,24 @@ func TestIssue50646(t *testing.T) { comparableType := Universe.Lookup("comparable").Type() if !Comparable(anyType) { - t.Errorf("any is not a comparable type") + t.Error("any is not a comparable type") } if !Comparable(comparableType) { - t.Errorf("comparable is not a comparable type") + t.Error("comparable is not a comparable type") } if Implements(anyType, comparableType.Underlying().(*Interface)) { - t.Errorf("any implements comparable") + t.Error("any implements comparable") } if !Implements(comparableType, anyType.(*Interface)) { - t.Errorf("comparable does not implement any") + t.Error("comparable does not implement any") } if AssignableTo(anyType, comparableType) { - t.Errorf("any assignable to comparable") + t.Error("any assignable to comparable") } if !AssignableTo(comparableType, anyType) { - t.Errorf("comparable not assignable to any") + t.Error("comparable not assignable to any") } } diff --git a/src/go/types/issues_test.go b/src/go/types/issues_test.go index 5cee7a055e..02ec67ff84 100644 --- a/src/go/types/issues_test.go +++ b/src/go/types/issues_test.go @@ -619,24 +619,24 @@ func TestIssue50646(t *testing.T) { comparableType := Universe.Lookup("comparable").Type() if !Comparable(anyType) { - t.Errorf("any is not a comparable type") + t.Error("any is not a comparable type") } if !Comparable(comparableType) { - t.Errorf("comparable is not a comparable type") + t.Error("comparable is not a comparable type") } if Implements(anyType, comparableType.Underlying().(*Interface)) { - t.Errorf("any implements comparable") + t.Error("any implements comparable") } if !Implements(comparableType, anyType.(*Interface)) { - t.Errorf("comparable does not implement any") + t.Error("comparable does not implement any") } if AssignableTo(anyType, comparableType) { - t.Errorf("any assignable to comparable") + t.Error("any assignable to comparable") } if !AssignableTo(comparableType, anyType) { - t.Errorf("comparable not assignable to any") + t.Error("comparable not assignable to any") } }