Skip to content

Compilation error on rust-nightly type annotations needed for Box<_> #515

@gnattishness

Description

@gnattishness

Building master (960e9e1) with a recent version of nightly (rustc 1.81.0-nightly (8337ba918 2024-06-12)) fails:

$ cargo +nightly install --git https://github.com/fuzzland/ityfuzz --locked
...
error[E0282]: type annotations needed for `Box<_>`
  --> /home/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/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
   |              ++++++++

This appears to be due to the issue explained in time-rs/time#681 and resolved in time-rs/time#671

To resolve

  1. Please update time in the Cargo.lock e.g. cargo update --package time

  2. It looks like this wasn't caught in CI and workflows, suggesting that the Cargo.lock isn't being relied on there:

    run: cargo build --release --bins --target ${{ matrix.job.target }} --features "cmp dataflow evm print_txn_corpus full_trace force_cache real_balance" --no-default-features

    Please consider adding a --locked or --frozen to the build command, to ensure repeatable/reproducible builds.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions