Skip to content

Convert bool to ident instead of literal in mbe #4035

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

Merged
merged 1 commit into from
Apr 18, 2020

Conversation

edwin0cheng
Copy link
Member

@edwin0cheng edwin0cheng commented Apr 18, 2020

Fixed #1249

Currently we treat boolean literal as tt::Literal , which makes parsing $lit:lit matcher easily.
However, proc-macro2 treat boolean literal as ident :

https://github.com/alexcrichton/proc-macro2/blob/4173a21dc497c67326095e438ff989cc63cd9279/src/lib.rs#L939

OT: I am quite happy we finally need to fix this bug :)

@matklad
Copy link
Member

matklad commented Apr 18, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 18, 2020

@bors bors bot merged commit 7a59cd4 into rust-lang:master Apr 18, 2020
@edwin0cheng edwin0cheng deleted the fix-mbe-boolean branch April 18, 2020 19:45
lnicola pushed a commit to lnicola/rust-analyzer that referenced this pull request Jan 7, 2025
refactor: refine thread variant for windows
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.

Boolean Literal should not belong to tt::Literal
2 participants