From: Ian Lance Taylor
Date: Tue, 8 Jun 2021 19:42:02 +0000 (-0700)
Subject: doc/go1.17: mention new possibility of type conversion panicking
X-Git-Tag: go1.17beta1~12
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bcecae2af6;p=gostls13.git
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
Reviewed-by: Matthew Dempsky
---
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 unsafe.Add
or unsafe.Slice
.
+
+
+ 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.
+
+
Ports
Darwin