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

build failed #27

Closed
AurevoirXavier opened this issue Jul 20, 2019 · 5 comments
Closed

build failed #27

AurevoirXavier opened this issue Jul 20, 2019 · 5 comments

Comments

@AurevoirXavier
Copy link

AurevoirXavier commented Jul 20, 2019

λ rustc --version
rustc 1.38.0-nightly (311376d30 2019-07-18)
error: proc-macro derive panicked
  --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/hex-literal-0.1.4/src/lib.rs:38:1
   |
38 | / proc_macro_expr_decl! {
39 | |     /// Macro for converting hex string to byte array at compile time
40 | |     hex! => hex_impl
41 | | }
   | |_^
   |
   = help: message: assertion failed: `(left == right)`
             left: `Some("#[allow(unused,")`,
            right: `Some("#[allow(unused")`
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
@newpavlov
Copy link
Member

Can you check with the latest nightly? Everything works for me on 2019-07-19 nightly.

@boneyard93501
Copy link

same problem for 2019-07-20

boneyard93501@mbp15 ~ $ rustc --version
rustc 1.38.0-nightly (95b1fe560 2019-07-20)

with

error: proc-macro derive panicked
  --> /Users/boneyard93501/.cargo/registry/src/github.com-1ecc6299db9ec823/hex-literal-0.1.4/src/lib.rs:38:1
   |
38 | / proc_macro_expr_decl! {
39 | |     /// Macro for converting hex string to byte array at compile time
40 | |     hex! => hex_impl
41 | | }
   | |_^
   |
   = help: message: assertion failed: `(left == right)`
             left: `Some("#[allow(unused,")`,
            right: `Some("#[allow(unused")`
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

@newpavlov
Copy link
Member

Hm, I still can't reproduce it on Linux. I've re-run nightly CI for hashes and it has passed without any issues. Do you build hex-literal directly or as part of your project? Do you use Windows?

Looks like the error originates from here, but I don't know what exactly causes it.

@dtolnay
Any ideas?

@boneyard93501
Copy link

@newpavlov
you just beat me to it. it's part of a project build and i followed:
paritytech/substrate#3134
however, after some fiddling i found a 0.1 reference in https://github.com/substrate-developer-hub/substrate-package/blob/master/substrate-node-template/Cargo.toml#L11
if you bump L11 from 0.1 to 0.2 and then rebuilding the respective Cargo.lock files ends up compiling 0.1.4 just fine.
so, apologies for given you the run around; i shouldn't have just taken the assertion in #3134 at face value.

@AurevoirXavier
Copy link
Author

AurevoirXavier commented Jul 21, 2019

It seems the same reason. A part of darwinia which build on substrate.

OS: macOS Mojave 10.14.5 (18F132)

The rustup default nightly-2019-07-19 not works for me. Build with rustup default nightly-2019-07-14.

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

3 participants