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

Incorrect macro parsing error #17465

Open
wackazong opened this issue Jun 20, 2024 · 7 comments
Open

Incorrect macro parsing error #17465

wackazong opened this issue Jun 20, 2024 · 7 comments
Labels
C-bug Category: bug

Comments

@wackazong
Copy link

rust-analyzer version: v0.4.2004 (pre-release)

rustc version: rustc 1.76.0 (07dca489a 2024-02-04)

editor or extension: VSCodium rust-analyer prerelease

repository link (if public, optional): dtolnay/syn#1684

code snippet to reproduce:
See repo

Problem: RA reports an error of the macro, but the code compiles just fine on the command line.

@wackazong wackazong added the C-bug Category: bug label Jun 20, 2024
@lnicola
Copy link
Member

lnicola commented Jun 20, 2024

What error do you get, "missing ,"?

@Diggsey
Copy link

Diggsey commented Jun 20, 2024

I've started getting an error, "expected ," on format! macros too...

@lnicola
Copy link
Member

lnicola commented Jun 20, 2024

#17463, but it seems unlikely to affect format!.

@wackazong
Copy link
Author

wackazong commented Jun 20, 2024

I get "expected `,`" as well

@lnicola
Copy link
Member

lnicola commented Jun 20, 2024

I've triggered a new nightly release, you can try it in about 15 minutes. But I suspect it's going to fix this issue.

@lnicola
Copy link
Member

lnicola commented Jun 20, 2024

New release is out, you can get it from GitHub or the VS Code Marketplace.

@wackazong
Copy link
Author

Ok, works for me. Thanks. I will leave the issue open for @Diggsey to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants