]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc: add release note for cgo error on methods on C types
authorEli Bendersky <eliben@golang.org>
Thu, 1 Jun 2023 13:11:51 +0000 (06:11 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 1 Jun 2023 14:43:34 +0000 (14:43 +0000)
Change-Id: Ibc5f23f37e5bd45034771a0205eadac3072d6870
Reviewed-on: https://go-review.googlesource.com/c/go/+/499816
TryBot-Bypass: Eli Bendersky <eliben@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Eli Bendersky <eliben@google.com>

doc/go1.21.html

index 9c1383a16f34556787d379de9170db855e55a7c1..78977a173dd1a804966c816cc0a9d05d4fe31fa7 100644 (file)
@@ -216,6 +216,13 @@ Do not send CLs removing the interior tags from such phrases.
   <!-- cmd/go: make go test build multiple executables; The go test command now supports using the -c flag with multiple packages. -->
 </p>
 
+<h3 id="cgo">Cgo</h3>
+
+<p><!-- CL 490819 -->
+  In files that <code>import "C"</code>, the Go toolchain now
+  correctly reports errors for attempts to declare Go methods on C types.
+</p>
+
 <h2 id="runtime-changes">Runtime</h2>
 
 <p>
@@ -280,11 +287,6 @@ Do not send CLs removing the interior tags from such phrases.
   such as inlining the callee.
 </p>
 
-<!-- CL 490819 -->
-<p>
-  <!-- cmd/cgo: reject attempts to declare methods on C types -->
-</p>
-
 <!-- CL 461315 -->
 <p>
   <!-- cmd/compile: enable deadcode of unreferenced large global maps -->