-
-
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
|
☔ The latest upstream changes (presumably #151210) made this pull request unmergeable. Please resolve the merge conflicts. |
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
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: