From f051ec64639b83faabcfe766ff078072def3c2aa Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Wed, 17 Feb 2021 17:39:24 -0800 Subject: Add gohacks.Slice/StringHeader. See https://github.com/golang/go/issues/19367 for rationale. Note that the upstream decision arrived at in that thread, while useful for some of our use cases, doesn't account for all of our SliceHeader use cases (we often use SliceHeader to extract pointers from slices in a way that avoids bounds checking and/or handles nil slices correctly) and also doesn't exist yet. PiperOrigin-RevId: 358071574 --- pkg/safemem/BUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/safemem/BUILD') diff --git a/pkg/safemem/BUILD b/pkg/safemem/BUILD index 68ed074f8..d3b9b0ca9 100644 --- a/pkg/safemem/BUILD +++ b/pkg/safemem/BUILD @@ -11,7 +11,10 @@ go_library( "seq_unsafe.go", ], visibility = ["//:sandbox"], - deps = ["//pkg/safecopy"], + deps = [ + "//pkg/gohacks", + "//pkg/safecopy", + ], ) go_test( -- cgit v1.2.3