Skip to content

Commit ba51901

Browse files
griesemergopherbot
authored andcommitted
doc: add release note for changes to go/types/SizesFor
For #61035. Change-Id: I27e2c44f9275b508d9dccc50da80896384a4c8fc Reviewed-on: https://go-review.googlesource.com/c/go/+/546837 TryBot-Bypass: Robert Griesemer <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]>
1 parent 5339306 commit ba51901

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/go1.22.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
516516
TODO: <a href="https://go.dev/issue/63223">https://go.dev/issue/63223</a>: API changes to support explicit Alias nodes
517517
</p>
518518

519-
<p><!-- https://go.dev/issue/61035 -->
520-
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
519+
<p><!-- https://go.dev/issue/61035, multiple CLs, see issue for details -->
520+
The implementation of <a href="/pkg/go/types#SizesFor"><code>SizesFor</code></a> has been adjusted to compute
521+
the same type sizes as the compiler when the compiler argument for <code>SizesFor</code> is <code>"gc"</code>.
522+
The default <a href="/pkg/go/types#Sizes"><code>Sizes</code></a> implementation used by the type checker is now
523+
<code>types.SizesFor("gc", "amd64")</code>.
521524
</p>
522525

523526
<p><!-- CL 541575 -->

0 commit comments

Comments
 (0)