]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add release note for changes to go/types/SizesFor
authorRobert Griesemer <gri@golang.org>
Mon, 4 Dec 2023 19:38:50 +0000 (11:38 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 5 Dec 2023 22:42:45 +0000 (22:42 +0000)
For #61035.

Change-Id: I27e2c44f9275b508d9dccc50da80896384a4c8fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/546837
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>

doc/go1.22.html

index dc752a9ffedc202622a1b57b7097a98eb947652c..c1535cc275aaf1095d2f51a2116ea0ee284d8eb5 100644 (file)
@@ -516,8 +516,11 @@ Do not send CLs removing the interior tags from such phrases.
       TODO: <a href="https://go.dev/issue/63223">https://go.dev/issue/63223</a>: API changes to support explicit Alias nodes
     </p>
 
-    <p><!-- https://go.dev/issue/61035 -->
-      TODO: <a href="https://go.dev/issue/61035">https://go.dev/issue/61035</a>: go/types, types2: fix SizesFor(&#34;gc&#34;, ...) to match actual gc behavior
+    <p><!-- https://go.dev/issue/61035, multiple CLs, see issue for details -->
+      The implementation of <a href="/pkg/go/types#SizesFor"><code>SizesFor</code></a> has been adjusted to compute
+      the same type sizes as the compiler when the compiler argument for <code>SizesFor</code> is <code>"gc"</code>.
+      The default <a href="/pkg/go/types#Sizes"><code>Sizes</code></a> implementation used by the type checker is now
+      <code>types.SizesFor("gc", "amd64")</code>.
     </p>
 
     <p><!-- CL 541575 -->