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

rustc: Don't use DelimToken::None if possible #44745

Merged
merged 1 commit into from
Sep 23, 2017

Commits on Sep 21, 2017

  1. rustc: Don't use DelimToken::None if possible

    This commit fixes a regression from rust-lang#44601 where lowering attribute to HIR now
    involves expanding interpolated tokens to their actual tokens. In that commit
    all interpolated tokens were surrounded with a `DelimToken::None` group of
    tokens, but this ended up causing regressions like rust-lang#44730 where the various
    attribute parsers in `syntax/attr.rs` weren't ready to cope with
    `DelimToken::None`. Instead of fixing the parser in `attr.rs` this commit
    instead opts to just avoid the `DelimToken::None` in the first place, ensuring
    that the token stream should look the same as it did before where possible.
    
    Closes rust-lang#44730
    alexcrichton committed Sep 21, 2017
    Configuration menu
    Copy the full SHA
    5053442 View commit details
    Browse the repository at this point in the history