sui icon indicating copy to clipboard operation
sui copied to clipboard

Compilation Error: Type Annotations Needed for Box<_>

Open nova032 opened this issue 1 year ago • 2 comments
trafficstars

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

nova032 avatar Jul 31 '24 05:07 nova032

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

stefan-mysten avatar Jul 31 '24 06:07 stefan-mysten

relates to https://github.com/time-rs/time/issues/693 just update to use time 0.3.36 should be good.

chenrui333 avatar Aug 01 '24 23:08 chenrui333

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

https://github.com/MystenLabs/sui/blob/23ee1e84a5859154084c5c80f52aae3233fce269/Cargo.lock#L15746-L15748

chenrui333 avatar Sep 18 '24 18:09 chenrui333