x/tools/internal/refactor/inline,x/tools/gopls: undo variadic elimination when it is safe to do so #63717
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
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
Follow up on this comment on a semi-automated CL: https://go-review.googlesource.com/c/tools/+/537475/1/gopls/internal/lsp/source/rename.go#973
The inliner should undo variadic elimination (packing variadic arguments as
[]T{...}
) when it is safe to do so. As a result of the current logic, the inliner may introduce this redundancy at the callsite.CC @adonovan
The text was updated successfully, but these errors were encountered: