-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gopls/internal/analysis/modernize: fix slicedelete triggers on slice identifiers with side effects #567
gopls/internal/analysis/modernize: fix slicedelete triggers on slice identifiers with side effects #567
Conversation
…empotent slice identifiers
This PR (HEAD: 4393fcb) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/659295. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Alan Donovan: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Alan Donovan: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Alan Donovan: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
This PR (HEAD: ca10c13) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/659295. Important tips:
|
This PR (HEAD: 9fedd25) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/659295. Important tips:
|
Message from Zamir Ashurbekov: Patch Set 4: (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Alan Donovan: Patch Set 6: (7 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
487ae5b
to
54e9082
Compare
This PR (HEAD: 54e9082) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/659295. Important tips:
|
Message from Zamir Ashurbekov: Patch Set 7: (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Alan Donovan: Patch Set 7: Auto-Submit+1 Code-Review+2 Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Go LUCI: Patch Set 7: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-03-21T20:15:10Z","revision":"d0d0a8e42c27f117d33afe7eb580d959f0229903"} Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Alan Donovan: Patch Set 7: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Go LUCI: Patch Set 7: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Go LUCI: Patch Set 7: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
Message from Zamir Ashurbekov: Patch Set 7: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/659295. |
…identifiers with side effects Add a check that the expression defining the slice has no side effects to trigger slicedelete. This is a necessary condition to ensure that the change does not change the program behavior. Fixes golang/go#72955 Change-Id: Ic326baa37e0b621fa7ba204bbfeb61c3e7daea47 GitHub-Last-Rev: 54e9082 GitHub-Pull-Request: #567 Reviewed-on: https://go-review.googlesource.com/c/tools/+/659295 Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Alan Donovan <[email protected]>
This PR is being closed because golang.org/cl/659295 has been merged. |
Add a check that the expression defining the slice has no side effects to trigger slicedelete. This is a necessary condition to ensure that the change does not change the program behavior.
Fixes golang/go#72955