-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"unexpected token" macro-error on derive macro #17968
Comments
I got the same problem. |
@rustbot claim |
@kerminek @SenojLuap The problem is |
Switching to rust-analyzer 0.3.2078 fixes it for now (credit to @rever96) |
v0.3.2089 should have a fix for this. |
Thanks, I can confirm this is now resolved after updating the extension to v0.3.2089 🙂 |
Same. Thanks! |
…=Veykril Revert "feat: Implement `module_path` macro" Reverts rust-lang/rust-analyzer#17936 Fixes rust-lang/rust-analyzer#17968
rust-analyzer version:
0.3.2086-standalone (7106cd3be 2024-08-25)
rustc version:
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
editor or extension: VSCode, rust-analyzer v0.3.2086 (error does not occur with v0.3.2078)
relevant settings: n/a
repository link (if public, optional): n/a
code snippet to reproduce:
cargo add schemars
(reproducible both with stable v0.8.21 and prerelease v1.0.0-alpha.11)The code compiles and runs fine. When running
cargo expand
and using schemars v1.0.0-alpha.11, the derive expands to:...which rust-analyzer has no problems with.
The text was updated successfully, but these errors were encountered: