Skip to content

error[E0432]: unresolved import futures_macro::proc_macro_hack_join #2150

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

Closed
0x8f701 opened this issue May 9, 2020 · 3 comments
Closed

error[E0432]: unresolved import futures_macro::proc_macro_hack_join #2150

0x8f701 opened this issue May 9, 2020 · 3 comments

Comments

@0x8f701
Copy link

0x8f701 commented May 9, 2020

error[E0432]: unresolved import `futures_macro::proc_macro_hack_join`
  --> /home/cheng/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/futures-util-0.3.4/src/async_await/join_mod.rs:78:13
   |
78 |     pub use futures_macro::join;
   |             ^^^^^^^^^^^^^^^^^^^ no `proc_macro_hack_join` in the root

error[E0432]: unresolved import `futures_macro::proc_macro_hack_try_join`
  --> /home/cheng/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/futures-util-0.3.4/src/async_await/join_mod.rs:81:13
   |
81 |     pub use futures_macro::try_join;
   |             ^^^^^^^^^^^^^^^^^^^^^^^ no `proc_macro_hack_try_join` in the root

error[E0432]: unresolved import `futures_macro::proc_macro_hack_select`
   --> /home/cheng/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/futures-util-0.3.4/src/async_await/select_mod.rs:316:13
    |
316 |     pub use futures_macro::select;
    |             ^^^^^^^^^^^^^^^^^^^^^ no `proc_macro_hack_select` in the root

error[E0432]: unresolved import `futures_macro::proc_macro_hack_select_biased`
   --> /home/cheng/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/futures-util-0.3.4/src/async_await/select_mod.rs:319:13
    |
319 |     pub use futures_macro::select_biased;
    |             ^^^^^^^^^^^^^^^-------------
    |             |              |
    |             |              help: a similar name exists in the module: `proc_macro_hack_select_internal`
    |             no `proc_macro_hack_select_biased` in the root

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0432`.
error: could not compile `futures-util`.

To learn more, run the command again with --verbose.

@0x8f701
Copy link
Author

0x8f701 commented May 9, 2020

Rust tool chain version: rustc 1.45.0-nightly (a08c47310 2020-05-07)

@0x8f701
Copy link
Author

0x8f701 commented May 9, 2020

closed as v0.3.5 fixed this.

@0x8f701 0x8f701 closed this as completed May 9, 2020
@taiki-e
Copy link
Member

taiki-e commented May 9, 2020

This is probably because the futures-util and futures-macro versions are different.
#2124 (comment)

Note that proc-macro is renamed to *_internal.
IIRC, it is not expected to use futures-macro directly, so this is probably fine...
(Maybe using = requirements would help to avoid some problems like #2061.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants