doc/go1.20: mention that calling T.Run from T.Cleanup will panic

For golang/go#48515

Change-Id: I1c616144a58e92fe4022d0e86f4208d68dcce816
Reviewed-on: https://go-review.googlesource.com/c/website/+/475215
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Rob Pike <r@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Ian Lance Taylor 2023-03-09 15:36:11 -08:00 коммит произвёл Gopher Robot
Родитель 94b96fa4bb
Коммит 7c7b7456ef
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1192,6 +1192,13 @@ proxyHandler := &httputil.ReverseProxy{
reports the current elapsed time of the benchmark, which may be useful for
calculating rates to report with <code>ReportMetric</code>.
</p>
<p><!-- https://go.dev/issue/48515, CL 352349 -->
Calling <a href="/pkg/testing/#T.Run"><code>T.Run</code></a>
from a function passed
to <a href="/pkg/testing/#T.Cleanup"><code>T.Cleanup</code></a>
was never well-defined, and will now panic.
</p>
</dd>
</dl><!-- testing -->