-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Support pointers in type reflection #151119
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
base: main
Are you sure you want to change the base?
Conversation
|
rustbot has assigned @JonathanBrouwer. Use |
|
r? @oli-obk |
|
|
e298be8 to
c0a4f8c
Compare
This comment has been minimized.
This comment has been minimized.
c0a4f8c to
2a7b6c5
Compare
This comment has been minimized.
This comment has been minimized.
feat: Support references in reflection type info Tracking issue: rust-lang#146922 `#![feature(type_info)]` Based on rust-lang#151119 implementation for pointers for consistency r? oli-obk
|
Needs a rebase |
2a7b6c5 to
f3afe60
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Tracking issue: #146922
This PR adds support for inspecting pointers
*const Tand*mut Tthrough type reflection. It does so by adding the newPointerstruct + variant:This can be gathered using
Type::of, for example: