]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: ensure that error code values do not change in 1.17
authorRob Findley <rfindley@google.com>
Wed, 28 Apr 2021 19:49:17 +0000 (15:49 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 29 Apr 2021 13:23:26 +0000 (13:23 +0000)
commitc8a92d454c74d89f172f6d534395a0553eff8f20
tree38a11d9ea106ab83f7ccdeb83364cdfb383af7a1
parent47cb0c46b206d3d1bcc176314c200e35c1f62cf2
go/types: ensure that error code values do not change in 1.17

Over this cycle some error code values have changed due to codes being
added/removed. This is probably OK to do once more before we export
error codes in a later Go version, but for now let's keep them stable.

Move things around to correct the changes, and update comments in
errorcodes.go to make it clearer that new codes should be added at the
end.

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