-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cannot inference certain type. #2984
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
Comments
The |
My short analysis is that we can't resolve |
I don't think that's the problem, since we ignore attribute macros completely, so this just looks like a normal impl. (Same goes e.g. for the salsa stuff in RA itself.) |
The |
9128: feat: expand procedural attribute macros r=jonas-schievink a=jonas-schievink This adds experimental support for attribute macros. They can be enabled by setting `rust-analyzer.experimental.procAttrMacros` to `true`. Known issues: * Tokens aren't remapped, presumably because we edit the input syntax tree (this causes IDE features to not work inside items with attribute macros on them) * Macro errors aren't reported correctly Closes #8971 Fixes #8964 / la10736/rstest#120 Fixes #2984 Fixes #5412 Fixes #6029 Fixes #6687 #6740 is still not fixed – we now expand `#[proc_macro_hack]`, but fail to expand the resulting `proc_macro_call!()` macro. Co-authored-by: Jonas Schievink <[email protected]>
Repro repo:
https://github.com/crlf0710/ra_bug_repo
rustc is able to inference the type of variable
_struct_data
, while ra only shows "{unknown}".The text was updated successfully, but these errors were encountered: