gofmt: fix a couple of crashes, disallow rewrites for incomplete programs
The current implementation of formatting for incomplete programs cannot tolerate program rewrites; ignore -rewrite in that case with a warning message (temporary solution). Fix a couple of crashes that were introduced recently. Fixes #2348. R=rsc CC=golang-dev https://golang.org/cl/5233054
Showing
Please
register
or
sign in
to comment