-
Notifications
You must be signed in to change notification settings - Fork 1.7k
RA thinks that a called #[tokio::main] function returns a Future #12450
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
What is your rust-analyzer configuration? Do you have |
"Proc Macro: Enable" is checked (in VSCode). So is "Proc Macro > Attributes: Enable". "Proc Macro: Ignored" is empty. settings.json has no settings overrides in it. |
The tokio::main macro implementation in |
did not have any effect on the flagged error. |
Adding both |
Fixed by #12599 |
When is this fix going to be released? |
It should already have been released. Every monday there is a new stable release. |
Still getting this on VS Code. |
Try updating rust, it resolved the problem for me: |
I still encountered this error, and I ignore it in VS Code: "rust-analyzer.diagnostics.disabled": ["unresolved-proc-macro"] |
Yeah, I still see it rust.vim too. Just updated rust and rust-analyzer to 1.73. UPD: fingers crossed, but I think |
rust-analyzer version: f94fa62 2022-05-30 stable
rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
)Cargo.toml:
main.rs:
The text was updated successfully, but these errors were encountered: