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

futures-select-macro-preview failes to compile #1728

Closed
Mossop opened this issue Jul 12, 2019 · 2 comments
Closed

futures-select-macro-preview failes to compile #1728

Mossop opened this issue Jul 12, 2019 · 2 comments

Comments

@Mossop
Copy link

Mossop commented Jul 12, 2019

I tried to use futures-preview in a new project so I added futures-preview = { version = "=0.3.0-alpha.17", features = ["compat", "async-await", "nightly"] } to the dependencies. Running cargo check with nightly now fails with:

error[E0433]: failed to resolve: maybe a missing `extern crate token;`?
  --> /Users/dave/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/futures-select-macro-preview-0.3.0-alpha.17/src/lib.rs:67:34
   |
67 |             } else if input.peek(Token![default]) {
   |                                  ^^^^^^^^^^^^^^^ maybe a missing `extern crate token;`?
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

Looks like it is missing extern crate syn but maybe something is wrong with my setup?

@taiki-e
Copy link
Member

taiki-e commented Jul 12, 2019

This is a compiler bug: rust-lang/rust#62562.
This has been fixed in the latest nightly.

@Mossop
Copy link
Author

Mossop commented Jul 12, 2019

Oops, so it has!

@Mossop Mossop closed this as completed Jul 12, 2019
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