[dev.boringcrypto] all: convert +build to //go:build lines in boring-specific files

This makes the latest Go 1.18 cmd/dist happier.

Change-Id: If1894ce4f60a0b604a2bd889974ddb16c405e0c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/359474
Trust: Russ Cox <rsc@golang.org>
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/src/crypto/boring/notboring_test.go b/src/crypto/boring/notboring_test.go
index 385a384..e69a3a9 100644
--- a/src/crypto/boring/notboring_test.go
+++ b/src/crypto/boring/notboring_test.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !boringcrypto
 // +build !boringcrypto
 
 package boring_test
diff --git a/src/crypto/internal/boring/aes.go b/src/crypto/internal/boring/aes.go
index 504a841..b5d3601 100644
--- a/src/crypto/internal/boring/aes.go
+++ b/src/crypto/internal/boring/aes.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/boring.go b/src/crypto/internal/boring/boring.go
index 9ccad7eb..f34243f 100644
--- a/src/crypto/internal/boring/boring.go
+++ b/src/crypto/internal/boring/boring.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/ecdsa.go b/src/crypto/internal/boring/ecdsa.go
index 4fcba4b..b9c68a9 100644
--- a/src/crypto/internal/boring/ecdsa.go
+++ b/src/crypto/internal/boring/ecdsa.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/hmac.go b/src/crypto/internal/boring/hmac.go
index 01b5844..be0670c 100644
--- a/src/crypto/internal/boring/hmac.go
+++ b/src/crypto/internal/boring/hmac.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/notboring.go b/src/crypto/internal/boring/notboring.go
index c21cb3c..2e2414c 100644
--- a/src/crypto/internal/boring/notboring.go
+++ b/src/crypto/internal/boring/notboring.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !linux || !amd64 || !cgo || android || cmd_go_bootstrap || msan
 // +build !linux !amd64 !cgo android cmd_go_bootstrap msan
 
 package boring
diff --git a/src/crypto/internal/boring/rand.go b/src/crypto/internal/boring/rand.go
index c3fc27c..57937eb 100644
--- a/src/crypto/internal/boring/rand.go
+++ b/src/crypto/internal/boring/rand.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/rsa.go b/src/crypto/internal/boring/rsa.go
index a10831d..327dfa0 100644
--- a/src/crypto/internal/boring/rsa.go
+++ b/src/crypto/internal/boring/rsa.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/sha.go b/src/crypto/internal/boring/sha.go
index 5ca158c..4672119 100644
--- a/src/crypto/internal/boring/sha.go
+++ b/src/crypto/internal/boring/sha.go
@@ -2,10 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,amd64
-// +build !android
-// +build !cmd_go_bootstrap
-// +build !msan
+//go:build linux && amd64 && !android && !cmd_go_bootstrap && !msan
+// +build linux,amd64,!android,!cmd_go_bootstrap,!msan
 
 package boring
 
diff --git a/src/crypto/internal/boring/sig/sig_other.s b/src/crypto/internal/boring/sig/sig_other.s
index 2eb3173..2bbb1df 100644
--- a/src/crypto/internal/boring/sig/sig_other.s
+++ b/src/crypto/internal/boring/sig/sig_other.s
@@ -7,6 +7,7 @@
 // search a particular binary to see if they are present.
 // On other platforms (those using this source file), they don't.
 
+//go:build !amd64
 // +build !amd64
 
 TEXT ·BoringCrypto(SB),$0
diff --git a/src/crypto/sha1/boring.go b/src/crypto/sha1/boring.go
index 44c2609..1cacf93 100644
--- a/src/crypto/sha1/boring.go
+++ b/src/crypto/sha1/boring.go
@@ -6,6 +6,7 @@
 // cmd/internal/boring is not even imported, so that we don't
 // have to maintain changes to cmd/dist's deps graph.
 
+//go:build !cmd_go_bootstrap
 // +build !cmd_go_bootstrap
 
 package sha1
diff --git a/src/crypto/sha1/notboring.go b/src/crypto/sha1/notboring.go
index 9726fcd..2412c90 100644
--- a/src/crypto/sha1/notboring.go
+++ b/src/crypto/sha1/notboring.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build cmd_go_bootstrap
 // +build cmd_go_bootstrap
 
 package sha1