diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-06-08 12:42:02 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-06-08 22:35:56 +0000 |
commit | bcecae2af6ee43abebf84411385d538ec4e7d0ea (patch) | |
tree | c06c71ec3e86ad0def73dfa5f7db04509e7be0e1 /doc | |
parent | 63dcab2e91cfa40ae6dc1f0455b1f3c2801a00ec (diff) | |
download | go-bcecae2af6ee43abebf84411385d538ec4e7d0ea.tar.gz go-bcecae2af6ee43abebf84411385d538ec4e7d0ea.zip |
doc/go1.17: mention new possibility of type conversion panicking
For #44513
For #46020
Change-Id: I07c7a4268465c536d1866cc6bb1fad76b2b88b15
Reviewed-on: https://go-review.googlesource.com/c/go/+/326149
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.17.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html index cc3bcdf180..011377a84e 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -67,6 +67,14 @@ Do not send CLs removing the interior tags from such phrases. using <code>unsafe.Add</code> or <code>unsafe.Slice</code>. </p> + +<p> + Note that the new conversion from slice to array pointer is the + first case in which a type conversion can panic at run time. + Analysis tools that assume type conversions can never panic + should be updated to consider this possibility. +</p> + <h2 id="ports">Ports</h2> <h3 id="darwin">Darwin</h3> |