summaryrefslogtreecommitdiffhomepage
path: root/pkg/gohacks
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-07-30 20:47:08 +0000
committergVisor bot <gvisor-bot@google.com>2021-07-30 20:47:08 +0000
commit8110ab1bd357b5cb6cdf4e18e9fabf8cbe4950e5 (patch)
tree52c621494f5f8184b356c33cfdeeb8e7ae7c7a45 /pkg/gohacks
parent904163540563b2d9c1069ae348a1a4e05efc675c (diff)
parent62ea5c0a2212b9827f093551fc3da166facb9f0b (diff)
Merge release-20210726.0-12-g62ea5c0a2 (automated)
Diffstat (limited to 'pkg/gohacks')
-rw-r--r--pkg/gohacks/gohacks_unsafe.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/gohacks/gohacks_unsafe.go b/pkg/gohacks/gohacks_unsafe.go
index 09fc14787..bd8ceba19 100644
--- a/pkg/gohacks/gohacks_unsafe.go
+++ b/pkg/gohacks/gohacks_unsafe.go
@@ -15,7 +15,13 @@
//go:build go1.13 && !go1.18
// +build go1.13,!go1.18
-// Check type signatures when updating Go version.
+// //go:linkname directives type-checked by checklinkname. Any other
+// non-linkname assumptions outside the Go 1 compatibility guarantee should
+// have an accompanied vet check or version guard build tag.
+
+// Check type signatures and Noescape when updating Go version.
+//
+// TODO(b/165820485): add these checks to checklinkname.
// Package gohacks contains utilities for subverting the Go compiler.
package gohacks