From: Cuong Manh Le Date: Tue, 14 Nov 2023 03:33:25 +0000 (+0700) Subject: cmd/compile/internal/types2: mark gotypesalias as undocumented X-Git-Tag: go1.22rc1~333 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=acc8cb6a5f23d7fb57ea5825decd6bf0ae8723e9;p=gostls13.git cmd/compile/internal/types2: mark gotypesalias as undocumented CL 541737 added gotypesalias to control whether Alias types are used. This setting is meant to use by end users through go/types. However, types2 also uses it, but it's an internal package, causing bootstrap failed because of unknown setting. Marking the setting as undocumented in types2 fixes the problem. Fixes #64106 Change-Id: If51a63cb7a21d9411cd9cf81bca2530c476d22f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/542135 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek Reviewed-by: Mauri de Souza Meneguzzo Reviewed-by: Bryan Mills Auto-Submit: Cuong Manh Le --- diff --git a/src/cmd/compile/internal/types2/check.go b/src/cmd/compile/internal/types2/check.go index e8aed5d56e..381ccd8dcf 100644 --- a/src/cmd/compile/internal/types2/check.go +++ b/src/cmd/compile/internal/types2/check.go @@ -23,7 +23,7 @@ var nopos syntax.Pos const debug = false // leave on during development // gotypesalias controls the use of Alias types. -var gotypesalias = godebug.New("gotypesalias") +var gotypesalias = godebug.New("#gotypesalias") // exprInfo stores information about an untyped expression. type exprInfo struct {