Pleco icon indicating copy to clipboard operation
Pleco copied to clipboard

Unable to compile with Rust nightly

Open alecho opened this issue 6 years ago • 3 comments

System Version: macOS 10.14.6 (18G103) Kernel Version: Darwin 18.7.0 rustc 1.41.0-nightly (25d8a9494 2019-11-29) Git: master, 0.1.5, 0.1.6

error[E0635]: unknown feature `const_slice_len`
  --> pleco/src/lib.rs:77:42
   |
77 | #![cfg_attr(feature = "nightly", feature(const_slice_len))]
   |                                          ^^^^^^^^^^^^^^^

alecho avatar Nov 30 '19 19:11 alecho

Hey alecho, I have a branch on my fork which I have tweaked so that it is compiling on the nightly channel. 👍 https://github.com/sfleischman105/Pleco/compare/master...MackEdweise:compile-nightly?expand=1

Note that I have not tested it out yet: I only know that it will build.

Update: tests are all passing :)

ghost avatar Nov 01 '20 05:11 ghost

on debian neither in any, stable, beta, nightly

$ cargo build --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/pleco/Cargo.toml
workspace: /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/pleco_engine/Cargo.toml
workspace: /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/Cargo.toml

   Compiling prefetch v0.2.0
   Compiling crossbeam-utils v0.8.1
   Compiling memoffset v0.6.1
   Compiling num-traits v0.2.14
error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/demo/.cargo/registry/src/github.com-1ecc6299db9ec823/prefetch-0.2.0/src/lib.rs:18:1

abdulbadii avatar Jan 08 '21 02:01 abdulbadii

Same on my windows 64-bit machine.

SnowballSH avatar Jun 07 '21 23:06 SnowballSH

@alecho @abdulbadii @SnowballSH This is fixed now 😄

chase-manning avatar Dec 03 '22 14:12 chase-manning