c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

Fails to compile on latest nightly

Open theoparis opened this issue 1 year ago • 2 comments

See https://github.com/time-rs/time/issues/681, it seems like some dependencies need to be updated since it isn't used directly...

Adding the following to Cargo.toml in this repository seems to fix it for the time being.

[patch.crates-io]
time = { git = "https://github.com/time-rs/time" }

Update: I think the correct fix would actually be updating Cargo.lock and the time-macros crate.

theoparis avatar Jun 19 '24 05:06 theoparis

With the risk of stating the obvious, this is also causing cargo install c2rust to fail.

tommythorn avatar Aug 21 '24 15:08 tommythorn

Note that c2rust used to compile just fine also on stable Rust. So as theoparis mentioned in the update, unlocking time-rs-macros sounds like the way to go. We need time 0.3.35 to fix the build issue, which needs Rust 1.67, which is more recent than the currently locked nightly.

chrysn avatar Aug 28 '24 13:08 chrysn

  • Fixed by #1115.
  • Will be released after #1116.

kkysen avatar Aug 29 '24 18:08 kkysen