Descriptiongofmt: 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 issue 2348.
Patch Set 1 #Patch Set 2 : diff -r b4311778f494 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r b4311778f494 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r f183ae52d934 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|