]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: explain changes to compiler error messages
authorRobert Griesemer <gri@golang.org>
Tue, 1 Feb 2022 17:07:49 +0000 (09:07 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Feb 2022 18:15:11 +0000 (18:15 +0000)
For #47694.
For #50954.

Change-Id: I3789e145d64025fe2bf787fa5d01a21832903586
Reviewed-on: https://go-review.googlesource.com/c/go/+/381968
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index daf8755b285929d7580e36022c83b01981e96517..b72c1288d1316384e3fde25de00a0a1e79ad7cfa 100644 (file)
@@ -443,6 +443,14 @@ Do not send CLs removing the interior tags from such phrases.
   new <code>go</code> command <code>-asan</code> option.
 </p>
 
+<p><!-- https://golang.org/issue/50954 -->
+  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.
+</p>
+
 <p> <!-- https://github.com/golang/go/issues/49569 -->
   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.