Update to support 2022-07-11 rustc_middle#513
Conversation
|
This is causing some weird compile errors, both in CI and locally (but different ones). Locally, I'm also seeing this from 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`. |
|
Ah, the CI errors are from old |
| let ret_value = if let TerminatorKind::Call { | ||
| destination: Some((place, _next_block)), | ||
| destination: place, | ||
| //target: Some(_next_block), |
There was a problem hiding this comment.
This may need to be uncommented.
There was a problem hiding this comment.
Why is/was a _* unused variable being used?
There was a problem hiding this comment.
The variable itself isn't used, but we may care whether the target is Some or None, as we cared before about destination being Some. If we just need a binding for place, we can forget about target.
| if destination.is_some() { | ||
| if true { |
There was a problem hiding this comment.
This logic can now execute unconditionally, but I've left the if true to have a place to hang a discussion off of. When would destination have been None? Do we need to ignore these cases some other way now?
There was a problem hiding this comment.
Leaving for reference.
It's quite a long if.
c2rust/dynamic_instrumentation/src/instrument_memory.rs
Lines 678 to 740 in a15c7df
|
The |
…lly depends on has a `cargo doc` error.
|
I'll rebase. |
a15c7df to
3b49053
Compare
…is-rt` instead of the user having to manually do it. However, we have to use `+stable` as `cargo add` was added in 1.62 (on 1.60 now, but upgrading in #513).
|
Superceded by #595. |
…is-rt` instead of the user having to manually do it. However, we have to use `+stable` as `cargo add` was added in 1.62 (on 1.60 now, but upgrading in #513).
This will want either a docker redeploy with the new
rust-toolchainfile or a change to userust-toolchain.tomlso rustup can add the required components dynamically.