-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
reflect: deprecate PtrTo #61440
reflect: deprecate PtrTo #61440
Conversation
This PR (HEAD: bfc08a4) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/511035. Important tips:
|
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 During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
src/reflect/type.go
Outdated
@@ -1171,6 +1171,7 @@ var ptrMap sync.Map // map[*rtype]*ptrType | |||
// | |||
// PtrTo is the old spelling of PointerTo. | |||
// The two functions behave identically. | |||
// Deprecated: Superseded by [PointerTo] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there must be an empty comment line before the Deprecated line, otherwise it may not be picked up as "deprecated"
Message from Ian Lance Taylor: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
This PR (HEAD: 2775205) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/511035. Important tips:
|
Message from qiulaidongfeng: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
This PR (HEAD: fc184f8) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/511035. Important tips:
|
Message from Ian Lance Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from qiulaidongfeng: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from qiulaidongfeng: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 5: Auto-Submit+1 Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 5: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 5: -Auto-Submit -Code-Review (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
This PR (HEAD: 6c65c6a) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/511035. Important tips:
|
Message from qiulaidongfeng: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 6: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
This PR (HEAD: 007cbbc) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/511035. Important tips:
|
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from qiulaidongfeng: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 7: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 7: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Replace reflect.PtrTo with reflect.PointerTo Fixes golang#59599 Change-Id: I49407193e2050543ef983cd637703acc682d9f51
This PR (HEAD: 7bc9ccf) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/511035. Important tips:
|
Message from qiulaidongfeng: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Ian Lance Taylor: Patch Set 8: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Gopher Robot: Patch Set 8: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Keith Randall: Patch Set 8: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Message from Keith Randall: Patch Set 8: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/511035. |
Replace reflect.PtrTo with reflect.PointerTo. Fixes #59599 Change-Id: I49407193e2050543ef983cd637703acc682d9f51 Change-Id: I49407193e2050543ef983cd637703acc682d9f51 GitHub-Last-Rev: 7bc9ccf GitHub-Pull-Request: #61440 Reviewed-on: https://go-review.googlesource.com/c/go/+/511035 Run-TryBot: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
This PR is being closed because golang.org/cl/511035 has been merged. |
Replace reflect.PtrTo with reflect.PointerTo.
Fixes #59599
Change-Id: I49407193e2050543ef983cd637703acc682d9f51