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[E0658]: use of unstable library feature 'int_abs_diff' #1

Open
spantheslayer opened this issue Apr 10, 2022 · 2 comments
Open

Comments

@spantheslayer
Copy link

$ 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?

@nuta
Copy link
Owner

nuta commented Apr 12, 2022

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

rustup override set nightly

@darleybarreto
Copy link

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

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

3 participants