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

Compilation Error: Type Annotations Needed for Box<_> #18868

Closed
nova032 opened this issue Jul 31, 2024 · 3 comments
Closed

Compilation Error: Type Annotations Needed for Box<_> #18868

nova032 opened this issue Jul 31, 2024 · 3 comments
Assignees
Labels
build-problem issues related to building the repo cli Command line tools

Comments

@nova032
Copy link

nova032 commented Jul 31, 2024

Description:

While attempting to compile the Sui project from the testnet branch, I encountered a type annotation error in the time crate. This error prevents successful compilation of the project.

error[E0282]: type annotations needed for `Box<_>`
  --> /home/nova/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/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
   |              ++++++++

Steps to Reproduce

  1. Update Rust to the latest version using rustup update.
  2. run this cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui
  3. time-0.31.1 version
@stefan-mysten stefan-mysten added cli Command line tools build-problem issues related to building the repo labels Jul 31, 2024
@stefan-mysten stefan-mysten self-assigned this Jul 31, 2024
@stefan-mysten
Copy link
Contributor

Thanks for reporting this @nova032. We'll have a look.

@chenrui333
Copy link

relates to time-rs/time#693 just update to use time 0.3.36 should be good.

@chenrui333
Copy link

@nova032 @stefan-mysten this can be closed now.

sui/Cargo.lock

Lines 15746 to 15748 in 23ee1e8

[[package]]
name = "time"
version = "0.3.36"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem issues related to building the repo cli Command line tools
Projects
None yet
Development

No branches or pull requests

3 participants