-
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
Unresolved import for a re-exported macro #6478
Comments
Does adding "rust-analyzer.procMacro.enable": true,
"rust-analyzer.cargo.loadOutDirsFromCheck": true, to your configuration fix the issue? Proc Macro support is disabled by default. |
I already had those options enabled when I reported this issue. But good call, should have included that info in the report!
…On Nov 7, 2020, 4:07 PM -0500, Arif Roktim ***@***.***>, wrote:
Does adding
"rust-analyzer.procMacro.enable": true,
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
to your configuration fix the issue? Proc Macro support is disabled by default.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It is the However it seems that the Rust issue this is working around, rust-lang/rust#62127, has been fixed, so the workaround in tokio can probably be removed now. |
Ah nevermind it was closed as wontfix. |
This can be worked around by adding |
Hi,
rust-analyzer
appears to be giving meunresolved import
when importingtokio::main
:However, the code compiles properly. Upon closer inspection of the source containing the
tokio::main
macro, I see that it is embedded with several layers of macros to handlecfg
(to only export the macro when certaintokio
features are enabled):Perhaps it is the expansion of these macros, or the
#[cfg(not(test))]
, that is tripping uprust-analyzer
?The text was updated successfully, but these errors were encountered: