Renames to built-in names should not be handled specially. There are plenty of occasions when you want to re-use a predeclared name, such as a function called print or real, or a method called int or string.
The tool should not crash, of course.
changed the title
x/tools/cmd/gorename: renaming to builtins should result in "not a valid identifier" errorNov 21, 2018