Problem installing Rainicorn for Eclipse


#1

Noob question here. I’m installing Rainicorn for Eclipse & RustDT and I get the following error :

Compiling libc v0.2.14
error[E0642]: patterns aren’t allowed in methods without bodies
–> C:\Users\Abby.cargo\registry\src\github.com-1ecc6299db9ec823\rustc-serialize-0.3.19\src\serialize.rs:147:45
|
147 | &f_name: &str,
| ^^^^^^^

I can’t seem to find anything via Google. Anybody seen this or know how to correct this?

TIA


#2

It looks like RustDT has dependencies out of date: https://deps.rs/repo/github/RustDT/rainicorn and the rainicorn project is not maintained any more.

It is using rustc-serialize crate in an old version that doesn’t work any more. The whole crate is deprecated, and the current version is 0.3.24.

That old version has a bug that was accidentally allowed by the compiler a couple of years ago. In traits functions are supposed to declare arguments as name: type or just type, but pattern: type used to work by chance, since trait declarations didn’t have a body, so the pattern was never executed.


#3

Also RustDT itself is no longer maintained, and thus probably shouldn’t be your first choice of IDE to use: https://github.com/RustDT/RustDT

You probably want to look at intellij-rust or VSCode.