aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types/type.go
diff options
context:
space:
mode:
authorMeng Zhuo <mzh@golangcn.org>2020-12-28 15:22:47 +0800
committerMeng Zhuo <mzh@golangcn.org>2020-12-28 07:45:19 +0000
commited9772e130d81b3a5a7b9e9b58e8d48a5ec4c319 (patch)
tree76c793ed6e4d1d858cdad1c7e6988c84a38a8747 /src/cmd/compile/internal/types/type.go
parenta59d26603f0dffbe6e914bc9ab29a2f9f70e5408 (diff)
downloadgo-ed9772e130d81b3a5a7b9e9b58e8d48a5ec4c319.tar.gz
go-ed9772e130d81b3a5a7b9e9b58e8d48a5ec4c319.zip
[dev.regabi] cmd/compile: add explicit file name in types generation
The stringer using `go list` for the type detection, which depends on GOROOT. Unfortunally by changing GOROOT to develop path will raise version mismatch with internal packages. Update #43369 Change-Id: Id81334ea5f1ecdbfa81eb2d162944d65664ce727 Reviewed-on: https://go-review.googlesource.com/c/go/+/280572 Trust: Meng Zhuo <mzh@golangcn.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/types/type.go')
-rw-r--r--src/cmd/compile/internal/types/type.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/types/type.go b/src/cmd/compile/internal/types/type.go
index b5557b492e..6feedbfabc 100644
--- a/src/cmd/compile/internal/types/type.go
+++ b/src/cmd/compile/internal/types/type.go
@@ -33,9 +33,9 @@ type VarObject interface {
RecordFrameOffset(int64) // save frame offset
}
-//go:generate stringer -type EType -trimprefix T
+//go:generate stringer -type Kind -trimprefix T type.go
-// EType describes a kind of type.
+// Kind describes a kind of type.
type Kind uint8
const (