[INFO] fetching crate rsd 0.1.0... [INFO] building rsd-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate rsd 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate rsd 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rsd 0.1.0 [INFO] finished tweaking crates.io crate rsd 0.1.0 [INFO] tweaked toml for crates.io crate rsd 0.1.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" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 14 packages to latest compatible versions [INFO] [stderr] Adding blake2 v0.8.1 (available: v0.10.6) [INFO] [stderr] Adding cryptoxide v0.1.3 (available: v0.4.4) [INFO] [stderr] Adding hex v0.3.2 (available: v0.4.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cryptoxide v0.1.3 [INFO] [stderr] Downloaded sp800-185 v0.2.0 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74cd5712f12f82fabcb7fcb998922f7b20f5e13f567b4bdb72794e2a2212e37d [INFO] running `Command { std: "docker" "start" "-a" "74cd5712f12f82fabcb7fcb998922f7b20f5e13f567b4bdb72794e2a2212e37d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74cd5712f12f82fabcb7fcb998922f7b20f5e13f567b4bdb72794e2a2212e37d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74cd5712f12f82fabcb7fcb998922f7b20f5e13f567b4bdb72794e2a2212e37d", kill_on_drop: false }` [INFO] [stdout] 74cd5712f12f82fabcb7fcb998922f7b20f5e13f567b4bdb72794e2a2212e37d [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0792ba3d7546cdcf6611fd3cc7867bcaf3c85604354337b7ca19deb2b3f4d962 [INFO] running `Command { std: "docker" "start" "-a" "0792ba3d7546cdcf6611fd3cc7867bcaf3c85604354337b7ca19deb2b3f4d962", kill_on_drop: false }` [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling cryptoxide v0.1.3 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling tiny-keccak v1.5.0 [INFO] [stderr] Compiling blake2 v0.8.1 [INFO] [stderr] Compiling sp800-185 v0.2.0 [INFO] [stderr] Compiling rsd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/net/types.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | const NETWORK: u64 = (1 << 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - const NETWORK: u64 = (1 << 0); [INFO] [stdout] 29 + const NETWORK: u64 = 1 << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/net/types.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | const BLOOM: u64 = (1 << 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - const BLOOM: u64 = (1 << 1); [INFO] [stdout] 30 + const BLOOM: u64 = 1 << 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/types/amount.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | '0'...'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `clippy` [INFO] [stdout] --> src/types/uint.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | #[cfg_attr(feature = "clippy", allow(expl_impl_clone_on_copy))] // we don't define the `struct`, we have to explicitly impl [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types/amount.rs:79:41 [INFO] [stdout] | [INFO] [stdout] 79 | let desc = ::std::error::Error::description(self); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/amount.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/amount.rs:274:40 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn fmt_value_in(&self, f: &mut fmt::Write, denom: Denomination) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 274 | pub fn fmt_value_in(&self, f: &mut dyn fmt::Write, denom: Denomination) -> fmt::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/uint.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | ::fmt(self, f) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 610 | ::fmt(self, f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/blockchain/chain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Chain { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `network` and `chain` are never read [INFO] [stdout] --> src/net/pool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Pool { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | chain: Chain, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `services`, `time`, and `key` are never read [INFO] [stdout] --> src/net/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PeerAddr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | address: SocketAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | services: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | //TODO check type on this. [INFO] [stdout] 11 | time: SystemTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | key: IdentityKey, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/net/types.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct IdentityKey([u8; 33]); [INFO] [stdout] | ----------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] running `Command { std: "docker" "inspect" "0792ba3d7546cdcf6611fd3cc7867bcaf3c85604354337b7ca19deb2b3f4d962", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0792ba3d7546cdcf6611fd3cc7867bcaf3c85604354337b7ca19deb2b3f4d962", kill_on_drop: false }` [INFO] [stdout] 0792ba3d7546cdcf6611fd3cc7867bcaf3c85604354337b7ca19deb2b3f4d962 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0010ea20360067509d7e7212d57b45248b72a9aa951975bf7ad5bed579efc9c6 [INFO] running `Command { std: "docker" "start" "-a" "0010ea20360067509d7e7212d57b45248b72a9aa951975bf7ad5bed579efc9c6", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/net/types.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | const NETWORK: u64 = (1 << 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - const NETWORK: u64 = (1 << 0); [INFO] [stdout] 29 + const NETWORK: u64 = 1 << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/net/types.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | const BLOOM: u64 = (1 << 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - const BLOOM: u64 = (1 << 1); [INFO] [stdout] 30 + const BLOOM: u64 = 1 << 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/types/amount.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | '0'...'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `clippy` [INFO] [stdout] --> src/types/uint.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | #[cfg_attr(feature = "clippy", allow(expl_impl_clone_on_copy))] // we don't define the `struct`, we have to explicitly impl [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types/amount.rs:79:41 [INFO] [stdout] | [INFO] [stdout] 79 | let desc = ::std::error::Error::description(self); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/amount.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/amount.rs:274:40 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn fmt_value_in(&self, f: &mut fmt::Write, denom: Denomination) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 274 | pub fn fmt_value_in(&self, f: &mut dyn fmt::Write, denom: Denomination) -> fmt::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/uint.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | ::fmt(self, f) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 610 | ::fmt(self, f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/blockchain/chain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Chain { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `network` and `chain` are never read [INFO] [stdout] --> src/net/pool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Pool { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | chain: Chain, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `services`, `time`, and `key` are never read [INFO] [stdout] --> src/net/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PeerAddr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | address: SocketAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | services: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | //TODO check type on this. [INFO] [stdout] 11 | time: SystemTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | key: IdentityKey, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rsd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/net/types.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct IdentityKey([u8; 33]); [INFO] [stdout] | ----------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/net/types.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | const NETWORK: u64 = (1 << 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - const NETWORK: u64 = (1 << 0); [INFO] [stdout] 29 + const NETWORK: u64 = 1 << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/net/types.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | const BLOOM: u64 = (1 << 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - const BLOOM: u64 = (1 << 1); [INFO] [stdout] 30 + const BLOOM: u64 = 1 << 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/types/amount.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | '0'...'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `clippy` [INFO] [stdout] --> src/types/uint.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | #[cfg_attr(feature = "clippy", allow(expl_impl_clone_on_copy))] // we don't define the `struct`, we have to explicitly impl [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/types/amount.rs:79:41 [INFO] [stdout] | [INFO] [stdout] 79 | let desc = ::std::error::Error::description(self); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/amount.rs:89:32 [INFO] [stdout] | [INFO] [stdout] 89 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 89 | fn cause(&self) -> Option<&dyn error::Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/amount.rs:274:40 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn fmt_value_in(&self, f: &mut fmt::Write, denom: Denomination) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 274 | pub fn fmt_value_in(&self, f: &mut dyn fmt::Write, denom: Denomination) -> fmt::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/types/uint.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | ::fmt(self, f) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 610 | ::fmt(self, f) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/blockchain/chain.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Chain { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 4 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `network` and `chain` are never read [INFO] [stdout] --> src/net/pool.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Pool { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | chain: Chain, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `services`, `time`, and `key` are never read [INFO] [stdout] --> src/net/types.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct PeerAddr { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | address: SocketAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | services: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | //TODO check type on this. [INFO] [stdout] 11 | time: SystemTime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | key: IdentityKey, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/net/types.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct IdentityKey([u8; 33]); [INFO] [stdout] | ----------- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "0010ea20360067509d7e7212d57b45248b72a9aa951975bf7ad5bed579efc9c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0010ea20360067509d7e7212d57b45248b72a9aa951975bf7ad5bed579efc9c6", kill_on_drop: false }` [INFO] [stdout] 0010ea20360067509d7e7212d57b45248b72a9aa951975bf7ad5bed579efc9c6