mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
go/types, types2: remove (C/c)ompilerErrorMessages flag - not needed anymore
Fixes #55326. Change-Id: Ic300976ddf504224faadc5bae21736fe94dac6bf Reviewed-on: https://go-review.googlesource.com/c/go/+/435416 Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Run-TryBot: Robert Griesemer <gri@google.com>
This commit is contained in:
parent
8c29881dd1
commit
5612215d32
3 changed files with 3 additions and 13 deletions
|
|
@ -43,10 +43,9 @@ func checkFiles(noders []*noder) (posMap, *types2.Package, *types2.Info) {
|
|||
packages: make(map[string]*types2.Package),
|
||||
}
|
||||
conf := types2.Config{
|
||||
Context: ctxt,
|
||||
GoVersion: base.Flag.Lang,
|
||||
IgnoreBranchErrors: true, // parser already checked via syntax.CheckBranches mode
|
||||
CompilerErrorMessages: true, // use error strings matching existing compiler errors
|
||||
Context: ctxt,
|
||||
GoVersion: base.Flag.Lang,
|
||||
IgnoreBranchErrors: true, // parser already checked via syntax.CheckBranches mode
|
||||
Error: func(err error) {
|
||||
terr := err.(types2.Error)
|
||||
msg := terr.Msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue