[INFO] fetching crate bitcoin-hash 0.1.12-alpha.0... [INFO] building bitcoin-hash-0.1.12-alpha.0 against master#f3126500f25114ba4e0ac3e76694dd45a22de56d for pr-107620-1 [INFO] extracting crate bitcoin-hash 0.1.12-alpha.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate bitcoin-hash 0.1.12-alpha.0 on toolchain f3126500f25114ba4e0ac3e76694dd45a22de56d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f3126500f25114ba4e0ac3e76694dd45a22de56d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bitcoin-hash 0.1.12-alpha.0 [INFO] finished tweaking crates.io crate bitcoin-hash 0.1.12-alpha.0 [INFO] tweaked toml for crates.io crate bitcoin-hash 0.1.12-alpha.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+f3126500f25114ba4e0ac3e76694dd45a22de56d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f3126500f25114ba4e0ac3e76694dd45a22de56d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time-point v0.1.1 [INFO] [stderr] Downloaded term-painter v0.2.4 [INFO] [stderr] Downloaded shell-words v0.1.0 [INFO] [stderr] Downloaded qt_ritual_common v0.4.0 [INFO] [stderr] Downloaded cpp_core v0.6.0 [INFO] [stderr] Downloaded qttypes v0.2.8 [INFO] [stderr] Downloaded cpp v0.5.7 [INFO] [stderr] Downloaded qmetaobject_impl v0.2.7 [INFO] [stderr] Downloaded pnet_sys v0.31.0 [INFO] [stderr] Downloaded atomic_float v0.1.0 [INFO] [stderr] Downloaded const-default v1.0.0 [INFO] [stderr] Downloaded float-ord v0.3.2 [INFO] [stderr] Downloaded bitcoin-derive v0.1.12-alpha.0 [INFO] [stderr] Downloaded pathdiff v0.1.0 [INFO] [stderr] Downloaded ritual_build v0.4.0 [INFO] [stderr] Downloaded cpp_build v0.5.7 [INFO] [stderr] Downloaded qt_ritual_build v0.5.0 [INFO] [stderr] Downloaded serde-big-array v0.4.1 [INFO] [stderr] Downloaded modular-bitfield v0.11.2 [INFO] [stderr] Downloaded atomic-take v1.1.0 [INFO] [stderr] Downloaded cpp_macros v0.5.7 [INFO] [stderr] Downloaded quanta v0.9.3 [INFO] [stderr] Downloaded modular-bitfield-impl v0.11.2 [INFO] [stderr] Downloaded fs2 v0.4.3 [INFO] [stderr] Downloaded indoc v1.0.9 [INFO] [stderr] Downloaded libevent v0.1.0 [INFO] [stderr] Downloaded bitset v0.1.2 [INFO] [stderr] Downloaded delegate v0.7.0 [INFO] [stderr] Downloaded cpp_common v0.5.7 [INFO] [stderr] Downloaded bitcoin-compat v0.1.12-alpha.0 [INFO] [stderr] Downloaded bitcoin-primitives v0.1.12-alpha.0 [INFO] [stderr] Downloaded ritual_common v0.4.0 [INFO] [stderr] Downloaded bitcoin-sha256 v0.1.12-alpha.0 [INFO] [stderr] Downloaded sqlite3 v0.24.0 [INFO] [stderr] Downloaded comparator v0.3.0 [INFO] [stderr] Downloaded bitcoin-serialize v0.1.12-alpha.0 [INFO] [stderr] Downloaded qmetaobject v0.2.7 [INFO] [stderr] Downloaded bitcoin-ripemd v0.1.12-alpha.0 [INFO] [stderr] Downloaded sqlite v0.25.3 [INFO] [stderr] Downloaded bitcoin-support v0.1.12-alpha.0 [INFO] [stderr] Downloaded qt_macros v0.1.1 [INFO] [stderr] Downloaded multiset v0.0.5 [INFO] [stderr] Downloaded bitcoin-mem v0.1.12-alpha.0 [INFO] [stderr] Downloaded poison v0.1.0 [INFO] [stderr] Downloaded shared-mutex v0.3.1 [INFO] [stderr] Downloaded bitcoin-cfg v0.1.12-alpha.0 [INFO] [stderr] Downloaded bitcoin-imports v0.1.12-alpha.0 [INFO] [stderr] Downloaded libc-stdhandle v0.1.0 [INFO] [stderr] Downloaded sqlite3-sys v0.12.0 [INFO] [stderr] Downloaded bitcoin-version v0.1.12-alpha.0 [INFO] [stderr] Downloaded try-catch v0.2.2 [INFO] [stderr] Downloaded libevent-sys v0.2.5 [INFO] [stderr] Downloaded priority-queue v1.3.0 [INFO] [stderr] Downloaded integer-encoding v3.0.4 [INFO] [stderr] Downloaded phf_macros v0.10.0 [INFO] [stderr] Downloaded sqlite3-src v0.2.12 [INFO] [stderr] Downloaded qt_gui v0.5.0 [INFO] [stderr] Downloaded qt_core v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f3126500f25114ba4e0ac3e76694dd45a22de56d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f8142991c173dbf2ce4eb75b2676eff85d65c68402fda8c8cefe30fdb1bdedd [INFO] running `Command { std: "docker" "start" "-a" "7f8142991c173dbf2ce4eb75b2676eff85d65c68402fda8c8cefe30fdb1bdedd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f8142991c173dbf2ce4eb75b2676eff85d65c68402fda8c8cefe30fdb1bdedd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f8142991c173dbf2ce4eb75b2676eff85d65c68402fda8c8cefe30fdb1bdedd", kill_on_drop: false }` [INFO] [stdout] 7f8142991c173dbf2ce4eb75b2676eff85d65c68402fda8c8cefe30fdb1bdedd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f3126500f25114ba4e0ac3e76694dd45a22de56d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 589906cc2c4060a615aed1952108d079efe85a72d721b79243ee7f90af3d806b [INFO] running `Command { std: "docker" "start" "-a" "589906cc2c4060a615aed1952108d079efe85a72d721b79243ee7f90af3d806b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling shell-words v0.1.0 [INFO] [stderr] Compiling pathdiff v0.1.0 [INFO] [stderr] Compiling dunce v1.0.3 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling semver v1.0.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling term-painter v0.2.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling bindgen v0.60.1 [INFO] [stderr] Compiling textwrap v0.16.0 [INFO] [stderr] Compiling clang-sys v1.4.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling sqlite3-src v0.2.12 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling clap v3.2.23 [INFO] [stderr] Compiling sqlite3-sys v0.12.0 [INFO] [stderr] Compiling cpp_core v0.6.0 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Compiling priority-queue v1.3.0 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling num-complex v0.4.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling raw-cpuid v10.6.0 [INFO] [stderr] Compiling poison v0.1.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling shared-mutex v0.3.1 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling sqlite3 v0.24.0 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling sqlite v0.25.3 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling pnet_sys v0.31.0 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling atomic-take v1.1.0 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling time-point v0.1.1 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling atomic_float v0.1.0 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling bitset v0.1.2 [INFO] [stderr] Compiling multiset v0.0.5 [INFO] [stderr] Compiling comparator v0.3.0 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling const-default v1.0.0 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling quanta v0.9.3 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling cpp_common v0.5.7 [INFO] [stderr] Compiling cpp_build v0.5.7 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling qttypes v0.2.8 [INFO] [stderr] Compiling cpp_macros v0.5.7 [INFO] [stderr] Compiling qt_macros v0.1.1 [INFO] [stderr] Compiling qmetaobject v0.2.7 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling modular-bitfield-impl v0.11.2 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling qmetaobject_impl v0.2.7 [INFO] [stderr] Compiling delegate v0.7.0 [INFO] [stderr] Compiling try-catch v0.2.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling cpp v0.5.7 [INFO] [stderr] Compiling modular-bitfield v0.11.2 [INFO] [stderr] Compiling libevent-sys v0.2.5 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling serde-big-array v0.4.1 [INFO] [stderr] Compiling ritual_common v0.4.0 [INFO] [stderr] Compiling libevent v0.1.0 [INFO] [stderr] Compiling ritual_build v0.4.0 [INFO] [stderr] Compiling qt_ritual_common v0.4.0 [INFO] [stderr] Compiling qt_ritual_build v0.5.0 [INFO] [stderr] Compiling qt_core v0.5.0 [INFO] [stderr] Compiling qt_gui v0.5.0 [INFO] [stderr] Compiling bitcoin-imports v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-cfg v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-derive v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-support v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-primitives v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-compat v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-serialize v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-sha256 v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-mem v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-version v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-ripemd v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-hash v0.1.12-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/bytevectorhash.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bytevectorhash.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn invoke(&self, input: &Vec) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/assume.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(hash: &u256) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | #[inline] pub fn hash1(in1: &T) -> u256 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | in1: &T1, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in2` [INFO] [stdout] --> src/hash.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | in2: &T2) -> u256 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_type` [INFO] [stdout] --> src/hash.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let n_type: i32 = n_type.unwrap_or(SER_GETHASH as i32); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_version` [INFO] [stdout] --> src/hash.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let n_version: i32 = n_version.unwrap_or(PROTOCOL_VERSION as i32); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/hash.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | obj: &T, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/hash.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | #[inline] pub fn rotl32(x: u32, r: i8) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/hash.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | #[inline] pub fn rotl32(x: u32, r: i8) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/hash_160.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn finalize(&mut self, output: &[u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/hash_160.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn write(&mut self, input: &[u8]) -> &mut Hash160 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash_160.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | #[inline] pub fn hash160(in1: &T1) -> u160 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/hash_256.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn finalize(&mut self, output: &[u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/hash_256.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write(&mut self, input: &[u8]) -> &mut Hash256 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/hash_type.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | #[inline] fn eq(&self, other: &BaseHash) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/hash_type.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | #[inline] fn cmp(&self, other: &BaseHash) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_` [INFO] [stdout] --> src/hash_type.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new(in_: &HashType) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txid` [INFO] [stdout] --> src/hasher.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn invoke(&self, txid: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_txid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/hasher.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/hasher.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn invoke(&self, id: &OutPoint) -> usize { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hasher.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn invoke(&self, hash: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/hasher.rs:115:49 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn invoke(&self, key: &u256) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hasher.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn invoke(&self, hash: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `script` [INFO] [stdout] --> src/hasher.rs:159:26 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn invoke(&self, script: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_script` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_hash_seed` [INFO] [stdout] --> src/murmur.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | n_hash_seed: u32, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_hash_seed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_to_hash` [INFO] [stdout] --> src/murmur.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | data_to_hash: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_to_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/out_point.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn hash(&self, state: &mut H) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/out_point.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | #[inline] fn cmp(&self, other: &OutPoint) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/out_point.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | #[inline] fn eq(&self, other: &OutPoint) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_in` [INFO] [stdout] --> src/out_point.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | hash_in: &u256, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_in` [INFO] [stdout] --> src/out_point.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | n_in: u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_n_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/verifier.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[inline] fn shr(self, rhs: T) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/verifier.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(source: *mut Source) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pch` [INFO] [stdout] --> src/verifier.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pch: *mut u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_size` [INFO] [stdout] --> src/verifier.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | n_size: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_size` [INFO] [stdout] --> src/verifier.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn ignore(&mut self, n_size: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/writer.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[inline] fn shl(self, rhs: &T) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_type_in` [INFO] [stdout] --> src/writer.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | n_type_in: i32, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_type_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_version_in` [INFO] [stdout] --> src/writer.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | n_version_in: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_version_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pch` [INFO] [stdout] --> src/writer.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | pch: *const u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/writer.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | size: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/writer.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn tagged_hash(tag: &str) -> HashWriter { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/bytevectorhash.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ByteVectorHash { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 18 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base` is never read [INFO] [stdout] --> src/assume.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AssumeUtxoHash { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 4 | base: BaseHash, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hash_serialized` and `n_chain_tx` are never read [INFO] [stdout] --> src/assume.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct AssumeUtxoData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | hash_serialized: AssumeUtxoHash, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | n_chain_tx: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sha` is never read [INFO] [stdout] --> src/hash_160.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Hash160 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | sha: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sha` is never read [INFO] [stdout] --> src/hash_256.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Hash256 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 10 | sha: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hash` is never read [INFO] [stdout] --> src/hash_type.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BaseHash { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | hash: HashType, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SaltedTxidHasher { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct SaltedOutpointHasher { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 34 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct SaltedSipHasher { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 153 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 154 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base` and `source` are never read [INFO] [stdout] --> src/verifier.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashVerifier { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | base: HashWriter, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | source: *mut Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ctx`, `n_type`, and `n_version` are never read [INFO] [stdout] --> src/writer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashWriter { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 9 | ctx: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | n_type: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | n_version: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `hash_select` should have an upper case name [INFO] [stdout] --> src/hasher.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn invoke(&self, key: &u256) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `HASH_SELECT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 17s [INFO] running `Command { std: "docker" "inspect" "589906cc2c4060a615aed1952108d079efe85a72d721b79243ee7f90af3d806b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "589906cc2c4060a615aed1952108d079efe85a72d721b79243ee7f90af3d806b", kill_on_drop: false }` [INFO] [stdout] 589906cc2c4060a615aed1952108d079efe85a72d721b79243ee7f90af3d806b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+f3126500f25114ba4e0ac3e76694dd45a22de56d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4c604d78c844e8538b15694d43aa575e7a4a07addd107c9489fa3196137ecf8 [INFO] running `Command { std: "docker" "start" "-a" "d4c604d78c844e8538b15694d43aa575e7a4a07addd107c9489fa3196137ecf8", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/bytevectorhash.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bytevectorhash.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn invoke(&self, input: &Vec) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/assume.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(hash: &u256) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | #[inline] pub fn hash1(in1: &T) -> u256 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | in1: &T1, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in2` [INFO] [stdout] --> src/hash.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | in2: &T2) -> u256 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_type` [INFO] [stdout] --> src/hash.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let n_type: i32 = n_type.unwrap_or(SER_GETHASH as i32); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_version` [INFO] [stdout] --> src/hash.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let n_version: i32 = n_version.unwrap_or(PROTOCOL_VERSION as i32); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/hash.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | obj: &T, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/hash.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | #[inline] pub fn rotl32(x: u32, r: i8) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/hash.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | #[inline] pub fn rotl32(x: u32, r: i8) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/hash_160.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn finalize(&mut self, output: &[u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/hash_160.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn write(&mut self, input: &[u8]) -> &mut Hash160 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash_160.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | #[inline] pub fn hash160(in1: &T1) -> u160 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/hash_256.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn finalize(&mut self, output: &[u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/hash_256.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write(&mut self, input: &[u8]) -> &mut Hash256 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/hash_type.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | #[inline] fn eq(&self, other: &BaseHash) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/hash_type.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | #[inline] fn cmp(&self, other: &BaseHash) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_` [INFO] [stdout] --> src/hash_type.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new(in_: &HashType) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txid` [INFO] [stdout] --> src/hasher.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn invoke(&self, txid: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_txid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/hasher.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/hasher.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn invoke(&self, id: &OutPoint) -> usize { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hasher.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn invoke(&self, hash: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/hasher.rs:115:49 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn invoke(&self, key: &u256) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hasher.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn invoke(&self, hash: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `script` [INFO] [stdout] --> src/hasher.rs:159:26 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn invoke(&self, script: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_script` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_hash_seed` [INFO] [stdout] --> src/murmur.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | n_hash_seed: u32, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_hash_seed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_to_hash` [INFO] [stdout] --> src/murmur.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | data_to_hash: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_to_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/out_point.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn hash(&self, state: &mut H) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/out_point.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | #[inline] fn cmp(&self, other: &OutPoint) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/out_point.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | #[inline] fn eq(&self, other: &OutPoint) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_in` [INFO] [stdout] --> src/out_point.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | hash_in: &u256, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_in` [INFO] [stdout] --> src/out_point.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | n_in: u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_n_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/verifier.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[inline] fn shr(self, rhs: T) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/verifier.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(source: *mut Source) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bitcoin-hash v0.1.12-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `pch` [INFO] [stdout] --> src/verifier.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pch: *mut u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_size` [INFO] [stdout] --> src/verifier.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | n_size: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_size` [INFO] [stdout] --> src/verifier.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn ignore(&mut self, n_size: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/writer.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[inline] fn shl(self, rhs: &T) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_type_in` [INFO] [stdout] --> src/writer.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | n_type_in: i32, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_type_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_version_in` [INFO] [stdout] --> src/writer.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | n_version_in: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_version_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pch` [INFO] [stdout] --> src/writer.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | pch: *const u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/writer.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | size: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/writer.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn tagged_hash(tag: &str) -> HashWriter { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/bytevectorhash.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ByteVectorHash { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 18 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base` is never read [INFO] [stdout] --> src/assume.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AssumeUtxoHash { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 4 | base: BaseHash, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hash_serialized` and `n_chain_tx` are never read [INFO] [stdout] --> src/assume.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct AssumeUtxoData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | hash_serialized: AssumeUtxoHash, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | n_chain_tx: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sha` is never read [INFO] [stdout] --> src/hash_160.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Hash160 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | sha: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sha` is never read [INFO] [stdout] --> src/hash_256.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Hash256 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 10 | sha: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hash` is never read [INFO] [stdout] --> src/hash_type.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BaseHash { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | hash: HashType, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SaltedTxidHasher { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct SaltedOutpointHasher { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 34 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct SaltedSipHasher { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 153 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 154 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base` and `source` are never read [INFO] [stdout] --> src/verifier.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashVerifier { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | base: HashWriter, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | source: *mut Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ctx`, `n_type`, and `n_version` are never read [INFO] [stdout] --> src/writer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashWriter { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 9 | ctx: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | n_type: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | n_version: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `hash_select` should have an upper case name [INFO] [stdout] --> src/hasher.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn invoke(&self, key: &u256) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `HASH_SELECT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/bytevectorhash.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 50 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bytevectorhash.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn invoke(&self, input: &Vec) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/assume.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(hash: &u256) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | #[inline] pub fn hash1(in1: &T) -> u256 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | in1: &T1, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in2` [INFO] [stdout] --> src/hash.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | in2: &T2) -> u256 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_type` [INFO] [stdout] --> src/hash.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let n_type: i32 = n_type.unwrap_or(SER_GETHASH as i32); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_version` [INFO] [stdout] --> src/hash.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let n_version: i32 = n_version.unwrap_or(PROTOCOL_VERSION as i32); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_version` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/hash.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | obj: &T, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/hash.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | #[inline] pub fn rotl32(x: u32, r: i8) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/hash.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | #[inline] pub fn rotl32(x: u32, r: i8) -> u32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/hash_160.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn finalize(&mut self, output: &[u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/hash_160.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn write(&mut self, input: &[u8]) -> &mut Hash160 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in1` [INFO] [stdout] --> src/hash_160.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | #[inline] pub fn hash160(in1: &T1) -> u160 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/hash_256.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn finalize(&mut self, output: &[u8]) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/hash_256.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn write(&mut self, input: &[u8]) -> &mut Hash256 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/hash_type.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | #[inline] fn eq(&self, other: &BaseHash) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/hash_type.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | #[inline] fn cmp(&self, other: &BaseHash) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_` [INFO] [stdout] --> src/hash_type.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new(in_: &HashType) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `txid` [INFO] [stdout] --> src/hasher.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn invoke(&self, txid: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_txid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/hasher.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | fn write(&mut self, bytes: &[u8]) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/hasher.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn invoke(&self, id: &OutPoint) -> usize { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hasher.rs:89:26 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn invoke(&self, hash: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/hasher.rs:115:49 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn invoke(&self, key: &u256) -> u32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash` [INFO] [stdout] --> src/hasher.rs:137:26 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn invoke(&self, hash: &u256) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `script` [INFO] [stdout] --> src/hasher.rs:159:26 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn invoke(&self, script: &[u8]) -> usize { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_script` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_hash_seed` [INFO] [stdout] --> src/murmur.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | n_hash_seed: u32, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_hash_seed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_to_hash` [INFO] [stdout] --> src/murmur.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | data_to_hash: &[u8]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_to_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/out_point.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | fn hash(&self, state: &mut H) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/out_point.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | #[inline] fn cmp(&self, other: &OutPoint) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/out_point.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | #[inline] fn eq(&self, other: &OutPoint) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hash_in` [INFO] [stdout] --> src/out_point.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | hash_in: &u256, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hash_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_in` [INFO] [stdout] --> src/out_point.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | n_in: u32) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_n_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/verifier.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[inline] fn shr(self, rhs: T) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source` [INFO] [stdout] --> src/verifier.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(source: *mut Source) -> Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pch` [INFO] [stdout] --> src/verifier.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pch: *mut u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_size` [INFO] [stdout] --> src/verifier.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | n_size: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_size` [INFO] [stdout] --> src/verifier.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn ignore(&mut self, n_size: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> src/writer.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | #[inline] fn shl(self, rhs: &T) -> Self::Output { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_type_in` [INFO] [stdout] --> src/writer.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | n_type_in: i32, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_type_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_version_in` [INFO] [stdout] --> src/writer.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | n_version_in: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_version_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pch` [INFO] [stdout] --> src/writer.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | pch: *const u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/writer.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | size: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tag` [INFO] [stdout] --> src/writer.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn tagged_hash(tag: &str) -> HashWriter { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/bytevectorhash.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ByteVectorHash { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 18 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `base` is never read [INFO] [stdout] --> src/assume.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AssumeUtxoHash { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 4 | base: BaseHash, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hash_serialized` and `n_chain_tx` are never read [INFO] [stdout] --> src/assume.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct AssumeUtxoData { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | hash_serialized: AssumeUtxoHash, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | n_chain_tx: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sha` is never read [INFO] [stdout] --> src/hash_160.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Hash160 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 9 | sha: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sha` is never read [INFO] [stdout] --> src/hash_256.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Hash256 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 10 | sha: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hash` is never read [INFO] [stdout] --> src/hash_type.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BaseHash { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 6 | hash: HashType, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SaltedTxidHasher { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct SaltedOutpointHasher { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 34 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `k0` and `k1` are never read [INFO] [stdout] --> src/hasher.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct SaltedSipHasher { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 153 | k0: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 154 | k1: u64, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base` and `source` are never read [INFO] [stdout] --> src/verifier.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashVerifier { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | base: HashWriter, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | source: *mut Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ctx`, `n_type`, and `n_version` are never read [INFO] [stdout] --> src/writer.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HashWriter { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 9 | ctx: Sha256, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | n_type: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | n_version: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `hash_select` should have an upper case name [INFO] [stdout] --> src/hasher.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn invoke(&self, key: &u256) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `HASH_SELECT` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.77s [INFO] running `Command { std: "docker" "inspect" "d4c604d78c844e8538b15694d43aa575e7a4a07addd107c9489fa3196137ecf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4c604d78c844e8538b15694d43aa575e7a4a07addd107c9489fa3196137ecf8", kill_on_drop: false }` [INFO] [stdout] d4c604d78c844e8538b15694d43aa575e7a4a07addd107c9489fa3196137ecf8