]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: simple shape cleanups
authorDan Scales <danscales@google.com>
Mon, 2 Aug 2021 18:07:45 +0000 (11:07 -0700)
committerDan Scales <danscales@google.com>
Mon, 2 Aug 2021 21:26:07 +0000 (21:26 +0000)
commite56234a30544c043b45601ce01601e3a03e00d63
tree85615813898f63a28e1b8446454ab06d0f8a045e
parentc3c19731a9dd128b5b81c9062416804a5a4893d2
[dev.typeparams] cmd/compile: simple shape cleanups

 - Changed some early returns to asserts (instantiateMethods and Shapify
   should never take a shape arg)

 - Added suggested change (by Ingo) to use copy() in getInstantiation()

 - Clarified that shape types never have methods in Shapify(), removed
   some TODO comments.

Change-Id: Ia2164ffe670a777f7797bbb45c7ef5e6e9e15357
Reviewed-on: https://go-review.googlesource.com/c/go/+/338971
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
src/cmd/compile/internal/typecheck/subr.go