c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

Update to support 2022-07-11 `rustc_middle`

Open fw-immunant opened this issue 3 years ago • 4 comments

This will want either a docker redeploy with the new rust-toolchain file or a change to use rust-toolchain.toml so rustup can add the required components dynamically.

fw-immunant avatar Jul 12 '22 19:07 fw-immunant

This is causing some weird compile errors, both in CI and locally (but different ones). Locally, I'm also seeing this from cargo doc:

error[E0308]: mismatched types
   --> /home/kkysen/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-1.0.10/src/lib.rs:525:29
    |
525 |     pub const EMPTY: Self = "";
    |                             ^^ expected struct `BuildMetadata`, found `&str`

error[E0308]: mismatched types
   --> /home/kkysen/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-1.0.10/src/lib.rs:502:29
    |
502 |     pub const EMPTY: Self = "";
    |                             ^^ expected struct `Prerelease`, found `&str`

For more information about this error, try `rustc --explain E0308`.

kkysen avatar Jul 12 '22 19:07 kkysen

Ah, the CI errors are from old rustup component add rust-src rustc-dev. I'm working right now on the rust-toolchain.toml fix, which should solve that (so that CI passes, but it'll still have to download components every time until we update the docker containers).

kkysen avatar Jul 12 '22 19:07 kkysen

The semver doc compile error is our cargo dependency causing issues again. I'll update it. We really should get rid of cargo, though. It's caused many, many issues by now.

kkysen avatar Jul 12 '22 20:07 kkysen

I'll rebase.

fw-immunant avatar Jul 13 '22 18:07 fw-immunant

Superceded by #595.

kkysen avatar Aug 12 '22 07:08 kkysen