cosmwasm icon indicating copy to clipboard operation
cosmwasm copied to clipboard

error occurs: `cargo clippy --workspace --all-targets --all-features -- -D warnings`

Open Kynea0b opened this issue 1 year ago • 0 comments

Error

Rust version:

 % cargo version
cargo 1.69.0 (6e9a83356 2023-04-12)

This command results in an error:

cargo clippy --workspace --all-targets --all-features -- -D warnings

Error:

error[E0658]: use of unstable library feature 'error_generic_member_access'
 --> packages/crypto/src/errors.rs:8:10
  |
8 | #[derive(Error, Debug)]
  |          ^^^^^
  |
  = note: see issue #99301 <https://github.com/rust-lang/rust/issues/99301> for more information
  = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: use of unstable library feature 'provide_any'
 --> packages/crypto/src/errors.rs:8:10
  |
8 | #[derive(Error, Debug)]
  |          ^^^^^
  |
  = note: see issue #96024 <https://github.com/rust-lang/rust/issues/96024> for more information
  = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> packages/crypto/src/lib.rs:5:45
  |
5 | #![cfg_attr(feature = "backtraces", feature(backtrace))]
  |                                             ^^^^^^^^^

error: the feature `backtrace` has been stable since 1.65.0 and no longer requires an attribute to enable
 --> packages/crypto/src/lib.rs:5:45
  |
5 | #![cfg_attr(feature = "backtraces", feature(backtrace))]
  |                                             ^^^^^^^^^
  |
  = note: `-D stable-features` implied by `-D warnings`

Some errors have detailed explanations: E0554, E0658.
For more information about an error, try `rustc --explain E0554`.
error: could not compile `cosmwasm-crypto` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...

Refs: a PR and an issue in related upstream

https://github.com/CosmWasm/cosmwasm/pull/1613 https://github.com/CosmWasm/cosmwasm/issues/1623

Kynea0b avatar Feb 13 '24 08:02 Kynea0b