Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/gorename: allow renaming to builtins #22855
What did you do?
While trying to rename a variable (func, etc..) to
Suppose you have a
And you run
What did you expect to see?
What did you see instead?
In contrast to renaming to builtins which cause crashes, renaming to keywords is handled gracefully: