]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove -s flag
authorMatthew Dempsky <mdempsky@google.com>
Wed, 25 Sep 2019 07:14:58 +0000 (00:14 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 25 Sep 2019 17:07:00 +0000 (17:07 +0000)
commit3e428363c4b793c552925703f206b9382fdfcb51
tree654a697baca1000707607d3d1b132f9b7c48d027
parentf346a4c44c7200454d01c05879fbcd76a1ca9237
cmd/compile: remove -s flag

This is better handled by tools like cmd/gofmt, which can
automatically rewrite the source code and already supports a syntactic
version of this simplification. (go/types can be used if
type-sensitive simplification is actually necessary.)

Change-Id: I51332a8f3ff4ab3087bc6b43a491c6d92b717228
Reviewed-on: https://go-review.googlesource.com/c/go/+/197118
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/typecheck.go