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

Improve Debug representations #79

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants