]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/bio: rename Reader.Seek to MustSeek
authorRuss Cox <rsc@golang.org>
Wed, 8 May 2019 22:46:04 +0000 (18:46 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 9 May 2019 16:56:31 +0000 (16:56 +0000)
commitffd7eba20a0b21e2af038ed4bedfe4a052aa22b7
treed6994453cf9885497230ad9e10cddf759ec0dc16
parentff70494b75fab24f43b79f069afcdc196e11ec32
cmd/internal/bio: rename Reader.Seek to MustSeek

Renaming the method makes clear, both to readers and to vet,
that this method is not the implementation of io.Seeker:
it cannot fail.

Working toward making the tree vet-safe instead of having
so many exceptions in cmd/vet/all/whitelist.

For #31916.

Change-Id: I3e6ad7264cb0121b4b76935450cccb71d533e96b
Reviewed-on: https://go-review.googlesource.com/c/go/+/176108
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
12 files changed:
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/obj.go
src/cmd/internal/bio/buf.go
src/cmd/internal/bio/buf_mmap.go
src/cmd/link/internal/ld/ar.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/loadelf/ldelf.go
src/cmd/link/internal/loadmacho/ldmacho.go
src/cmd/link/internal/loadpe/ldpe.go
src/cmd/link/internal/loadxcoff/ldxcoff.go
src/cmd/link/internal/objfile/objfile.go
src/cmd/vet/all/whitelist/all.txt