archseer / enigma

An Erlang VM implementation in Rust
Mozilla Public License 2.0
1.05k stars 40 forks source link

Unable to compile #37

Closed chrisalmeida closed 5 years ago

chrisalmeida commented 5 years ago

Hi @archseer,

I'm very new to Rust (familiar with Erlang), so please forgive me. I am attempting to compile Enigma and receiving the following messageto use a constant of type value::Term in a pattern, value::Term must be annotated with #[derive(PartialEq, Eq)]. From what I can tell this seems to be related to the APPLY_2 const but again, I'm not familiar at all with Rust. Any idea what is causing this?

rustc 1.39.0-nightly (72b2abfd6 2019-08-29) rustup 1.18.3 (435397f48 2019-05-22) cargo 1.39.0-nightly (22f7dd049 2019-08-27)

archseer commented 5 years ago

Hi! It's a bug in rust nightly sadly: https://github.com/rust-lang/rust/issues/63479

They'll hopefully resolve it in a couple of weeks. I'll push a workaround meanwhile