[go: up one dir, main page]

RISC-V: Upgrade 'time' to make it compile with Rust 1.80+

Closes RV-270

What

Upgrade the time crate in places where we intend to upgrade Rust beyond 1.80.

Why

error[E0282]: type annotations needed for `Box<_>`
  --> /Users/ole/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.
rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to vers
ion `>=0.3.35` by calling `cargo update`

Upgrading addresses the above error when using Rust 1.80.0.

Manually Testing

make -C src/riscv all

Benchmarking

This does not affect runtime performance.

Tasks for the Author

  • Link all Linear issues related to this MR using magic words (e.g. part of, relates to, closes).
  • Eliminate dead code and other spurious artefacts introduced in your changes.
  • Document new public functions, methods and types.
  • Make sure the documentation for updated functions, methods, and types is correct.
  • Add tests for bugs that have been fixed.
  • Put in reasonable effort to ensure that CI will pass.
  • Benchmark performance and populate the table above if needed.
  • Write commit messages to reflect the changes they're about.
  • Self-review your changes to ensure they are high-quality.
  • Complete all of the above before assigning this MR to reviewers.
Edited by Ole Krüger

Merge request reports

Loading