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

Fails to build with --locked due to an old time crate version #1187

Closed
m4tx opened this issue Jul 5, 2024 · 1 comment
Closed

Fails to build with --locked due to an old time crate version #1187

m4tx opened this issue Jul 5, 2024 · 1 comment

Comments

@m4tx
Copy link

m4tx commented Jul 5, 2024

grcov fails to build with the recent versions of Rust nightly (tested with rustc 1.81.0-nightly (cf2df68d1 2024-07-01)) due to time-rs/time#681:

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

   Compiling thiserror-impl v1.0.43
   Compiling clap_derive v4.3.2
   Compiling chrono-tz v0.6.1
   Compiling globwalk v0.8.1
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `grcov v0.8.19`, intermediate artifacts can be found at `/tmp/cargo-installw35YGR`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Since the issue has been solved in time v0.3.36, it should be as easy as upgrading this one package in Cargo.lock (or running cargo update).

@cemoktra
Copy link
Contributor

since Rust 1.80 has been release this now hits the stable Rust version

cemoktra added a commit to cemoktra/grcov that referenced this issue Jul 26, 2024
m4tx added a commit to m4tx/boiler that referenced this issue Sep 3, 2024
grcov can't be installed with --locked due to mozilla/grcov#1187
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

Successfully merging a pull request may close this issue.

2 participants