noa icon indicating copy to clipboard operation
noa copied to clipboard

error[E0658]: use of unstable library feature 'int_abs_diff'

Open spantheslayer opened this issue 3 years ago • 2 comments

$ cargo install --path src/editor Installing noa v0.0.0 (/home/spantheslayer/noa/src/editor) Updating crates.io index Compiling noa_buffer v0.0.0 (/home/spantheslayer/noa/src/buffer) error[E0658]: use of unstable library feature 'int_abs_diff' --> src/buffer/syntax.rs:223:30 | 223 | if range.start.x.abs_diff(range.end.x) > WORD_LEN_MAX {

= note: see issue #89492 <https://github.com/rust-lang/rust/issues/89492> for more information

For more information about this error, try rustc --explain E0658. error: failed to compile noa v0.0.0 (/home/spantheslayer/noa/src/editor), intermediate artifacts can be found at /home/spantheslayer/noa/target

Caused by: could not compile noa_buffer due to previous error

Tried using unsigned_abs_diff but didnt get any positive result. Can anyone help with it?

spantheslayer avatar Apr 10 '22 10:04 spantheslayer

Oh I forget to add this line in README. Could you try it again with a nightly Rust?

rustup override set nightly

nuta avatar Apr 12 '22 16:04 nuta

I think the last rustc version (1.60) stabilized this feature.

darleybarreto avatar Apr 18 '22 23:04 darleybarreto