Port #4397: Check move operator for resource-typed extra arguments#4399
Closed
Port #4397: Check move operator for resource-typed extra arguments#4399
Conversation
Co-authored-by: turbolent <51661+turbolent@users.noreply.github.com>
Co-authored-by: turbolent <51661+turbolent@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port changes from pull request 4397 to master branch
Port #4397: Check move operator for resource-typed extra arguments
Jan 4, 2026
Member
|
@copilot Compare the diff of the new PR with the diff of the original PR |
Contributor
Author
Comparison complete: Code changes are identical between the original PR #4397 and this port to master. Both PRs modify:
Only difference:
The git index hashes differ due to different base commits (v1.8 vs master), but the actual code changes are functionally identical. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
6 tasks
Benchstat comparison
Results
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Member
|
Replaced by #4400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Ports the fix from #4397 (merged to
v1.8) tomaster. Extends move operator validation to cover variadic arguments in function invocations.Previously, only required parameters were checked for proper move semantics when passing resources. Variadic arguments bypassed this validation, allowing invalid resource moves or missing move operators to go undetected.
Changes:
sema/check_invocation_expression.go: CallcheckInvocationArgumentMovefor extra argumentssema/account_test.go: Added tests verifying move operator validation on resource-typed variadic argumentsExample:
masterbranchFiles changedin the Github PR explorerOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.