]> Cypherpunks repositories - gostls13.git/commit
go/types: delete unnecessary slice construction
authorRobert Findley <rfindley@google.com>
Fri, 18 Feb 2022 14:19:47 +0000 (09:19 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 23 Feb 2022 19:46:34 +0000 (19:46 +0000)
commite534907f65f5a3eda47a069ea0aab33306c1d616
tree58baba3622088a5d89f9cf1438b4b8fa34eb9426
parentd0c3b0116217a898f2e5d2d00cc5f0356ea5ad1e
go/types: delete unnecessary slice construction

CL 374294 made our check for incorrect type parameters constraints
eager, but failed to remove the construction of the bounds slice, which
was no longer used.

Change-Id: Ib8778fba947ef8a8414803e95d72c49b8f75c204
Reviewed-on: https://go-review.googlesource.com/c/go/+/386717
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/decl.go
src/go/types/decl.go