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
This commit is contained in:
Michael Pratt
2022-03-28 11:25:37 -07:00
committed by gVisor bot
parent b8fa96e201
commit 34623f4d75
+1 -3
View File
@@ -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).