Description
Hi,
I recently tried to install c2rust using the README instructions. I installed the nightly-2019-12-05 toolchain, and ran cargo +nightly-2019-12-05 install c2rust
. Unfortunately, I kept getting the following build error in several places.
error[E0658]: subslice patterns are unstable
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:162:41
|
162 | [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32,
| ^^
|
= note: for more information, see rust-lang/rust#62254
= help: add#![feature(slice_patterns)]
to the crate attributes to enable
However, when I compile on the latest version I get past this error. However, I get a different one:
error[E0462]: found staticlib
rustc
instead of rlib or dylib
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.15.0/src/lib.rs:2:1
|
2 | extern crate rustc;
| ^^^^^^^^^^^^^^^^^^^
|
= help: please recompile that crate using --crate-type lib
= note: the following crate versions were found:
Is it possible that the targeted version of Nightly has changed without updating the README? Is there anything else I should try to install c2rust successfully?