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

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

Closed
GopherJ opened this issue May 9, 2020 · 3 comments
Closed

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

GopherJ opened this issue May 9, 2020 · 3 comments

Comments

@GopherJ
Copy link

GopherJ commented May 9, 2020

error[E0432]: unresolved import `futures_macro::proc_macro_hack_join`
  --> /home/cheng/.cargo/registry/src/github.com-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.com-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.com-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.com-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.

@GopherJ
Copy link
Author

GopherJ commented May 9, 2020

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

@GopherJ
Copy link
Author

GopherJ commented May 9, 2020

closed as v0.3.5 fixed this.

@GopherJ GopherJ 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