cmd/compile: the output messages for some generic functions are confusing when using -gcflags="-m -m"
#58140
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
Consistent messages for the two generic functions, and cleaner messages.
What did you see instead?
Here is the simplified version:
It looks, for each of the generic functions, there are two groups of instances:
go.shape.xxx
group andxxx
group.Why two groups? It is some confusing.
And for the
Compare
function, thexxx
group can be inlined, but thego.shape.xxx
group can't. For theCommonPrefixes
function, it is the inverse. This makes developers unsure whether or not a generic function can be inlined or not.The text was updated successfully, but these errors were encountered: