]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: Fatalf in Type.SetBroke(true) and Node.SetDiag(true)
authorMatthew Dempsky <mdempsky@google.com>
Wed, 16 Mar 2022 05:34:19 +0000 (22:34 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 16 Mar 2022 18:33:53 +0000 (18:33 +0000)
commit1024503f84b2ddcd59104ec5db36d10a8adaae99
tree915fe8cb4f12ce71c4ddce44bdbe9205a5e72354
parenta1bf50eefe35087ac7151116558f4c19095b8473
cmd/compile: Fatalf in Type.SetBroke(true) and Node.SetDiag(true)

Type.Broke and Node.Diag were used in the legacy typechecker to allow
reporting of multiple errors in a compilation unit, while suppressing
unhelpful follow-on errors. However, that's no longer needed now that
types2 handles (most) user-visible diagnostics.

Updates #51691.

Change-Id: I919c1598d8acebe5703939256bdca3e8d021f7ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/392918
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/ir/mini.go
src/cmd/compile/internal/types/type.go