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

renaming imports with _ is unstable (see issue #48216) #89

Closed
ghost opened this issue Apr 24, 2019 · 5 comments
Closed

renaming imports with _ is unstable (see issue #48216) #89

ghost opened this issue Apr 24, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2019

Hi

When I install sn0int: "cargo install sn0int" I get this error

error[E0658]: renaming imports with _ is unstable (see issue #48216)
--> /usr/cargo/registry/src/github.com-1ecc6299db9ec823/nude-0.1.0/src/lib.rs:16:5
|
16 | use image::Pixel as _;
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try rustc --explain E0658.
error: Could not compile nude.
warning: build failed, waiting for other jobs to finish...
error: failed to compile sn0int v0.11.0, intermediate artifacts can be found at /tmp/user/0/cargo-installZwAGFZ
Caused by:
build failed

Is there anyway to solve the 'nude' build issue ?

@kpcyrd
Copy link
Owner

kpcyrd commented Apr 24, 2019

The crate is using the Import as _ feature that was introduced in rustc 1.33.0. Please make sure your compiler is recent enough (rustc --version). If you've installed rust with rustup try rustup update.

If you've installed rust from a distro I'd be curious to know which one. :)

@ghost
Copy link
Author

ghost commented Apr 24, 2019

Thank you for reply, now I know why it doesn't compile.
I have rustc 1.32 via kali linux repositories.

I'll submit a new upgrade on their bug tracker site

@kpcyrd
Copy link
Owner

kpcyrd commented Apr 25, 2019

hmm, kali linux tracks rust from debian testing, which is currently in freeze for the next debian release. There is a rustc upload to experimental in the ftp-master NEW queue which kali linux could use, but that would be quite a bit of work.

@nil0x42
Copy link

nil0x42 commented Apr 28, 2019

Hi! I have exactly the same issue (with kali too).

@kpcyrd
Copy link
Owner

kpcyrd commented May 13, 2019

I've applied a patch to the nude crate but this doesn't fix the build yet since the latest version of trust-dns-proto also uses a feature that's unavailable in debian testing.

My current recommendation is either installing cargo with rustup or using the docker image.

The situation is very likely to resolve itself after the debian release freeze is over. Sorry for the issues.

@kpcyrd kpcyrd closed this as completed Jul 27, 2019
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