]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: only avoid escaping package paths for "go.shape"
authorDan Scales <danscales@google.com>
Thu, 16 Dec 2021 21:24:40 +0000 (13:24 -0800)
committerDan Scales <danscales@google.com>
Thu, 16 Dec 2021 22:41:31 +0000 (22:41 +0000)
commit1387b5e91d76ba6727a7434c06f7c368d6c53d5c
tree017922f711865e4b57b6c3938c5502e458c50dd8
parentb1a53ece68d46e4fb59c74d2bc529060861f5dbf
cmd/compile: only avoid escaping package paths for "go.shape"

We have code that intends to avoid escaping the package path for
built-in packages. But it is hard to determine which packages are
built-in from a general rule, and we really only want to avoid escaping
for the "go.shape" package (since that gives ugly shape type names). So,
fix the code to only avoid escaping the package path specifically for
the "go.shape" package.

Fixes #50200

Change-Id: Ibaedd7690b99a173007c608c5dfa783ef82b326d
Reviewed-on: https://go-review.googlesource.com/c/go/+/372934
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/types/pkg.go