-
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
False positive diagnostic in proc-macro #17630
Comments
Thanks for the working rust analyzer build. I'm having a vaguely similar issue in #17615 so I'll start here. |
The problem seems to be that we fail to resolve the |
Hi, am I right to elaborate your finding like this: Further, I also tried adding |
Yes, I don't know the exact problem here but the setup of the mod declarations + more visible re-exports is what seems to be tripping up rust-analyzer |
On the Typst codebase, rust-analyzer raises a false positive diagnostic since a while. The concrete error message (
typst: explicit parent type required (rust-analyzer macro-error)
) is specific to the codebase since it stems from a proc macro, but the important part is that the command line compiler doesn't produce this diagnostic.I'm not sure when exactly the diagnostic started, but it used to work and if I switch back to a ~2 months old rust-analyzer release, it works again.
rust-analyzer version: 0.3.2037-standalone (e9afba5 2024-07-14)
rustc version: rustc 1.79.0 (129f3b996 2024-06-10)
editor or extension: VSCode, extension version v0.3.2037
repository link: https://github.com/typst/typst
code snippet to reproduce:
crates/typst/src/foundations/array.rs
The text was updated successfully, but these errors were encountered: