]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types: strip annotations from errors
authorRob Findley <rfindley@google.com>
Fri, 15 Jan 2021 16:23:28 +0000 (11:23 -0500)
committerRobert Findley <rfindley@google.com>
Tue, 19 Jan 2021 21:29:12 +0000 (21:29 +0000)
commitf38f862417d19485468474646848d4294f8587b8
tree44c6202736817bacd17eded39f92053ff4df7faf
parent2e64511ac965085cc6a74888b0e441c7e4a47468
[dev.typeparams] go/types: strip annotations from errors

Strip annotations from errors before emitting them. This is a partial
merge from dev.go2go: the Error.Full field is omitted for now, and
stripAnnotations is integrated with the updated error handling from
master.

Change-Id: Ia24d66b691a10d90b258b0b688d50c6b176bd629
Reviewed-on: https://go-review.googlesource.com/c/go/+/284253
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Trust: Robert Findley <rfindley@google.com>
src/go/types/errors.go