From 34623f4d753169d8af72a75c8e72bbd27e64c01b Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Mon, 28 Mar 2022 11:22:25 -0700 Subject: [PATCH] Skip analysis of sync/atomic https://go.dev/issue/50860 is adding Pointer[T] to sync/atomic, which will trip up analyzers that don't handle generics. Skip it for now. Drop constraints, maps, slices, as they were dropped from the standard library. PiperOrigin-RevId: 437808952 --- tools/nogo/check/check.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/nogo/check/check.go b/tools/nogo/check/check.go index 8a9f55500..19116a89f 100644 --- a/tools/nogo/check/check.go +++ b/tools/nogo/check/check.go @@ -746,9 +746,7 @@ func SplitPackages(srcs []string, srcRootPrefix string) map[string][]string { // // TODO(b/201686256): remove once tooling can handle type parameters. var usesTypeParams = map[string]struct{}{ - "constraints": struct{}{}, // golang.org/issue/45458 - "maps": struct{}{}, // golang.org/issue/47649 - "slices": struct{}{}, // golang.org/issue/45955 + "sync/atomic": struct{}{}, // https://go.dev/issue/50860 } // Bundle checks a bundle of files (typically the standard library).