[INFO] fetching crate bitcoin-bloom 0.1.12-alpha.0... [INFO] checking bitcoin-bloom-0.1.12-alpha.0 against master#b1719530f44e3c8ec903f76020a52bd8764d5d10 for pr-108691 [INFO] extracting crate bitcoin-bloom 0.1.12-alpha.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate bitcoin-bloom 0.1.12-alpha.0 on toolchain b1719530f44e3c8ec903f76020a52bd8764d5d10 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1719530f44e3c8ec903f76020a52bd8764d5d10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bitcoin-bloom 0.1.12-alpha.0 [INFO] finished tweaking crates.io crate bitcoin-bloom 0.1.12-alpha.0 [INFO] tweaked toml for crates.io crate bitcoin-bloom 0.1.12-alpha.0 written to /workspace/builds/worker-1-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" "+b1719530f44e3c8ec903f76020a52bd8764d5d10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1719530f44e3c8ec903f76020a52bd8764d5d10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e2a9e7e193985ba0d5a8221c3984785a9e0a75acc409a02815633ff67a1f464e" "/opt/rustwide/cargo-home/bin/cargo" "+b1719530f44e3c8ec903f76020a52bd8764d5d10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9961826cb7430a67fad7ce2b5429f1d988b5f50159237fb1eb675727e9e8d499 [INFO] running `Command { std: "docker" "start" "-a" "9961826cb7430a67fad7ce2b5429f1d988b5f50159237fb1eb675727e9e8d499", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9961826cb7430a67fad7ce2b5429f1d988b5f50159237fb1eb675727e9e8d499", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9961826cb7430a67fad7ce2b5429f1d988b5f50159237fb1eb675727e9e8d499", kill_on_drop: false }` [INFO] [stdout] 9961826cb7430a67fad7ce2b5429f1d988b5f50159237fb1eb675727e9e8d499 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e2a9e7e193985ba0d5a8221c3984785a9e0a75acc409a02815633ff67a1f464e" "/opt/rustwide/cargo-home/bin/cargo" "+b1719530f44e3c8ec903f76020a52bd8764d5d10" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf4abedbea29bf31880c864e67fc4f8d42e540dbe7d8d1db478d430a633b3618 [INFO] running `Command { std: "docker" "start" "-a" "cf4abedbea29bf31880c864e67fc4f8d42e540dbe7d8d1db478d430a633b3618", kill_on_drop: false }` [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling gimli v0.27.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling cpp_common v0.5.7 [INFO] [stderr] Compiling term-painter v0.2.4 [INFO] [stderr] Compiling dunce v1.0.3 [INFO] [stderr] Compiling shell-words v0.1.0 [INFO] [stderr] Compiling pathdiff v0.1.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling object v0.30.3 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling sqlite3-src v0.2.12 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling clang-sys v1.6.0 [INFO] [stderr] Compiling bindgen v0.60.1 [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 nom v7.1.3 [INFO] [stderr] Compiling textwrap v0.16.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling addr2line v0.19.0 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling cpp_macros v0.5.7 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling qt_macros v0.1.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling clap v3.2.23 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling priority-queue v1.3.1 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling cpp_build v0.5.7 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling modular-bitfield-impl v0.11.2 [INFO] [stderr] Compiling qmetaobject_impl v0.2.7 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling sqlite3-sys v0.12.0 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling cpp_core v0.6.0 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling cpp v0.5.7 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-complex v0.4.3 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.7 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling try-catch v0.2.2 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling delegate v0.7.0 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling poison v0.1.0 [INFO] [stderr] Compiling qttypes v0.2.8 [INFO] [stderr] Compiling qmetaobject v0.2.7 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling modular-bitfield v0.11.2 [INFO] [stderr] Compiling shared-mutex v0.3.1 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling quanta v0.9.3 [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 sqlite v0.25.3 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling pnet_sys v0.31.0 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling time-point v0.1.1 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling atomic_float v0.1.0 [INFO] [stderr] Compiling comparator v0.3.0 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling const-default v1.0.0 [INFO] [stderr] Compiling multiset v0.0.5 [INFO] [stderr] Compiling atomic-take v1.1.0 [INFO] [stderr] Compiling bitset v0.1.2 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling serde-big-array v0.4.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling time v0.3.20 [INFO] [stderr] Compiling ritual_common v0.4.0 [INFO] [stderr] Compiling libevent-sys v0.2.6 [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] Checking libevent v0.1.0 [INFO] [stderr] Checking 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 bitcoin-support v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-rand v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-primitives v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-file v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-log v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-cache v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-modinv v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-env 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 bitcoin-compat 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-group v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-scalar v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-sha256 v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-ec v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-ripemd v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-secp256k1 v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-mem v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-serialize v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-version v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-hash v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinsecp256k1-keys v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-cuckoo-cache v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-string v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-time v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-sha512 v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-scripting v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-chacha v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-log v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-random v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-tx v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-bloom 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: 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: unused doc comment [INFO] [stdout] --> src/bloom.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | / /** [INFO] [stdout] 63 | | | The ideal size for a bloom filter with [INFO] [stdout] 64 | | | a given number of elements and false [INFO] [stdout] 65 | | | positive rate is: [INFO] [stdout] ... | [INFO] [stdout] 72 | | | [INFO] [stdout] 73 | | */ [INFO] [stdout] | |____________^ [INFO] [stdout] 74 | / let cap: usize = { [INFO] [stdout] 75 | | let n = n_elements as f64; [INFO] [stdout] 76 | | let lr = n_fp_rate.log10(); [INFO] [stdout] 77 | | let m0 = -1.0 / LN2SQUARED * n * lr; [INFO] [stdout] ... | [INFO] [stdout] 82 | | res.try_into().unwrap() [INFO] [stdout] 83 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bloom.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / /** [INFO] [stdout] 86 | | | The ideal number of hash functions is [INFO] [stdout] 87 | | | filter size * ln(2) / number of elements [INFO] [stdout] 88 | | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | | [INFO] [stdout] 97 | | */ [INFO] [stdout] | |____________^ [INFO] [stdout] 98 | / let n_hash_funcs = { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | let n = n_elements; [INFO] [stdout] 101 | | [INFO] [stdout] ... | [INFO] [stdout] 107 | | min(m0, MAX_HASH_FUNCS) [INFO] [stdout] 108 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bloom.rs:151:31 [INFO] [stdout] | [INFO] [stdout] 151 | self.data[pos] |= (1 << (7 & n_index)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - self.data[pos] |= (1 << (7 & n_index)); [INFO] [stdout] 151 + self.data[pos] |= 1 << (7 & n_index); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rolling.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | / /** [INFO] [stdout] 116 | | | For each data element we need to store [INFO] [stdout] 117 | | | 2 bits. [INFO] [stdout] 118 | | | [INFO] [stdout] ... | [INFO] [stdout] 130 | | | [INFO] [stdout] 131 | | */ [INFO] [stdout] | |____________^ [INFO] [stdout] 132 | let new_size: usize = (((n_filter_bits + 63) / 64) << 1).try_into().unwrap(); [INFO] [stdout] | ----------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_NONE` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | BLOOM_UPDATE_NONE = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateNone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_ALL` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | BLOOM_UPDATE_ALL = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateAll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_P2PUBKEY_ONLY` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | BLOOM_UPDATE_P2PUBKEY_ONLY = 2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateP2pubkeyOnly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_MASK` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | BLOOM_UPDATE_MASK = 3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateMask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bloom.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | / /** [INFO] [stdout] 63 | | | The ideal size for a bloom filter with [INFO] [stdout] 64 | | | a given number of elements and false [INFO] [stdout] 65 | | | positive rate is: [INFO] [stdout] ... | [INFO] [stdout] 72 | | | [INFO] [stdout] 73 | | */ [INFO] [stdout] | |____________^ [INFO] [stdout] 74 | / let cap: usize = { [INFO] [stdout] 75 | | let n = n_elements as f64; [INFO] [stdout] 76 | | let lr = n_fp_rate.log10(); [INFO] [stdout] 77 | | let m0 = -1.0 / LN2SQUARED * n * lr; [INFO] [stdout] ... | [INFO] [stdout] 82 | | res.try_into().unwrap() [INFO] [stdout] 83 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/bloom.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / /** [INFO] [stdout] 86 | | | The ideal number of hash functions is [INFO] [stdout] 87 | | | filter size * ln(2) / number of elements [INFO] [stdout] 88 | | | [INFO] [stdout] ... | [INFO] [stdout] 96 | | | [INFO] [stdout] 97 | | */ [INFO] [stdout] | |____________^ [INFO] [stdout] 98 | / let n_hash_funcs = { [INFO] [stdout] 99 | | [INFO] [stdout] 100 | | let n = n_elements; [INFO] [stdout] 101 | | [INFO] [stdout] ... | [INFO] [stdout] 107 | | min(m0, MAX_HASH_FUNCS) [INFO] [stdout] 108 | | }; [INFO] [stdout] | |__________- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bloom.rs:151:31 [INFO] [stdout] | [INFO] [stdout] 151 | self.data[pos] |= (1 << (7 & n_index)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - self.data[pos] |= (1 << (7 & n_index)); [INFO] [stdout] 151 + self.data[pos] |= 1 << (7 & n_index); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rolling.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | / /** [INFO] [stdout] 116 | | | For each data element we need to store [INFO] [stdout] 117 | | | 2 bits. [INFO] [stdout] 118 | | | [INFO] [stdout] ... | [INFO] [stdout] 130 | | | [INFO] [stdout] 131 | | */ [INFO] [stdout] | |____________^ [INFO] [stdout] 132 | let new_size: usize = (((n_filter_bits + 63) / 64) << 1).try_into().unwrap(); [INFO] [stdout] | ----------------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_NONE` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | BLOOM_UPDATE_NONE = 0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateNone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_ALL` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | BLOOM_UPDATE_ALL = 1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateAll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_P2PUBKEY_ONLY` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | BLOOM_UPDATE_P2PUBKEY_ONLY = 2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateP2pubkeyOnly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BLOOM_UPDATE_MASK` should have an upper camel case name [INFO] [stdout] --> src/flags.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | BLOOM_UPDATE_MASK = 3, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BloomUpdateMask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `RollingBloomFilter` does not permit zero-initialization [INFO] [stdout] --> src/rolling.rs:57:36 [INFO] [stdout] | [INFO] [stdout] 57 | 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/rolling.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | data: 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: unused `std::iter::Map` that must be used [INFO] [stdout] --> src/rolling.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | self.data.iter_mut().map(|x| *x = 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> src/rolling.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 250 | self.data.iter_mut().map(|x| *x = 0); [INFO] [stdout] | ^^^^----------^ [INFO] [stdout] | | | [INFO] [stdout] | | this function returns `()`, which is likely not what you wanted [INFO] [stdout] | | called `Iterator::map` with callable that returns `()` [INFO] [stdout] | after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 250 | self.data.iter_mut().for_each(|x| *x = 0); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `RollingBloomFilter` does not permit zero-initialization [INFO] [stdout] --> src/rolling.rs:57:36 [INFO] [stdout] | [INFO] [stdout] 57 | 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/rolling.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | data: 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: unused `std::iter::Map` that must be used [INFO] [stdout] --> src/rolling.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | self.data.iter_mut().map(|x| *x = 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `Iterator::map` call that discard the iterator's values [INFO] [stdout] --> src/rolling.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 250 | self.data.iter_mut().map(|x| *x = 0); [INFO] [stdout] | ^^^^----------^ [INFO] [stdout] | | | [INFO] [stdout] | | this function returns `()`, which is likely not what you wanted [INFO] [stdout] | | called `Iterator::map` with callable that returns `()` [INFO] [stdout] | after this call to map, the resulting iterator is `impl Iterator`, which means the only information carried by the iterator is the number of items [INFO] [stdout] | [INFO] [stdout] = note: `Iterator::map`, like many of the methods on `Iterator`, gets executed lazily, meaning that its effects won't be visible until it is iterated [INFO] [stdout] = note: `#[warn(map_unit_fn)]` on by default [INFO] [stdout] help: you might have meant to use `Iterator::for_each` [INFO] [stdout] | [INFO] [stdout] 250 | self.data.iter_mut().for_each(|x| *x = 0); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 16s [INFO] running `Command { std: "docker" "inspect" "cf4abedbea29bf31880c864e67fc4f8d42e540dbe7d8d1db478d430a633b3618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf4abedbea29bf31880c864e67fc4f8d42e540dbe7d8d1db478d430a633b3618", kill_on_drop: false }` [INFO] [stdout] cf4abedbea29bf31880c864e67fc4f8d42e540dbe7d8d1db478d430a633b3618