Installation Error - unspecified
RealLukeMartin opened this issue · 4 comments
RealLukeMartin commented
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading libc v0.2.4
Downloading lazy_static v0.1.15
Downloading sdl2 v0.6.1
Downloading time v0.1.34
Downloading bitflags v0.2.1
Downloading rand v0.3.12
Downloading num v0.1.29
Downloading libc v0.1.12
Downloading sdl2-sys v0.6.2
Downloading advapi32-sys v0.1.2
Downloading winapi v0.2.5
Downloading winapi-build v0.1.1
Downloading rustc-serialize v0.3.16
Downloading kernel32-sys v0.2.1
Compiling winapi-build v0.1.1
Compiling winapi v0.2.5
Compiling libc v0.2.4
Compiling sdl2-sys v0.6.2
Compiling rustc-serialize v0.3.16
Compiling libc v0.1.12
Compiling bitflags v0.2.1
Compiling lazy_static v0.1.15
error[E0642]: patterns aren't allowed in methods without bodies
--> /Users/me/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.16/src/serialize.rs:145:45
|
145 | &f_name: &str,
| ^^^^^^^
Compiling advapi32-sys v0.1.2
Compiling kernel32-sys v0.2.1
error: aborting due to previous error
For more information about this error, try `rustc --explain E0642`.
error: Could not compile `rustc-serialize`.
warning: build failed, waiting for other jobs to finish...
error: build failed
➜ sprocketnes git:(master) ✗ rustc --explain E0642
error: no extended information for E0642```
RealLukeMartin commented
Ran with cargo build
on the repo
johannesleander commented
I'm running into this same issue. Will investigate further.
johannesleander commented
The issue seem to be related to a deprecated dependency in package 'sdl2'. Changing line 11 in Cargo.toml
to sdl2 = "*"
fixed this particular error, but introduced a new one where another dependency fails.
Building on OSX Mojave.
RealLukeMartin commented
Also building on OSX Mojave