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

macOS Could not compile syntex_syntax v0.24.0 #56

Open
piaojin opened this issue May 13, 2018 · 3 comments
Open

macOS Could not compile syntex_syntax v0.24.0 #56

piaojin opened this issue May 13, 2018 · 3 comments

Comments

@piaojin
Copy link

piaojin commented May 13, 2018

Cargo.lock:
[[package]]
name = "rusty-cheddar"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"clap 1.5.6 (registry+https://github.com/rust-lang/crates.io-index)",
"syntex_syntax 0.24.0 (registry+https://github.com/rust-lang/crates.io-index)",
"toml 0.1.30 (registry+https://github.com/rust-lang/crates.io-index)",
]

when I cargo build and then I will get following error:

error: to use a constant of type codemap::Span in a pattern, codemap::Span must be annotated with #[derive(PartialEq, Eq)]
--> /Users/zoey.weng/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.24.0/src/errors/emitter.rs:100:18
|
100 | Some(COMMAND_LINE_SP) => self.emit_(FileLine(COMMAND_LINE_SP), msg, code, lvl),
| ^^^^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile syntex_syntax.

"syntex_syntax 0.59.1" is ok. But rusty-cheddar use "syntex_syntax 0.24.0".

@Sean1708
Copy link
Owner

Hi @piaojin, as you can probably tell I don't really have the time to maintain this crate anymore unfortunately. I would strongly suggest looking into cbindgen instead.

@xzn
Copy link

xzn commented Jun 30, 2018

Just to chime in that syntex_syntax v0.24.0 doesn't compile in windows-gnu either. cbindgen works though :)

Thanks for all the work so far.

@piaojin
Copy link
Author

piaojin commented Jun 30, 2018

@Sean1708 Thank you for your suggestion. I will try cbindgen.

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

3 participants