aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2024-02-22 11:00:31 -0800
committerGopher Robot <gobot@golang.org>2024-02-22 19:32:17 +0000
commitdb57e5a040922c9cd1dac26ebc0b48f310f84095 (patch)
treef335271a0156c67f5a955eb57567bc253d0ac158 /src/encoding/xml
parentf278f756bdd1613fdedc74a8b59ccf048afab979 (diff)
downloadgo-db57e5a040922c9cd1dac26ebc0b48f310f84095.tar.xz
go/types, types2: remove unreachable func (minor cleanup)
In some places we can't use unreachable() because it does not terminate control flow and we need to resort to panic. Be consistent and just use panic("unreachable") everywhere. This also opens the door to reporting more specific panic messages. Mechanical change: s/unreachable()/panic("unreachable")/ Minor cleanup for better consistency. Change-Id: I6b52af7c21dcfaa1ca19839d14040552db5d4cb4 Reviewed-on: https://go-review.googlesource.com/c/go/+/566135 Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions