Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Could not compile image. #275

Open
tylerhjones opened this issue Jun 1, 2017 · 1 comment
Open

error: Could not compile image. #275

tylerhjones opened this issue Jun 1, 2017 · 1 comment

Comments

@tylerhjones
Copy link

error[E0001]: unreachable pattern
   --> /Users/tyler/.cargo/registry/src/github.com-1ecc6299db9ec823/image-0.13.0/./src/dynimage.rs:632:9
    |
632 |         _ => Err(image::ImageError::UnsupportedError(format!("A decoder for {:?} is not available.", format))),
    |         ^ this is an unreachable pattern

error: aborting due to previous error

Build failed, waiting for other jobs to finish...
error: Could not compile `image`.

This is on osx, a vanilla clone.
rustc 1.15.1 (021bd294c 2017-02-08)
cargo 0.16.0-nightly (3568be9 2016-11-26)

@abaybektursun
Copy link

For some reason image does not compile with rustc 1.15.1. I had the same version of rust and cargo on Windows, CentOS, Ubuntu machines, and image would not compile. Updating Rust resolved the issue.

You can quickly update your Rust by running:
rustup self uninstall && curl https://sh.rustup.rs -sSf | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants