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

Subkey doesn't build with +nightly flag, type annotations needed for Box #4748

Closed
2 tasks done
JamesArthurHolland opened this issue Jun 10, 2024 · 3 comments · Fixed by #4862
Closed
2 tasks done

Subkey doesn't build with +nightly flag, type annotations needed for Box #4748

JamesArthurHolland opened this issue Jun 10, 2024 · 3 comments · Fixed by #4862
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@JamesArthurHolland
Copy link

JamesArthurHolland commented Jun 10, 2024

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Version used:

cargo 1.81.0-nightly (b1feb75d0 2024-06-07)

Time library won't compile

error[E0282]: type annotations needed for `Box<_>`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.27/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error

Steps to reproduce

cargo +nightly build --package subkey --release
@JamesArthurHolland JamesArthurHolland added I10-unconfirmed Issue might be valid, but it's not yet known. I2-bug The node fails to follow expected behavior. labels Jun 10, 2024
@JamesArthurHolland JamesArthurHolland changed the title Subkey doesn't build with +nightly flag Subkey doesn't build with +nightly flag, type annotations needed for Box Jun 10, 2024
@ggwpez
Copy link
Member

ggwpez commented Jun 10, 2024

Seems like a bug in nightly then? I would recommend using stable Rust, as our CI only runs the tests with that.

@JamesArthurHolland
Copy link
Author

Stable rust doesn't work either. I'm using alpine and it can't dynamically load clang, which I believe is an alpine issue.

@ggwpez
Copy link
Member

ggwpez commented Jun 10, 2024

Hm, okay. It does build with nightly-2024-03-14 though, so maybe there is another nightly that is a bit newer and still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants