rusty-cheddar icon indicating copy to clipboard operation
rusty-cheddar copied to clipboard

macOS Could not compile syntex_syntax v0.24.0

Open piaojin opened this issue 6 years ago • 3 comments

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".

piaojin avatar May 13 '18 16:05 piaojin

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.

Sean1708 avatar Jun 30 '18 10:06 Sean1708

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.

xzn avatar Jun 30 '18 14:06 xzn

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

piaojin avatar Jun 30 '18 17:06 piaojin