Skip to content
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-macro-call on futures_util::join! #8163

Closed
Follpvosten opened this issue Mar 23, 2021 · 5 comments
Closed

unresolved-macro-call on futures_util::join! #8163

Follpvosten opened this issue Mar 23, 2021 · 5 comments
Labels
A-macro macro expansion S-actionable Someone could pick this issue up and work on it right now

Comments

@Follpvosten
Copy link

With the latest stable and nightly versions, in a new project just depending on tokio and future_util, with this code in main.rs:

#[tokio::main]
async fn main() {
    let bla = async { 1 };
    let blub = async { 2 };
    let (bla, blub) = futures_util::join!(bla, blub);
}

I get this error on the futures_util::join! line:
Screenshot_20210323_124253
despite it obviously finding the macro, as the documentation is shown. This did not happen with the stable release before this one.
More info: vscode 1.54.3 (OSS build), Linux 5.10.24, rustup 1.23.1, cargo/rustc 1.50.0

@Veykril Veykril added A-macro macro expansion S-actionable Someone could pick this issue up and work on it right now labels Mar 23, 2021
@jonas-schievink
Copy link
Contributor

The macro invokes join_internal!, which is reexported like this:

#[proc_macro_hack(support_nested, only_hack_old_rustc)]
pub use futures_macro::join_internal;

@Follpvosten
Copy link
Author

Oh so this really is #6478?

@jonas-schievink
Copy link
Contributor

No, it might be the fact that we don't support attribute macros like #[proc_macro_hack], but if it only appeared recently it might be something else.

@lnicola
Copy link
Member

lnicola commented Mar 23, 2021

It's #6835 and also #6029.

@jonas-schievink
Copy link
Contributor

#6835 looks like a direct duplicate, so closing in favor of that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

No branches or pull requests

4 participants