-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
serde::json macro invocation failed to parse #6876
Comments
It probably failed to expand before those versions; we just didn't have the diagnostic yet. You can disable the error for now by adding |
This was also reported as a comment in #6704, but it might not be the same issue. |
Reproducer: macro_rules! json_internal {
({ $tt:tt }) => {
let _ = 42;
};
}
fn main() {
json_internal!({ "a" });
} |
That's right. Closing as duplicate of #6811. |
Thank you. That's a useful workaround! I'm impressed at how quickly this was analyzed by the RA team. |
This is a new problem, as the snippets that now fail in my codebase used to be handled without issue.
I did some bisecting. This worked fine on v0.2.400 and fails on v0.2.408. It also fails on v0.2.416, albeit with a smaller red highlight.
Steps to reproduce:
lib.rs
Cargo.toml
Observe that the json! call is highlighted red with "failed to parse macro invocation".
The text was updated successfully, but these errors were encountered: