]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: refactor initVars
authorRobert Griesemer <gri@golang.org>
Wed, 22 Mar 2023 22:04:35 +0000 (15:04 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 28 Mar 2023 18:13:13 +0000 (18:13 +0000)
commit8c5e8a38df141dcb2ff8aebe87786a84ca362996
tree79ce55e1520aebd956fc4e449eede332c9447ae8
parent422f4483f183622ecd19dc9ae98a16802c4be40e
go/types, types2: refactor initVars

As with changes in prior CLs, we don't suppress legitimate
"declared but not used" errors anymore simply because the
respective variables are used in incorrect assignments,
unrelated to the variables in question.
Adjust several (ancient) tests accordingly.

Change-Id: I5826393264d9d8085c64777a330d4efeb735dd2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/478716
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/assignments.go
src/go/types/assignments.go
test/fixedbugs/bug037.go
test/fixedbugs/bug072.go
test/fixedbugs/bug091.go
test/fixedbugs/bug103.go
test/fixedbugs/bug107.go
test/fixedbugs/bug122.go
test/fixedbugs/bug175.go
test/fixedbugs/issue19012.go
test/fixedbugs/issue48558.go