Skip to content

Cannot install with "cargo install c2rust" #1199

Closed
@omarandlorraine

Description

@omarandlorraine

I'm getting this error from doing cargo install c2rust, as it says in the README, or cargo install --locked c2rust.

The error is of course related to third-party libraries.

error[E0282]: type annotations needed for `Box<_>`
  --> /home/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.18/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 version `>=0.3.35` by calling `cargo update`

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 `c2rust v0.18.0`, intermediate artifacts can be found at `/tmp/cargo-installFxdDcD`.

It is worth noting that v 0.19.0 builds from source just fine, so I propose that the fix could be as simple as releasing this to crates.io, which is still on v 0.18.0.

Maybe it's related to issue #1196

Metadata

Metadata

Assignees

No one assigned

    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