-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Fix GDB pretty-printers for compressed enums #47617
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
Yes it does (at least internally). However, we should be encoding a byte offset and some other information (not currently done). @tromey knows more about the ideal solution here. |
What I meant was: A fat pointer should not have any fields that are themselves structs. |
@michaelwoerister Oh huh, this implementation doesn't even read the encoded field path? |
The field path should be in |
@michaelwoerister I assumed that the decoder would be in |
For now, we still rely on the in-tree pretty printers mostly, I think. |
Or at least, they are still used often, so we should keep them working. |
Hi @gentoo90! Just to check if you are still on this. @michaelwoerister, I've change the tag back to S-waiting-on-review. Could you clarify what OP should do to the PR? If I understand #47617 (comment) correctly, what you mean is the fix is not correct ( |
@michaelwoerister ping from triage! |
/cc @rust-lang/compiler — we haven't heard from @michaelwoerister in a week or two; is anyone else able to review this? |
Back from vacation now... I'm going to close this since it only fixes the problem accidentally and would probably fail for more complicated cases than |
Pretty-printing of
Option
failed with exception:main.rs