1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:50:05 -07:00
go/doc
Alberto Donizetti bccbf59046 doc/go1.11: explain new vet typechecking behaviour in release notes
Since Go1.10, go test runs vet on the tests before executing them.

Moreover, the vet tool typechecks the package under analysis with
go/types before running. In Go1.10, a typechecking failure just caused
a warning to be printed. In Go1.11, a typechecking failure will cause
vet to exit with a fatal error (see Issue #21287).

This means that starting with Go1.11, tests that don't typecheck will
fail immediately. This would not normally be an issue, since a test
that doesn't typecheck shouldn't even compile, and it should already
be broken.

Unfortunately, there's a bug in gc that makes it accept programs with
unused variables inside a closure (Issue #3059). This means that a
test with an unused variable inside a closure, that compiled and
passed in Go1.10, will fail in the typechecking step of vet starting
with Go1.11.

Explain this in the 1.11 release notes.

Fixes #26109

Change-Id: I970c1033ab6bc985d8c64bd24f56e854af155f96
Reviewed-on: https://go-review.googlesource.com/121455
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-07-17 16:44:23 +00:00
..
articles doc/articles/wiki: highlight the use of _ warning 2018-02-14 04:54:37 +00:00
codewalk
devel doc: document Go 1.10.3 2018-06-06 00:03:55 +00:00
gopher
play
progs net/http,doc: use HTTP status code constants where applicable 2018-02-26 05:04:31 +00:00
asm.html cmd/compile: add softfloat support to mips64{,le} 2018-04-27 14:50:17 +00:00
cmd.html doc: website: changed link for cover 2017-06-18 16:19:31 +00:00
code.html doc: fix fmt usage in code.html 2018-06-13 22:00:24 +00:00
conduct.html doc: update Code of Conduct 2018-05-23 20:16:46 +00:00
contrib.html doc/contrib.html: fix outdated link 2017-12-11 22:15:38 +00:00
contribute.html doc/contribute: fix typo and reword a few sentences 2018-06-24 16:01:45 +00:00
debugging_with_gdb.html doc: update "Mac OS X", "OS X" to macOS; bump up to 10.10 2018-06-19 21:36:56 +00:00
diagnostics.html doc: update more stale pprof links 2018-06-17 21:35:39 +00:00
docs.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
editors.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
effective_go.html doc: make chart.apis.google.com link not clickable 2018-04-26 18:26:06 +00:00
gccgo_contribute.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
gccgo_install.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.1.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.2.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.3.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.4.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go1.5.html
go1.6.html doc: use HTTPS for clang.llvm.org link in go1.6.html 2018-06-12 15:03:24 +00:00
go1.7.html doc: use HTTPS for man.openbsd.org link in go1.7.html 2018-06-12 15:03:46 +00:00
go1.8.html doc: fix broken link in go1.8.html 2017-02-22 23:51:12 +00:00
go1.9.html doc/1.9: add mention of net/http.LocalAddrContextKey 2017-08-28 19:21:54 +00:00
go1.10.html doc: correct statement in go1.10 release notes 2018-04-23 22:21:48 +00:00
go1.11.html doc/go1.11: explain new vet typechecking behaviour in release notes 2018-07-17 16:44:23 +00:00
go1.html doc: change anchor URLs from golang.org/dl/ to /dl/ 2018-01-20 04:13:12 +00:00
go1compat.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go_faq.html doc: update Usage section of the FAQ 2018-07-17 10:07:18 +00:00
go_mem.html
go_spec.html doc: use HTTPS for links 2018-06-13 13:45:01 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html doc: hide content blocked by GFW when served in CN 2017-09-11 14:59:59 +00:00
ie.css
install-source.html doc: update "Mac OS X", "OS X" to macOS; bump up to 10.10 2018-06-19 21:36:56 +00:00
install.html doc: update the minimum support Windows version 2018-07-11 22:05:38 +00:00
root.html doc: update "Mac OS X", "OS X" to macOS; bump up to 10.10 2018-06-19 21:36:56 +00:00
security.html doc: dissuade people from using PGP for security reports 2017-04-17 18:33:08 +00:00
share.png
tos.html