From: Robert Griesemer
Date: Tue, 1 Feb 2022 17:07:49 +0000 (-0800)
Subject: doc/go1.18: explain changes to compiler error messages
X-Git-Tag: go1.18rc1~132
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a42bbf47d6b0d6f67ad843252cb2e8f56a9d32b7;p=gostls13.git
doc/go1.18: explain changes to compiler error messages
For #47694.
For #50954.
Change-Id: I3789e145d64025fe2bf787fa5d01a21832903586
Reviewed-on: https://go-review.googlesource.com/c/go/+/381968
Trust: Robert Griesemer
Reviewed-by: Ian Lance Taylor
---
diff --git a/doc/go1.18.html b/doc/go1.18.html
index daf8755b28..b72c1288d1 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -443,6 +443,14 @@ Do not send CLs removing the interior tags from such phrases.
new go
command -asan
option.
+
+ Because the compiler's type checker was replaced in its entirety to
+ support generics, some error messages now may use different wording
+ than before. In some cases, pre-Go 1.18 error messages provided more
+ detail or were phrased in a more helpful way.
+ We intend to address these cases in Go 1.19.
+
+
Because of changes in the compiler related to supporting generics, the
Go 1.18 compile speed can be roughly 15% slower than the Go 1.17 compile speed.