commit | 1899472647513e6a63a95481493c45c579ec0cd8 | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Mon Apr 18 16:47:42 2022 -0400 |
committer | Robert Findley <rfindley@google.com> | Fri Apr 22 15:44:57 2022 +0000 |
tree | 3698d9539bcda76001677bbdad2199d86c594d64 | |
parent | 507b70d1e879ed51830d1f64f534c685b8ee1b13 [diff] |
go/types: remove unnecessary indirection when reporting errors Checker.err was only called to report errors created with Checker.newError or Checker.newErrorf. Update the API to pass around *Error rather than error, eliminating unnecessary type assertions and handling. Change-Id: I995a120c7e87266e656b8ff3fd9ed3d368fd17fc Reviewed-on: https://go-review.googlesource.com/c/go/+/400823 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.