Skip to content

Commit 2b3ce3c

Browse files
committed
knowledge: add deprecated for Go 1.21
(cherry picked from commit 8e32e9b)
1 parent e1e1550 commit 2b3ce3c

File tree

1 file changed

+22
-32
lines changed

1 file changed

+22
-32
lines changed

knowledge/deprecated.go

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -187,54 +187,44 @@ var StdlibDeprecations = map[string]Deprecation{
187187
"syscall.Syscall18": {18, 18},
188188
"syscall.Syscall6": {18, 18},
189189
"syscall.Syscall9": {18, 18},
190+
191+
"reflect.SliceHeader": {21, 17},
192+
"reflect.StringHeader": {21, 20},
193+
"crypto/elliptic.GenerateKey": {21, 21},
194+
"crypto/elliptic.Marshal": {21, 21},
195+
"crypto/elliptic.Unmarshal": {21, 21},
196+
"(*crypto/elliptic.CurveParams).Add": {21, 21},
197+
"(*crypto/elliptic.CurveParams).Double": {21, 21},
198+
"(*crypto/elliptic.CurveParams).IsOnCurve": {21, 21},
199+
"(*crypto/elliptic.CurveParams).ScalarBaseMult": {21, 21},
200+
"(*crypto/elliptic.CurveParams).ScalarMult": {21, 21},
201+
"crypto/rsa.GenerateMultiPrimeKey": {21, DeprecatedNeverUse},
202+
"(crypto/rsa.PrecomputedValues).CRTValues": {21, DeprecatedNeverUse},
203+
"(crypto/x509.RevocationList).RevokedCertificates": {21, 21},
190204
}
191205

192-
// Last imported from Go at 9f0234214473dfb785a5ad84a8fc62a6a395cbc3 with the following numbers of deprecations:
206+
// Last imported from Go at c19c4c566c63818dfd059b352e52c4710eecf14d with the following numbers of deprecations:
193207
//
194208
// archive/tar/common.go:2
195209
// archive/zip/struct.go:6
196210
// bytes/bytes.go:1
197-
// cmd/api/testdata/src/pkg/p1/p1.go:8
198-
// cmd/api/testdata/src/pkg/p2/p2.go:2
199-
// cmd/api/testdata/src/pkg/p4/p4.go:1
200-
// cmd/compile/internal/noder/quirks.go:1
201-
// cmd/compile/internal/reflectdata/reflect.go:2
202-
// cmd/compile/internal/syntax/walk.go:1
203-
// cmd/compile/internal/types/sym.go:3
204-
// cmd/go/internal/modcmd/edit.go:1
205-
// cmd/go/testdata/mod/example.com_deprecated_a_v1.9.0.txt:2
206-
// cmd/go/testdata/mod/example.com_deprecated_b_v1.9.0.txt:2
207-
// cmd/go/testdata/mod/example.com_undeprecated_v1.0.0.txt:2
208-
// cmd/go/testdata/script/mod_deprecate_message.txt:4
209-
// cmd/go/testdata/script/mod_edit.txt:1
210-
// cmd/go/testdata/script/mod_list_deprecated.txt:2
211-
// cmd/go/testdata/script/mod_list_deprecated_replace.txt:1
212-
// cmd/internal/obj/link.go:5
213-
// cmd/internal/obj/textflag.go:1
214-
// cmd/vendor/golang.org/x/mod/modfile/rule.go:2
215-
// cmd/vendor/golang.org/x/mod/semver/semver.go:1
216-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go:1
217-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go:1
218-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go:1
219-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go:1
220-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go:1
221-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go:1
222-
// cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go:1
223-
// cmd/vendor/golang.org/x/sys/windows/security_windows.go:1
224-
// cmd/vendor/golang.org/x/sys/windows/syscall_windows.go:2
225211
// compress/flate/inflate.go:2
226212
// crypto/dsa/dsa.go:1
213+
// crypto/elliptic/elliptic.go:8
214+
// crypto/elliptic/params.go:5
227215
// crypto/rc4/rc4.go:1
228-
// crypto/tls/common.go:7
216+
// crypto/rsa/rsa.go:2
217+
// crypto/tls/common.go:6
229218
// crypto/x509/cert_pool.go:1
230219
// crypto/x509/pem_decrypt.go:3
231220
// crypto/x509/pkix/pkix.go:2
232-
// crypto/x509/x509.go:5
221+
// crypto/x509/x509.go:6
233222
// database/sql/driver/driver.go:6
234223
// debug/gosym/pclntab.go:2
235224
// encoding/csv/reader.go:2
236225
// encoding/json/decode.go:1
237226
// encoding/json/encode.go:1
227+
// go/build/build.go:1
238228
// go/doc/comment.go:2
239229
// go/doc/doc.go:1
240230
// go/doc/synopsis.go:1
@@ -260,7 +250,7 @@ var StdlibDeprecations = map[string]Deprecation{
260250
// path/filepath/path_plan9.go:1
261251
// path/filepath/path_unix.go:1
262252
// path/filepath/path_windows.go:1
263-
// reflect/value.go:1
253+
// reflect/value.go:3
264254
// regexp/regexp.go:1
265255
// runtime/cpuprof.go:1
266256
// strings/strings.go:1

0 commit comments

Comments
 (0)