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

Build fails with error[E0642]: patterns aren't allowed in methods without bodies #30

Open
aeph6Ee0 opened this issue Jun 18, 2018 · 0 comments · May be fixed by #31
Open

Build fails with error[E0642]: patterns aren't allowed in methods without bodies #30

aeph6Ee0 opened this issue Jun 18, 2018 · 0 comments · May be fixed by #31

Comments

@aeph6Ee0
Copy link

Building with rustc v1.26.2 results in the following error message:

$ cargo build
[...]
   Compiling rustc-serialize v0.3.19
error[E0642]: patterns aren't allowed in methods without bodies
   --> /home/s/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.19/src/serialize.rs:147:45
    |
147 |                                             &f_name: &str,
    |                                             ^^^^^^^
[...]
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

This error has already been fixed in rustc-serialize (see rust-lang-deprecated/rustc-serialize#169), however, in Cargo.toml, an outdated version (rustc-serialize = "0.3") is referenced, where this fix is not yet present.

Suggested fixes

tormol pushed a commit to tormol/rust-2048 that referenced this issue Mar 17, 2023
Update settings.rs to use serde_json instead of rustc-serialize
Update dependencies

Closes coeuvre#30
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

Successfully merging a pull request may close this issue.

1 participant