Skip to content
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

proc_macro: Improve Debug representations #49748

Merged
merged 2 commits into from
Apr 7, 2018

Commits on Apr 6, 2018

  1. 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
    alexcrichton committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    6c08bb8 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2018

  1. Print proc_macro spans as a half-open range

    A span covering a single byte, such as for an operator `+` token, should
    print as e.g. `80..81` rather than `80...81`. The lo end of the range is
    inclusive and the hi end is exclusive.
    dtolnay committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    52766b5 View commit details
    Browse the repository at this point in the history