Rydgel / monkey-rust

An interpreter for the Monkey programming language written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#[feature] may not be used on the stable release channel

nilq opened this issue · comments

yes hello, this might or might not be a problem.

$ cargo build
   Compiling bitflags v0.8.2
   Compiling encode_unicode v0.1.3
   Compiling strsim v0.6.0
   Compiling ansi_term v0.9.0
   Compiling nom v2.2.0
   Compiling unicode-segmentation v1.1.0
   Compiling void v1.0.2
   Compiling bitflags v0.4.0
   Compiling semver v0.1.20
   Compiling vec_map v0.7.0
   Compiling unicode-width v0.1.4
   Compiling libc v0.2.21
   Compiling cfg-if v0.1.0
   Compiling rustc_version v0.1.7
   Compiling term_size v0.3.0
   Compiling atty v0.2.2
   Compiling nix v0.7.0
   Compiling clap v2.23.3
   Compiling rustyline v1.0.0 (https://github.com/kkawakam/rustyline#ec773db5)
   Compiling monkey-rust v0.1.0 (file:///home/niql/workspaces/rust/monkey-rust)
error[E0554]: #[feature] may not be used on the stable release channel
 --> lib/monkey.rs:1:1
  |
1 | #![feature(box_syntax, box_patterns, slice_patterns, advanced_slice_patterns)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #[feature] may not be used on the stable release channel
 --> lib/monkey.rs:2:1
  |
2 | #![feature(closure_to_fn_coercion)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile `monkey-rust`.

To learn more, run the command again with --verbose.

Indeed, you currently need to have a nightly Rust to compile this project.
If people thinks it's worth to make it compile with Rust stable, I can give it a try?

Hi @nilq, I removed all beta features. The project is now working with Rust stable too!
Thanks for the feedback.

Commits:
7f871da
44e9864
5edcf7f

Ah, neat - will take a look :))