Skip to content

Improve Debug representations #79

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 23, 2018
Merged

Improve Debug representations #79

merged 1 commit into from
Apr 23, 2018

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Apr 22, 2018

This is ported from rust-lang/rust#49748. I decided not to print a span: field when we are not emulating spans because they are just noise.

TokenStream [
    Group {
        delimiter: Bracket,
        stream: TokenStream [
            Term {
                sym: a
            },
            Op {
                op: '+',
                spacing: Alone
            },
            Literal {
                lit: 1
            }
        ]
    }
]

@alexcrichton alexcrichton merged commit 7b052ae into master Apr 23, 2018
@alexcrichton alexcrichton deleted the debug branch April 23, 2018 14:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants