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

Update time crate to 0.3.36 #213

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Update time crate to 0.3.36 #213

merged 1 commit into from
Aug 13, 2024

Conversation

pbsds
Copy link
Contributor

@pbsds pbsds commented Aug 13, 2024

When compiling with rust 1.80.1 I get:

   Compiling time v0.3.28
error[E0282]: type annotations needed for `Box<_>`
  --> /build/polaris-0.14.2-vendor.tar.gz/time/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`.

Likely caused by the unfixable regression rust-lang/rust#127343 as reported by @\allysais in NixOS/nixpkgs#332957, who notes that:

Most commonly, the required fix is just to update the "time" crate.

This fix is tested working with rust 1.80.1

Fixes build with rust 1.80.0
@agersant agersant merged commit f625c57 into agersant:master Aug 13, 2024
10 of 11 checks passed
@agersant
Copy link
Owner

Thank you!

@agersant agersant mentioned this pull request Sep 29, 2024
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 this pull request may close these issues.

3 participants