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]: the unsafe_op_in_unsafe_fn lint is unstable #6

Closed
Kreyren opened this issue Nov 16, 2021 · 2 comments
Closed

error[E0658]: the unsafe_op_in_unsafe_fn lint is unstable #6

Kreyren opened this issue Nov 16, 2021 · 2 comments
Assignees

Comments

@Kreyren
Copy link

Kreyren commented Nov 16, 2021

kreyren@leonid ~/Repositories/guix [env]$ ./pre-inst-env guix build rust-cargo-make
...
   Compiling ansi_term v0.11.0
   Compiling git_info v0.1.2
   Compiling rust_info v0.3.2
error[E0658]: the `unsafe_op_in_unsafe_fn` lint is unstable
   --> /tmp/guix-build-rust-cargo-make-0.35.6.drv-0/cargo-make-0.35.6/guix-vendor/rust-rust-info-0.3.2.tar.gz/src/lib.rs:1:1
    |
1   | / #![deny(
2   | |     absolute_paths_not_starting_with_crate,
3   | |     ambiguous_associated_items,
4   | |     anonymous_parameters,
...   |
125 | |     useless_deprecated
126 | | )]
    | |__^
    |
    = note: see issue #71668 <https://github.com/rust-lang/rust/issues/71668> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `rust_info`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
command "cargo" "build" "--release" failed with status 101
builder for `/gnu/store/9gi25bn6f4zn6c9qrz6mbhgw3k82yxcj-rust-cargo-make-0.35.6.drv' failed with exit code 1
build of /gnu/store/9gi25bn6f4zn6c9qrz6mbhgw3k82yxcj-rust-cargo-make-0.35.6.drv failed
View build log at '/var/log/guix/drvs/9g/i25bn6f4zn6c9qrz6mbhgw3k82yxcj-rust-cargo-make-0.35.6.drv.bz2'.
guix build: error: build of `/gnu/store/9gi25bn6f4zn6c9qrz6mbhgw3k82yxcj-rust-cargo-make-0.35.6.drv' failed

Describe The Bug

Fails to build on while defining cargo-make as a package for GNU Giox

To Reproduce

On GNU Guix:

  1. Invoke guix import crate cargo-make -r >> path/to/guix/repo/gnu/packages/crates-io.scm
  2. Use fix described in Wrong license identification on crates.io breaks guix importer briansmith/webpki#246
  3. Experience the build failure

Theoretical

  1. Build it on stable rustlang toolchain?

Relevants

R.1. rust-lang/rust#71668

@sagiegurari
Copy link
Owner

i think you need to update your rust version

@Kreyren
Copy link
Author

Kreyren commented Nov 16, 2021

yep, sorry didn't realize that guix is using 1.48 x.x

@Kreyren Kreyren closed this as completed Nov 16, 2021
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