diff --git a/doc/go1.11.html b/doc/go1.11.html index 2ce6875bdb..e3a2f5f0f5 100644 --- a/doc/go1.11.html +++ b/doc/go1.11.html @@ -157,6 +157,35 @@ Do not send CLs removing the interior tags from such phrases. please file an issue to let us know about them.
+
+ Since Go1.10, the go test command runs
+ go vet on the package being tested,
+ to identify problems before running the test. Since vet
+ typechecks the code with go/types
+ before running, tests that do not typecheck will now fail.
+
+ In particular, tests that contain an unused variable inside a
+ closure compiled with Go1.10, because the Go compiler incorrectly
+ accepted them (Issue #3059),
+ but will now fail, since go/types correctly reports an
+ "unused variable" error in this case.
+
+ The go vet
+ command now reports a fatal error when the package under analysis
+ does not typecheck. Previously, a type checking error simply caused
+ a warning to be printed, and vet to exit with status 1.
+