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

error: Edition 2018 is unstable #28

Closed
slaweksiluk opened this issue Dec 19, 2018 · 2 comments
Closed

error: Edition 2018 is unstable #28

slaweksiluk opened this issue Dec 19, 2018 · 2 comments

Comments

@slaweksiluk
Copy link

I cannot build project on my machine:

[slawek@slawek-desktop rust_hdl]$ uname -a
Linux 4.18.19-100.fc27.x86_64 #1 SMP Wed Nov 14 22:04:34 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[slawek@slawek-desktop rust_hdl]$ rustc -V
rustc 1.30.1

Output:

[slawek@slawek-desktop rust_hdl]$ cargo run --bin vhdl_parser --verbose
       Fresh unicode-width v0.1.5                                                                                                                                        
       Fresh ansi_term v0.11.0                                                                                                                                           
       Fresh bitflags v1.0.4                                                                                                                                             
       Fresh vec_map v0.8.1                                                                                                                                              
       Fresh strsim v0.7.0                                                                                                                                               
       Fresh fnv v1.0.6                                                                                                                                                  
       Fresh textwrap v0.10.0                                                                                                                                            
       Fresh pad v0.1.5                                                                                                                                                  
       Fresh libc v0.2.45                                                                                                                                                
       Fresh serde v1.0.82                                                                                                                                               
       Fresh atty v0.2.11                                                                                                                                                
       Fresh toml v0.4.10                                                                                                                                                
       Fresh clap v2.32.0                                                                                                                                                
   Compiling vhdl_parser v0.4.0 (/home/slawek/git/github/rust_hdl/vhdl_parser)                                                                                           
     Running `rustc --edition=2018 --crate-name vhdl_parser vhdl_parser/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=3b2de8b47672ecc5 -C extra-filename=-3b2de8b47672ecc5 --out-dir /home/slawek/git/github/rust_hdl/target/debug/deps -C incremental=/home/slawek/git/github/rust_hdl/target/debug/incremental -L dependency=/home/slawek/git/github/rust_hdl/target/debug/deps --extern clap=/home/slawek/git/github/rust_hdl/target/debug/deps/libclap-663bd2b0902d3fff.rlib --extern fnv=/home/slawek/git/github/rust_hdl/target/debug/deps/libfnv-f76d38542e21cab9.rlib --extern pad=/home/slawek/git/github/rust_hdl/target/debug/deps/libpad-1b67d0c55374ab28.rlib --extern toml=/home/slawek/git/github/rust_hdl/target/debug/deps/libtoml-6542184d7b6585e4.rlib`
error: Edition 2018 is unstable and only available for nightly builds of rustc.                                                                                          
                                                                                                                                                                         
error: Could not compile `vhdl_parser`.                                                                                                                                  

Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name vhdl_parser vhdl_parser/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=3b2de8b47672ecc5 -C extra-filename=-3b2de8b47672ecc5 --out-dir /home/slawek/git/github/rust_hdl/target/debug/deps -C incremental=/home/slawek/git/github/rust_hdl/target/debug/incremental -L dependency=/home/slawek/git/github/rust_hdl/target/debug/deps --extern clap=/home/slawek/git/github/rust_hdl/target/debug/deps/libclap-663bd2b0902d3fff.rlib --extern fnv=/home/slawek/git/github/rust_hdl/target/debug/deps/libfnv-f76d38542e21cab9.rlib --extern pad=/home/slawek/git/github/rust_hdl/target/debug/deps/libpad-1b67d0c55374ab28.rlib --extern toml=/home/slawek/git/github/rust_hdl/target/debug/deps/libtoml-6542184d7b6585e4.rlib` (exit code: 1)

According to kbknapp/cargo-outdated#141 it is somehow related to edition switch.

@mbrobbel
Copy link
Contributor

Please update your compiler: rustup update. 2018 edition is rust 1.31.

@slaweksiluk
Copy link
Author

Thank you. Works fine when installed according to https://rustup.rs/ instead of using Fedra official repo.

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

2 participants