[INFO] fetching crate bitcoin-block 0.1.12-alpha.0... [INFO] testing bitcoin-block-0.1.12-alpha.0 against try#613d1972a772987ed4ee06faccbab0e2fc839871+rustflags=-Copt-level=3 for pr-107051 [INFO] extracting crate bitcoin-block 0.1.12-alpha.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate bitcoin-block 0.1.12-alpha.0 on toolchain 613d1972a772987ed4ee06faccbab0e2fc839871 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bitcoin-block 0.1.12-alpha.0 [INFO] finished tweaking crates.io crate bitcoin-block 0.1.12-alpha.0 [INFO] tweaked toml for crates.io crate bitcoin-block 0.1.12-alpha.0 written to /workspace/builds/worker-5-tc2/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" "+613d1972a772987ed4ee06faccbab0e2fc839871" "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" "+613d1972a772987ed4ee06faccbab0e2fc839871" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b12fda972f01bb8ddfe6d033b257e82d3a605a71f4fe8804bfca72aa7aa44f95 [INFO] running `Command { std: "docker" "start" "-a" "b12fda972f01bb8ddfe6d033b257e82d3a605a71f4fe8804bfca72aa7aa44f95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b12fda972f01bb8ddfe6d033b257e82d3a605a71f4fe8804bfca72aa7aa44f95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b12fda972f01bb8ddfe6d033b257e82d3a605a71f4fe8804bfca72aa7aa44f95", kill_on_drop: false }` [INFO] [stdout] b12fda972f01bb8ddfe6d033b257e82d3a605a71f4fe8804bfca72aa7aa44f95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4119613d1469ea2a2d28dc6a301c3cd2dd15c7b3f07b4668328ef9578b36e0a [INFO] running `Command { std: "docker" "start" "-a" "b4119613d1469ea2a2d28dc6a301c3cd2dd15c7b3f07b4668328ef9578b36e0a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling gimli v0.27.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling object v0.30.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling addr2line v0.19.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling term-painter v0.2.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling num_cpus v1.15.0 [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 cpp_common v0.5.7 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [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 clang-sys v1.4.0 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling cpp_build v0.5.7 [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 humantime v2.1.0 [INFO] [stderr] Compiling textwrap v0.16.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling clap v3.2.23 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling sqlite3-src v0.2.12 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling scopeguard v1.1.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 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 byteorder v1.4.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling sqlite3-sys v0.12.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Compiling cpp_core v0.6.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 thiserror v1.0.38 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling num-complex v0.4.3 [INFO] [stderr] Compiling raw-cpuid v10.6.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling poison v0.1.0 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling shared-mutex v0.3.1 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling quanta v0.9.3 [INFO] [stderr] Compiling sqlite3 v0.24.0 [INFO] [stderr] Compiling sqlite v0.25.3 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling pnet_sys v0.31.0 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling atomic-take v1.0.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling bitset v0.1.2 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling multiset v0.0.5 [INFO] [stderr] Compiling const-default v1.0.0 [INFO] [stderr] Compiling comparator v0.3.0 [INFO] [stderr] Compiling time-point v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling atomic_float v0.1.0 [INFO] [stderr] Compiling indoc v1.0.8 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [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 libevent-sys v0.2.5 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling qmetaobject_impl v0.2.7 [INFO] [stderr] Compiling modular-bitfield-impl v0.11.2 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling libevent v0.1.0 [INFO] [stderr] Compiling delegate v0.7.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling try-catch v0.2.2 [INFO] [stderr] Compiling cpp v0.5.7 [INFO] [stderr] Compiling modular-bitfield v0.11.2 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling serde-big-array v0.4.1 [INFO] [stderr] Compiling ritual_common v0.4.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 bitcoinleveldb-slice v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-status v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-util v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-filter v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-comparator v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-key v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-file v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-rand v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-support v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-log v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-primitives v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-cache v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-env v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-modinv v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-snapshot v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-options v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-amt v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-table v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-field v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-univalue v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-group v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-key v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-scratch v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-scalar v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-compat v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-ec v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-sha256 v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-secp256k1 v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-version v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-serialize v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-ripemd v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-mem v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-string v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-keys v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-hash v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-cuckoo-cache v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-scripting v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-log v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-time v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-tx v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-validation v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-block v0.1.12-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bitcoin_derive::*` [INFO] [stdout] --> src/imports.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) use bitcoin_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/block_index.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 373 - ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stdout] 373 + (self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/connect_trace.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | / /** [INFO] [stdout] 56 | | | We always keep one extra block at the [INFO] [stdout] 57 | | | end of our list because blocks are [INFO] [stdout] 58 | | | added after all the conflicted [INFO] [stdout] ... | [INFO] [stdout] 64 | | | return is sane. [INFO] [stdout] 65 | | */ [INFO] [stdout] | |____________^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_RESULT_UNSET` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | BLOCK_RESULT_UNSET = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockResultUnset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CONSENSUS` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | BLOCK_CONSENSUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockConsensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_RECENT_CONSENSUS_CHANGE` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | BLOCK_RECENT_CONSENSUS_CHANGE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockRecentConsensusChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CACHED_INVALID` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | BLOCK_CACHED_INVALID, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCachedInvalid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_INVALID_HEADER` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | BLOCK_INVALID_HEADER, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_MUTATED` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | BLOCK_MUTATED, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMutated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_MISSING_PREV` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | BLOCK_MISSING_PREV, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMissingPrev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_INVALID_PREV` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | BLOCK_INVALID_PREV, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidPrev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_TIME_FUTURE` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | BLOCK_TIME_FUTURE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockTimeFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CHECKPOINT` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | BLOCK_CHECKPOINT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCheckpoint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pindex: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | block: &Arc) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | block: Arc, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pindex: Arc) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | block: Arc, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pindex: Arc) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex_new` [INFO] [stdout] --> src/interface.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pindex_new: Option>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex_fork` [INFO] [stdout] --> src/interface.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | pindex_fork: Option>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_fork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_download` [INFO] [stdout] --> src/interface.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | initial_download: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_download` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `locator` [INFO] [stdout] --> src/interface.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | fn chain_state_flushed(&mut self, locator: &BlockLocator) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_locator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/block.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut s = String::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_hex_blk` [INFO] [stdout] --> src/block.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | str_hex_blk: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_hex_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/block_index.rs:501:24 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn get_block_proof(block: &BlockIndex) -> ArithU256 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pa` [INFO] [stdout] --> src/block_index.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | pa: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pb` [INFO] [stdout] --> src/block_index.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | pb: Option>) -> Option> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex_header` [INFO] [stdout] --> src/header.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | hex_header: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hex_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut s = String::default(); [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: variable does not need to be mutable [INFO] [stdout] --> src/block_index.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | let mut slice = std::slice::from_raw_parts_mut(pbegin, len); [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/flatfile_seq.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut x = Self { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/block_index.rs:260:37 [INFO] [stdout] | [INFO] [stdout] 260 | block.hash_prev_block = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/block_index.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_height`, `block_time`, `header_height`, `header_time`, and `verification_progress` are never read [INFO] [stdout] --> src/tip.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BlockAndHeaderTipInfo [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 8 | { [INFO] [stdout] 9 | block_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | block_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | header_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | header_time: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | verification_progress: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_height`, `block_time`, and `block_hash` are never read [INFO] [stdout] --> src/tip.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct BlockTip { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 22 | block_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | block_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | block_hash: u256, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `buf` should have an upper case name [INFO] [stdout] --> src/allocate_file_range.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 76 | static ref buf: [u8; 65536] = [0; 65536]; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `BUF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `block::Block` does not permit zero-initialization [INFO] [stdout] --> src/block.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub vtx: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `block::Block` does not permit zero-initialization [INFO] [stdout] --> src/block.rs:61:36 [INFO] [stdout] | [INFO] [stdout] 61 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub vtx: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12m 54s [INFO] running `Command { std: "docker" "inspect" "b4119613d1469ea2a2d28dc6a301c3cd2dd15c7b3f07b4668328ef9578b36e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4119613d1469ea2a2d28dc6a301c3cd2dd15c7b3f07b4668328ef9578b36e0a", kill_on_drop: false }` [INFO] [stdout] b4119613d1469ea2a2d28dc6a301c3cd2dd15c7b3f07b4668328ef9578b36e0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1c3ae057cb601d1da4a95e35323b7ed4d9b22d51f29a91347f90e2295a4aaab [INFO] running `Command { std: "docker" "start" "-a" "f1c3ae057cb601d1da4a95e35323b7ed4d9b22d51f29a91347f90e2295a4aaab", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `bitcoin_derive::*` [INFO] [stdout] --> src/imports.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) use bitcoin_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/block_index.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 373 - ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stdout] 373 + (self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/connect_trace.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | / /** [INFO] [stdout] 56 | | | We always keep one extra block at the [INFO] [stdout] 57 | | | end of our list because blocks are [INFO] [stdout] 58 | | | added after all the conflicted [INFO] [stdout] ... | [INFO] [stdout] 64 | | | return is sane. [INFO] [stdout] 65 | | */ [INFO] [stdout] | |____________^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_RESULT_UNSET` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | BLOCK_RESULT_UNSET = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockResultUnset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CONSENSUS` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | BLOCK_CONSENSUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockConsensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_RECENT_CONSENSUS_CHANGE` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | BLOCK_RECENT_CONSENSUS_CHANGE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockRecentConsensusChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CACHED_INVALID` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | BLOCK_CACHED_INVALID, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCachedInvalid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_INVALID_HEADER` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | BLOCK_INVALID_HEADER, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_MUTATED` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | BLOCK_MUTATED, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMutated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_MISSING_PREV` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | BLOCK_MISSING_PREV, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMissingPrev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_INVALID_PREV` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | BLOCK_INVALID_PREV, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidPrev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_TIME_FUTURE` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | BLOCK_TIME_FUTURE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockTimeFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CHECKPOINT` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | BLOCK_CHECKPOINT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCheckpoint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pindex: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | block: &Arc) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | block: Arc, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pindex: Arc) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | block: Arc, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pindex: Arc) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex_new` [INFO] [stdout] --> src/interface.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pindex_new: Option>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex_fork` [INFO] [stdout] --> src/interface.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | pindex_fork: Option>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_fork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_download` [INFO] [stdout] --> src/interface.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | initial_download: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_download` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `locator` [INFO] [stdout] --> src/interface.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | fn chain_state_flushed(&mut self, locator: &BlockLocator) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_locator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/block.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut s = String::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_hex_blk` [INFO] [stdout] --> src/block.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | str_hex_blk: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_hex_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/block_index.rs:501:24 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn get_block_proof(block: &BlockIndex) -> ArithU256 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pa` [INFO] [stdout] --> src/block_index.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | pa: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pb` [INFO] [stdout] --> src/block_index.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | pb: Option>) -> Option> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex_header` [INFO] [stdout] --> src/header.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | hex_header: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hex_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut s = String::default(); [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: variable does not need to be mutable [INFO] [stdout] --> src/block_index.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | let mut slice = std::slice::from_raw_parts_mut(pbegin, len); [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/flatfile_seq.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut x = Self { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/block_index.rs:260:37 [INFO] [stdout] | [INFO] [stdout] 260 | block.hash_prev_block = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/block_index.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_height`, `block_time`, `header_height`, `header_time`, and `verification_progress` are never read [INFO] [stdout] --> src/tip.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BlockAndHeaderTipInfo [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 8 | { [INFO] [stdout] 9 | block_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | block_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | header_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | header_time: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | verification_progress: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_height`, `block_time`, and `block_hash` are never read [INFO] [stdout] --> src/tip.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct BlockTip { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 22 | block_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | block_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | block_hash: u256, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `buf` should have an upper case name [INFO] [stdout] --> src/allocate_file_range.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 76 | static ref buf: [u8; 65536] = [0; 65536]; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `BUF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `block::Block` does not permit zero-initialization [INFO] [stdout] --> src/block.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub vtx: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `block::Block` does not permit zero-initialization [INFO] [stdout] --> src/block.rs:61:36 [INFO] [stdout] | [INFO] [stdout] 61 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub vtx: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bitcoin-block v0.1.12-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bitcoin_derive::*` [INFO] [stdout] --> src/imports.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) use bitcoin_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/block_index.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 373 - ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stdout] 373 + (self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/connect_trace.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | / /** [INFO] [stdout] 56 | | | We always keep one extra block at the [INFO] [stdout] 57 | | | end of our list because blocks are [INFO] [stdout] 58 | | | added after all the conflicted [INFO] [stdout] ... | [INFO] [stdout] 64 | | | return is sane. [INFO] [stdout] 65 | | */ [INFO] [stdout] | |____________^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_RESULT_UNSET` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | BLOCK_RESULT_UNSET = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockResultUnset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CONSENSUS` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | BLOCK_CONSENSUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockConsensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_RECENT_CONSENSUS_CHANGE` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | BLOCK_RECENT_CONSENSUS_CHANGE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockRecentConsensusChange` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CACHED_INVALID` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | BLOCK_CACHED_INVALID, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCachedInvalid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_INVALID_HEADER` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | BLOCK_INVALID_HEADER, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidHeader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_MUTATED` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | BLOCK_MUTATED, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMutated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_MISSING_PREV` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | BLOCK_MISSING_PREV, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMissingPrev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_INVALID_PREV` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | BLOCK_INVALID_PREV, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidPrev` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_TIME_FUTURE` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | BLOCK_TIME_FUTURE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockTimeFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOCK_CHECKPOINT` should have an upper camel case name [INFO] [stdout] --> src/validation.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | BLOCK_CHECKPOINT, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCheckpoint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pindex: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | block: &Arc) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | block: Arc, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | pindex: Arc) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/interface.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | block: Arc, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex` [INFO] [stdout] --> src/interface.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | pindex: Arc) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex_new` [INFO] [stdout] --> src/interface.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pindex_new: Option>, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pindex_fork` [INFO] [stdout] --> src/interface.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | pindex_fork: Option>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_fork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_download` [INFO] [stdout] --> src/interface.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | initial_download: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_download` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `locator` [INFO] [stdout] --> src/interface.rs:115:39 [INFO] [stdout] | [INFO] [stdout] 115 | fn chain_state_flushed(&mut self, locator: &BlockLocator) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_locator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/block.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut s = String::default(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_hex_blk` [INFO] [stdout] --> src/block.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | str_hex_blk: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_hex_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/block_index.rs:501:24 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn get_block_proof(block: &BlockIndex) -> ArithU256 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pa` [INFO] [stdout] --> src/block_index.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | pa: Option>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pb` [INFO] [stdout] --> src/block_index.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | pb: Option>) -> Option> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex_header` [INFO] [stdout] --> src/header.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | hex_header: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hex_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut s = String::default(); [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: variable does not need to be mutable [INFO] [stdout] --> src/block_index.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | let mut slice = std::slice::from_raw_parts_mut(pbegin, len); [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/flatfile_seq.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut x = Self { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/block_index.rs:260:37 [INFO] [stdout] | [INFO] [stdout] 260 | block.hash_prev_block = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/block_index.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_height`, `block_time`, `header_height`, `header_time`, and `verification_progress` are never read [INFO] [stdout] --> src/tip.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BlockAndHeaderTipInfo [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] 8 | { [INFO] [stdout] 9 | block_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | block_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | header_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | header_time: i64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | verification_progress: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_height`, `block_time`, and `block_hash` are never read [INFO] [stdout] --> src/tip.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct BlockTip { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 22 | block_height: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | block_time: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | block_hash: u256, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `buf` should have an upper case name [INFO] [stdout] --> src/allocate_file_range.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 76 | static ref buf: [u8; 65536] = [0; 65536]; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `BUF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `block::Block` does not permit zero-initialization [INFO] [stdout] --> src/block.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub vtx: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `block::Block` does not permit zero-initialization [INFO] [stdout] --> src/block.rs:61:36 [INFO] [stdout] | [INFO] [stdout] 61 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stdout] --> src/block.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub vtx: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.10s [INFO] running `Command { std: "docker" "inspect" "f1c3ae057cb601d1da4a95e35323b7ed4d9b22d51f29a91347f90e2295a4aaab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1c3ae057cb601d1da4a95e35323b7ed4d9b22d51f29a91347f90e2295a4aaab", kill_on_drop: false }` [INFO] [stdout] f1c3ae057cb601d1da4a95e35323b7ed4d9b22d51f29a91347f90e2295a4aaab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+613d1972a772987ed4ee06faccbab0e2fc839871" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7ac24c57efda9c07bbe3eb2fc2fee9c03ff9c00cc7828f65a4b882142889ab77 [INFO] running `Command { std: "docker" "start" "-a" "7ac24c57efda9c07bbe3eb2fc2fee9c03ff9c00cc7828f65a4b882142889ab77", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `bitcoin_derive::*` [INFO] [stderr] --> src/imports.rs:1:16 [INFO] [stderr] | [INFO] [stderr] 1 | pub(crate) use bitcoin_derive::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/block_index.rs:373:9 [INFO] [stderr] | [INFO] [stderr] 373 | ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 373 - ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stderr] 373 + (self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/connect_trace.rs:55:9 [INFO] [stderr] | [INFO] [stderr] 55 | / /** [INFO] [stderr] 56 | | | We always keep one extra block at the [INFO] [stderr] 57 | | | end of our list because blocks are [INFO] [stderr] 58 | | | added after all the conflicted [INFO] [stderr] ... | [INFO] [stderr] 64 | | | return is sane. [INFO] [stderr] 65 | | */ [INFO] [stderr] | |____________^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_RESULT_UNSET` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 61 | BLOCK_RESULT_UNSET = 0, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockResultUnset` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_CONSENSUS` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | BLOCK_CONSENSUS, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockConsensus` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_RECENT_CONSENSUS_CHANGE` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | BLOCK_RECENT_CONSENSUS_CHANGE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockRecentConsensusChange` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_CACHED_INVALID` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | BLOCK_CACHED_INVALID, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCachedInvalid` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_INVALID_HEADER` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | BLOCK_INVALID_HEADER, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidHeader` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_MUTATED` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | BLOCK_MUTATED, [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMutated` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_MISSING_PREV` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:110:5 [INFO] [stderr] | [INFO] [stderr] 110 | BLOCK_MISSING_PREV, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMissingPrev` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_INVALID_PREV` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | BLOCK_INVALID_PREV, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidPrev` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_TIME_FUTURE` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | BLOCK_TIME_FUTURE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockTimeFuture` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_CHECKPOINT` should have an upper camel case name [INFO] [stderr] --> src/validation.rs:129:5 [INFO] [stderr] | [INFO] [stderr] 129 | BLOCK_CHECKPOINT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCheckpoint` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pindex` [INFO] [stderr] --> src/interface.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | pindex: Arc, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/interface.rs:33:9 [INFO] [stderr] | [INFO] [stderr] 33 | block: &Arc) {} [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/interface.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | block: Arc, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pindex` [INFO] [stderr] --> src/interface.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | pindex: Arc) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/interface.rs:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | block: Arc, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pindex` [INFO] [stderr] --> src/interface.rs:65:9 [INFO] [stderr] | [INFO] [stderr] 65 | pindex: Arc) {} [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pindex_new` [INFO] [stderr] --> src/interface.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | pindex_new: Option>, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_new` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pindex_fork` [INFO] [stderr] --> src/interface.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | pindex_fork: Option>, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pindex_fork` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `initial_download` [INFO] [stderr] --> src/interface.rs:87:9 [INFO] [stderr] | [INFO] [stderr] 87 | initial_download: bool) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_download` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `locator` [INFO] [stderr] --> src/interface.rs:115:39 [INFO] [stderr] | [INFO] [stderr] 115 | fn chain_state_flushed(&mut self, locator: &BlockLocator) {} [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_locator` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/block.rs:88:17 [INFO] [stderr] | [INFO] [stderr] 88 | let mut s = String::default(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `str_hex_blk` [INFO] [stderr] --> src/block.rs:114:9 [INFO] [stderr] | [INFO] [stderr] 114 | str_hex_blk: &String) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_hex_blk` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block` [INFO] [stderr] --> src/block_index.rs:501:24 [INFO] [stderr] | [INFO] [stderr] 501 | pub fn get_block_proof(block: &BlockIndex) -> ArithU256 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pa` [INFO] [stderr] --> src/block_index.rs:530:9 [INFO] [stderr] | [INFO] [stderr] 530 | pa: Option>, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_pa` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pb` [INFO] [stderr] --> src/block_index.rs:531:9 [INFO] [stderr] | [INFO] [stderr] 531 | pb: Option>) -> Option> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_pb` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hex_header` [INFO] [stderr] --> src/header.rs:69:9 [INFO] [stderr] | [INFO] [stderr] 69 | hex_header: &String) -> bool { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hex_header` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/block.rs:88:13 [INFO] [stderr] | [INFO] [stderr] 88 | let mut s = String::default(); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/block_index.rs:333:17 [INFO] [stderr] | [INFO] [stderr] 333 | let mut slice = std::slice::from_raw_parts_mut(pbegin, len); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/flatfile_seq.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | let mut x = Self { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/block_index.rs:260:37 [INFO] [stderr] | [INFO] [stderr] 260 | block.hash_prev_block = unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/block_index.rs:446:13 [INFO] [stderr] | [INFO] [stderr] 446 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: fields `block_height`, `block_time`, `header_height`, `header_time`, and `verification_progress` are never read [INFO] [stderr] --> src/tip.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct BlockAndHeaderTipInfo [INFO] [stderr] | --------------------- fields in this struct [INFO] [stderr] 8 | { [INFO] [stderr] 9 | block_height: i32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 10 | block_time: i64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 11 | header_height: i32, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 12 | header_time: i64, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 13 | verification_progress: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `block_height`, `block_time`, and `block_hash` are never read [INFO] [stderr] --> src/tip.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct BlockTip { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 22 | block_height: i32, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 23 | block_time: i64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 24 | block_hash: u256, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `buf` should have an upper case name [INFO] [stderr] --> src/allocate_file_range.rs:76:24 [INFO] [stderr] | [INFO] [stderr] 76 | static ref buf: [u8; 65536] = [0; 65536]; [INFO] [stderr] | ^^^ help: convert the identifier to upper case: `BUF` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `block::Block` does not permit zero-initialization [INFO] [stderr] --> src/block.rs:49:36 [INFO] [stderr] | [INFO] [stderr] 49 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stderr] --> src/block.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub vtx: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `block::Block` does not permit zero-initialization [INFO] [stderr] --> src/block.rs:61:36 [INFO] [stderr] | [INFO] [stderr] 61 | let mut x: Self = unsafe { std::mem::zeroed() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] note: `bitcoin_imports::Unique>` must be non-null (in this struct field) [INFO] [stderr] --> src/block.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub vtx: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: because `bitcoin_imports::NonNull>` must be non-null [INFO] [stderr] [INFO] [stderr] warning: `bitcoin-block` (lib) generated 39 warnings (run `cargo fix --lib -p bitcoin-block` to apply 21 suggestions) [INFO] [stderr] warning: `bitcoin-block` (lib test) generated 39 warnings (39 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bitcoin_block-ce0fe88108597232) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests bitcoin-block [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> /opt/rustwide/workdir/src/block_index.rs:373:9 [INFO] [stderr] | [INFO] [stderr] 373 | ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 373 - ((self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits()) [INFO] [stderr] 373 + (self.n_status & BlockStatus::BLOCK_VALID_MASK.bits()) >= n_up_to.bits() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_RESULT_UNSET` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 61 | BLOCK_RESULT_UNSET = 0, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockResultUnset` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_CONSENSUS` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | BLOCK_CONSENSUS, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockConsensus` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_RECENT_CONSENSUS_CHANGE` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | BLOCK_RECENT_CONSENSUS_CHANGE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockRecentConsensusChange` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_CACHED_INVALID` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | BLOCK_CACHED_INVALID, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCachedInvalid` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_INVALID_HEADER` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | BLOCK_INVALID_HEADER, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidHeader` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_MUTATED` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | BLOCK_MUTATED, [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMutated` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_MISSING_PREV` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:110:5 [INFO] [stderr] | [INFO] [stderr] 110 | BLOCK_MISSING_PREV, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockMissingPrev` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_INVALID_PREV` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:116:5 [INFO] [stderr] | [INFO] [stderr] 116 | BLOCK_INVALID_PREV, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockInvalidPrev` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_TIME_FUTURE` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | BLOCK_TIME_FUTURE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockTimeFuture` [INFO] [stderr] [INFO] [stderr] warning: variant `BLOCK_CHECKPOINT` should have an upper camel case name [INFO] [stderr] --> /opt/rustwide/workdir/src/validation.rs:129:5 [INFO] [stderr] | [INFO] [stderr] 129 | BLOCK_CHECKPOINT, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BlockCheckpoint` [INFO] [stderr] [INFO] [stderr] warning: 11 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7ac24c57efda9c07bbe3eb2fc2fee9c03ff9c00cc7828f65a4b882142889ab77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ac24c57efda9c07bbe3eb2fc2fee9c03ff9c00cc7828f65a4b882142889ab77", kill_on_drop: false }` [INFO] [stdout] 7ac24c57efda9c07bbe3eb2fc2fee9c03ff9c00cc7828f65a4b882142889ab77