x/tools/internal/refactor/inline: reduce call if neither binding decl nor callee body would create name conflicts #70759
Labels
gopls
Issues related to the Go language server, gopls.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Inlining even simple calls such as:
causes literalization due to the need for a binding decl within the function body:
But the name n is not used in the caller block, so it would be fine to melt the call down to:
FWIW, without the
_ = ...
assignment, the inliner does reduce the call:@findleyr
The text was updated successfully, but these errors were encountered: