-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Improve Debug representation of proc_macro::TokenStream #49720
Labels
A-macros-2.0
Area: Declarative macros 2.0 (#39412)
Comments
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 6, 2018
This commit improves the `fmt::Debug` output of `proc_macro` data structures by primarily focusing on the representation exposed by `proc_macro` rather than the compiler's own internal representation. This cuts down quite a bit on assorted wrapper types and ensure a relatively clean output. Closes rust-lang#49720
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Apr 7, 2018
…olnay proc_macro: Improve Debug representations This commit improves the `fmt::Debug` output of `proc_macro` data structures by primarily focusing on the representation exposed by `proc_macro` rather than the compiler's own internal representation. This cuts down quite a bit on assorted wrapper types and ensure a relatively clean output. Closes rust-lang#49720
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the Debug representation of the TokenStream corresponding to tokens
[a + 1]
is as follows. This is just delegating to the derived Debug impls of the underlying syntax::tokenstream::TokenStream.Show current Debug representation of
[a + 1]
...It would be far more helpful to have the Debug for proc_macro::TokenStream line up better with the TokenStream public API. Something like:
The text was updated successfully, but these errors were encountered: