[INFO] fetching crate AmanitaMuscaria 0.0.5... [INFO] checking AmanitaMuscaria-0.0.5 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate AmanitaMuscaria 0.0.5 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate AmanitaMuscaria 0.0.5 [INFO] finished tweaking crates.io crate AmanitaMuscaria 0.0.5 [INFO] tweaked toml for crates.io crate AmanitaMuscaria 0.0.5 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate AmanitaMuscaria 0.0.5 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate AmanitaMuscaria 0.0.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pqcrypto-internals v0.2.3 [INFO] [stderr] Downloaded serde-big-array v0.3.2 [INFO] [stderr] Downloaded serde_derive v1.0.131 [INFO] [stderr] Downloaded ff v0.11.0 [INFO] [stderr] Downloaded zeroize_derive v1.2.2 [INFO] [stderr] Downloaded pqcrypto-traits v0.3.4 [INFO] [stderr] Downloaded ed25519 v1.3.0 [INFO] [stderr] Downloaded funty v1.2.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.33 [INFO] [stderr] Downloaded wyz v0.4.0 [INFO] [stderr] Downloaded serde v1.0.131 [INFO] [stderr] Downloaded pairing v0.21.0 [INFO] [stderr] Downloaded hkdf v0.11.0 [INFO] [stderr] Downloaded bls-signatures v0.11.1 [INFO] [stderr] Downloaded bitvec v0.22.3 [INFO] [stderr] Downloaded libc v0.2.109 [INFO] [stderr] Downloaded bls12_381 v0.6.0 [INFO] [stderr] Downloaded pqcrypto-falcon v0.2.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 834134ca9494aa10bb363ee60a485d203916470aa993cd955e81b1f8ae750f03 [INFO] running `Command { std: "docker" "start" "-a" "834134ca9494aa10bb363ee60a485d203916470aa993cd955e81b1f8ae750f03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "834134ca9494aa10bb363ee60a485d203916470aa993cd955e81b1f8ae750f03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "834134ca9494aa10bb363ee60a485d203916470aa993cd955e81b1f8ae750f03", kill_on_drop: false }` [INFO] [stdout] 834134ca9494aa10bb363ee60a485d203916470aa993cd955e81b1f8ae750f03 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f5e8bb3aa5303cb222e622d07fe8a2e0dee8ec939f735d79683bcc2e76a76ed [INFO] running `Command { std: "docker" "start" "-a" "0f5e8bb3aa5303cb222e622d07fe8a2e0dee8ec939f735d79683bcc2e76a76ed", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.131 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling serde v1.0.131 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking wyz v0.4.0 [INFO] [stderr] Checking funty v1.2.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.51 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking signature v1.5.0 [INFO] [stderr] Checking bitvec v0.22.3 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking subtle-ng v2.5.0 [INFO] [stderr] Checking ed25519 v1.3.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking pqcrypto-traits v0.3.4 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking base32 v0.4.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking blake2-rfc v0.2.18 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Compiling pqcrypto-internals v0.2.3 [INFO] [stderr] Compiling pqcrypto-falcon v0.2.10 [INFO] [stderr] Checking pbkdf2 v0.4.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking hkdf v0.11.0 [INFO] [stderr] Checking ff v0.11.0 [INFO] [stderr] Checking group v0.11.0 [INFO] [stderr] Checking pairing v0.21.0 [INFO] [stderr] Checking bls12_381 v0.6.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling zeroize_derive v1.2.2 [INFO] [stderr] Checking zeroize v1.4.3 [INFO] [stderr] Checking thiserror v1.0.30 [INFO] [stderr] Checking merlin v3.0.0 [INFO] [stderr] Checking curve25519-dalek v3.2.0 [INFO] [stderr] Checking curve25519-dalek-ng v4.1.1 [INFO] [stderr] Checking tiny-bip39 v0.8.2 [INFO] [stderr] Checking bls-signatures v0.11.1 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking serde-big-array v0.3.2 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking schnorrkel v0.10.2 [INFO] [stderr] Checking AmanitaMuscaria v0.0.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/traits/signature.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::*` [INFO] [stdout] --> src/encoding/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base64::*` [INFO] [stdout] --> src/encoding/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use base64::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bs58::*` [INFO] [stdout] --> src/encoding/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bs58::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_traits::Result` [INFO] [stdout] --> src/falcon/falcon1024.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pqcrypto_traits::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer` and `Serializer` [INFO] [stdout] --> src/falcon/falcon1024.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserializer, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bls_signatures::*` [INFO] [stdout] --> src/bls/bls_signature.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bls_signatures::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::*` [INFO] [stdout] --> src/bls/bls_signature.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base64::*` [INFO] [stdout] --> src/bls/bls_signature.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use base64::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/bls/bls_signature.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KEYPAIR_LENGTH` [INFO] [stdout] --> src/schnorr/schnorr.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | use schnorrkel::{PUBLIC_KEY_LENGTH, SECRET_KEY_LENGTH, KEYPAIR_LENGTH, SIGNATURE_LENGTH}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::seed::*` [INFO] [stdout] --> src/schnorr/schnorr.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::seed::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::os_random::*` [INFO] [stdout] --> src/schnorr/schnorr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::os_random::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bs58::*` [INFO] [stdout] --> src/schnorr/schnorr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bs58::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::prelude::*` [INFO] [stdout] --> src/traits/signature.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::*` [INFO] [stdout] --> src/encoding/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use hex::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base64::*` [INFO] [stdout] --> src/encoding/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use base64::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bs58::*` [INFO] [stdout] --> src/encoding/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bs58::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_traits::Result` [INFO] [stdout] --> src/falcon/falcon1024.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pqcrypto_traits::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserializer` and `Serializer` [INFO] [stdout] --> src/falcon/falcon1024.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::{Deserializer, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bls_signatures::*` [INFO] [stdout] --> src/bls/bls_signature.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use bls_signatures::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex::*` [INFO] [stdout] --> src/bls/bls_signature.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use hex::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base64::*` [INFO] [stdout] --> src/bls/bls_signature.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use base64::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KEYPAIR_LENGTH` [INFO] [stdout] --> src/schnorr/schnorr.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | use schnorrkel::{PUBLIC_KEY_LENGTH, SECRET_KEY_LENGTH, KEYPAIR_LENGTH, SIGNATURE_LENGTH}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::os_random::*` [INFO] [stdout] --> src/schnorr/schnorr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::os_random::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bs58::*` [INFO] [stdout] --> src/schnorr/schnorr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bs58::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_seed` [INFO] [stdout] --> src/seed.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let final_seed = seed.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_seed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut hex_limit: usize = BLS_PK_SIZE_IN_BYTES * 2usize; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pk` [INFO] [stdout] --> src/bls/bls_signature.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn verify>(pk: Vec<&[u8]>,message: Vec,signature: String) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/bls/bls_signature.rs:41:50 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn verify>(pk: Vec<&[u8]>,message: Vec,signature: String) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/bls/bls_signature.rs:41:66 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn verify>(pk: Vec<&[u8]>,message: Vec,signature: String) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/bls/bls_signature.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let mut i: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bls/bls_signature.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | for x in 0..num_of_pks { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/bls/bls_signature.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let mut i: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut prepended_data: usize = BLS_PK_SIZE_IN_BYTES * 2usize + 1; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut data_to_remove: String = message[0..prepended_data].to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bls/bls_signature.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | let mut i: usize = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bls/bls_signature.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | let mut i: usize = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keypair` [INFO] [stdout] --> src/bls/bls_signature.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let keypair = BLSKeypair::new(&seed.as_bytes()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sig2` [INFO] [stdout] --> src/bls/bls_signature.rs:564:9 [INFO] [stdout] | [INFO] [stdout] 564 | let sig2 = keypair.sign("Hello World 2."); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_sig2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut hex_limit: usize = BLS_PK_SIZE_IN_BYTES * 2usize; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pk` [INFO] [stdout] --> src/bls/bls_signature.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn verify>(pk: Vec<&[u8]>,message: Vec,signature: String) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pk` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/bls/bls_signature.rs:41:50 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn verify>(pk: Vec<&[u8]>,message: Vec,signature: String) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/bls/bls_signature.rs:41:66 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn verify>(pk: Vec<&[u8]>,message: Vec,signature: String) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/bls/bls_signature.rs:84:21 [INFO] [stdout] | [INFO] [stdout] 84 | let mut i: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bls/bls_signature.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | for x in 0..num_of_pks { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/bls/bls_signature.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let mut i: usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut prepended_data: usize = BLS_PK_SIZE_IN_BYTES * 2usize + 1; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut data_to_remove: String = message[0..prepended_data].to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bls/bls_signature.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | let mut i: usize = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bls/bls_signature.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | let mut i: usize = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bls/bls_signature.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let mut i: usize = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/schnorr/schnorr.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | for x in 0..32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_valid` [INFO] [stdout] --> src/schnorr/schnorr.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | let is_valid = signature.verify(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_valid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `construct_from_bytes` is never used [INFO] [stdout] --> src/schnorr/schnorr.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 113 | impl SchnorrKeypair { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | fn construct_from_bytes(pk_input: &[u8],sk_input: &[u8]) -> ([u8;PUBLIC_KEY_LENGTH],[u8;SECRET_KEY_LENGTH]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/seed.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug,Clone,Zeroize,PartialEq)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Zeroize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_zeroize_Zeroize_FOR_SecretPhrase` [INFO] [stdout] 12 | #[zeroize(drop)] [INFO] [stdout] 13 | pub struct SecretPhrase(String); [INFO] [stdout] | ------------ `SecretPhrase` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/seed.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug,Clone,Zeroize,PartialEq)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_Drop_FOR_SecretPhrase` [INFO] [stdout] 12 | #[zeroize(drop)] [INFO] [stdout] 13 | pub struct SecretPhrase(String); [INFO] [stdout] | ------------ `SecretPhrase` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Zeroize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_zeroize_Zeroize_FOR_SchnorrKeypair` [INFO] [stdout] 18 | #[zeroize(drop)] [INFO] [stdout] 19 | pub struct SchnorrKeypair { [INFO] [stdout] | -------------- `SchnorrKeypair` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_Drop_FOR_SchnorrKeypair` [INFO] [stdout] 18 | #[zeroize(drop)] [INFO] [stdout] 19 | pub struct SchnorrKeypair { [INFO] [stdout] | -------------- `SchnorrKeypair` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Zeroize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_zeroize_Zeroize_FOR_SchnorrSignature` [INFO] [stdout] 26 | #[zeroize(drop)] [INFO] [stdout] 27 | pub struct SchnorrSignature { [INFO] [stdout] | ---------------- `SchnorrSignature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_Drop_FOR_SchnorrSignature` [INFO] [stdout] 26 | #[zeroize(drop)] [INFO] [stdout] 27 | pub struct SchnorrSignature { [INFO] [stdout] | ---------------- `SchnorrSignature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/schnorr/schnorr.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | message: message.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/schnorr/schnorr.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | context: context.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/schnorr/schnorr.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | message: message.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/schnorr/schnorr.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | for x in 0..32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `construct_from_bytes` is never used [INFO] [stdout] --> src/schnorr/schnorr.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 113 | impl SchnorrKeypair { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | fn construct_from_bytes(pk_input: &[u8],sk_input: &[u8]) -> ([u8;PUBLIC_KEY_LENGTH],[u8;SECRET_KEY_LENGTH]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AmanitaMuscaria` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `amanita_muscaria` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/seed.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug,Clone,Zeroize,PartialEq)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Zeroize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_zeroize_Zeroize_FOR_SecretPhrase` [INFO] [stdout] 12 | #[zeroize(drop)] [INFO] [stdout] 13 | pub struct SecretPhrase(String); [INFO] [stdout] | ------------ `SecretPhrase` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/seed.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug,Clone,Zeroize,PartialEq)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_Drop_FOR_SecretPhrase` [INFO] [stdout] 12 | #[zeroize(drop)] [INFO] [stdout] 13 | pub struct SecretPhrase(String); [INFO] [stdout] | ------------ `SecretPhrase` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Zeroize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_zeroize_Zeroize_FOR_SchnorrKeypair` [INFO] [stdout] 18 | #[zeroize(drop)] [INFO] [stdout] 19 | pub struct SchnorrKeypair { [INFO] [stdout] | -------------- `SchnorrKeypair` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_Drop_FOR_SchnorrKeypair` [INFO] [stdout] 18 | #[zeroize(drop)] [INFO] [stdout] 19 | pub struct SchnorrKeypair { [INFO] [stdout] | -------------- `SchnorrKeypair` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Zeroize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_zeroize_Zeroize_FOR_SchnorrSignature` [INFO] [stdout] 26 | #[zeroize(drop)] [INFO] [stdout] 27 | pub struct SchnorrSignature { [INFO] [stdout] | ---------------- `SchnorrSignature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/schnorr/schnorr.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Zeroize,Debug,Clone,PartialEq,Serialize,Deserialize)] [INFO] [stdout] | ^------ [INFO] [stdout] | | [INFO] [stdout] | `Drop` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_Drop_FOR_SchnorrSignature` [INFO] [stdout] 26 | #[zeroize(drop)] [INFO] [stdout] 27 | pub struct SchnorrSignature { [INFO] [stdout] | ---------------- `SchnorrSignature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Zeroize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Zeroize` may come from an old version of the `zeroize_derive` crate, try updating your dependency with `cargo update -p zeroize_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Zeroize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/schnorr/schnorr.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | message: message.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/schnorr/schnorr.rs:156:29 [INFO] [stdout] | [INFO] [stdout] 156 | context: context.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/schnorr/schnorr.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 157 | message: message.clone().to_vec(), [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_valid` [INFO] [stdout] --> examples/falcon1024.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let is_valid = sig.verify(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_valid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pk_hex` [INFO] [stdout] --> examples/falcon1024.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let pk_hex = keypair.return_public_key_as_hex(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pk_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pk_bytes` [INFO] [stdout] --> examples/falcon1024.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let pk_bytes = keypair.return_public_key_as_bytes(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pk_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sk_hex` [INFO] [stdout] --> examples/falcon1024.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let sk_hex = keypair.return_secret_key_as_hex(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sk_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sk_bytes` [INFO] [stdout] --> examples/falcon1024.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let sk_bytes = keypair.return_secret_key_as_bytes(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sk_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> examples/falcon1024.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let address = keypair.return_address(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address_with_key` [INFO] [stdout] --> examples/falcon1024.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let address_with_key = keypair.return_address_using_key("Key 123"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address_with_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_valid_basic` [INFO] [stdout] --> examples/falcon1024.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let is_valid_basic = sig.verify(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_valid_basic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_valid` [INFO] [stdout] --> examples/falcon1024.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let is_valid: bool = Falcon1024Signature::verify_with_input(pk_hex,signature_base64,message); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_valid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_values` is never used [INFO] [stdout] --> examples/falcon1024.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn return_values(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_address` is never used [INFO] [stdout] --> examples/falcon1024.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn return_address(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_signature_values` is never used [INFO] [stdout] --> examples/falcon1024.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn return_signature_values(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregated` is never used [INFO] [stdout] --> examples/bls.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn aggregated(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aggregated_with_prepended_key` is never used [INFO] [stdout] --> examples/bls.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn aggregated_with_prepended_key(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> examples/schnorr.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let signature = keypair.sign(b"This is the Context",b"This message is being signed"); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.81s [INFO] running `Command { std: "docker" "inspect" "0f5e8bb3aa5303cb222e622d07fe8a2e0dee8ec939f735d79683bcc2e76a76ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f5e8bb3aa5303cb222e622d07fe8a2e0dee8ec939f735d79683bcc2e76a76ed", kill_on_drop: false }` [INFO] [stdout] 0f5e8bb3aa5303cb222e622d07fe8a2e0dee8ec939f735d79683bcc2e76a76ed