go/src/reflect
Carlo Alberto Ferraris bc2e961cf4 reflect: deprecate (Slice|String)Header
As discussed in CL 401434 there are substantial misuses of these in the
wild, and they are a potential source of unsafety even for code that
does not use them directly.

We should either keep them as-is and document when/how they can be used
safely, or deprecate them so that uses will eventually die out.

After some discussion, it was decided to deprecate them outright.
Since the docs already mentioned that they may be unstable across
releases, it should be possible to get rid of them completely later on.

Change-Id: I3b75819409177b5a286c1e9861a2edb6fd1301b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/401434
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
2022-05-18 15:15:29 +00:00
..
internal reflect: fix stack overflow panic when using haveIdenticalUnderlyingType 2021-04-20 20:14:14 +00:00
abi.go reflect, runtime: drop RegabiArgs conditions 2022-03-18 15:17:37 +00:00
abi_test.go all: separate doc comment from //go: directives 2022-04-05 17:54:15 +00:00
all_test.go reflect: derive correct Value method in panic messages 2022-05-04 00:51:08 +00:00
asm_386.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_amd64.s [dev.typeparams] reflect: call ABI0 spill/unspill functions on AMD64 2021-06-01 22:33:29 +00:00
asm_arm.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_arm64.s all: delete ARM64 non-register ABI fallback path 2022-03-18 18:26:13 +00:00
asm_mips64x.s all: remove more leftover // +build lines 2021-11-06 10:24:44 +00:00
asm_mipsx.s all: remove more leftover // +build lines 2021-11-06 10:24:44 +00:00
asm_ppc64x.s all: remove more leftover // +build lines 2021-11-06 10:24:44 +00:00
asm_riscv64.s reflect, runtime: add reflect support for regabi on riscv64 2022-04-01 01:41:42 +00:00
asm_s390x.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
asm_wasm.s reflect: add register ABI support for makeFuncStub and methodValueCall 2021-04-02 16:53:18 +00:00
deepequal.go all: replace `` and '' with “ (U+201C) and ” (U+201D) in doc comments 2022-04-05 17:52:29 +00:00
example_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
export_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
float32reg_generic.go reflect: implement float32 for regabi riscv64 2022-05-04 13:38:32 +00:00
float32reg_ppc64x.s all: remove more leftover // +build lines 2021-11-06 10:24:44 +00:00
float32reg_riscv64.s reflect: implement float32 for regabi riscv64 2022-05-04 13:38:32 +00:00
makefunc.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
set_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
stubs_ppc64x.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
stubs_riscv64.go reflect: implement float32 for regabi riscv64 2022-05-04 13:38:32 +00:00
swapper.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
tostring_test.go all: use reflect.{Pointer,PointerTo} 2021-10-26 14:24:17 +00:00
type.go reflect: remove unused overflowPad variable 2022-04-20 22:49:26 +00:00
value.go reflect: deprecate (Slice|String)Header 2022-05-18 15:15:29 +00:00
visiblefields.go all: use reflect.{Pointer,PointerTo} 2021-10-26 14:24:17 +00:00
visiblefields_test.go all: consistently use US spelling of present participles 2022-04-08 13:44:41 +00:00