Skip to content

fix: fix macro expansion with float tokens #12177

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
May 6, 2022
Merged

fix: fix macro expansion with float tokens #12177

merged 1 commit into from
May 6, 2022

Conversation

jonas-schievink
Copy link
Contributor

Fixes #12170

The parser tells us to consume up to 3 tokens, but on the MBE side all float literals are a single tt::Literal, so make sure to only consume a single MBE leaf.

@jonas-schievink
Copy link
Contributor Author

@bors r+

@bors
Copy link
Contributor

bors commented May 6, 2022

📌 Commit 7db5531 has been approved by jonas-schievink

@bors
Copy link
Contributor

bors commented May 6, 2022

⌛ Testing commit 7db5531 with merge 505f2d9...

@bors
Copy link
Contributor

bors commented May 6, 2022

☀️ Test successful - checks-actions
Approved by: jonas-schievink
Pushing 505f2d9 to master...

@bors bors merged commit 505f2d9 into rust-lang:master May 6, 2022
@jonas-schievink jonas-schievink deleted the mbe-output-float-literals branch May 6, 2022 14:20
@jonas-schievink
Copy link
Contributor Author

This did not fix the num-traits panic in #12170

@Veykril
Copy link
Member

Veykril commented May 6, 2022

Note that the release also failed https://github.com/rust-lang/rust-analyzer/runs/6315627367?check_suite_focus=true
Though with a different error than #12170, which might be fixed with this?

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.

rust-analyzer panic Punct { ... } is not a valid punct
3 participants