You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Closesrust-lang#49720
…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.
Closesrust-lang#49720
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: