[INFO] cloning repository https://github.com/yeeco/network-sharding-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yeeco/network-sharding-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyeeco%2Fnetwork-sharding-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyeeco%2Fnetwork-sharding-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da23cc5600a6bc92c2038e5692a401cd352ef6dd [INFO] building yeeco/network-sharding-demo against try#434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275 for pr-101591 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyeeco%2Fnetwork-sharding-demo" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yeeco/network-sharding-demo on toolchain 434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yeeco/network-sharding-demo [INFO] finished tweaking git repo https://github.com/yeeco/network-sharding-demo [INFO] tweaked toml for git repo https://github.com/yeeco/network-sharding-demo written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/yeeco/network-sharding-demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7007c330f5bf85ec32c97aff38f0607314125c2dce8210a16eb06e365f609c53 [INFO] running `Command { std: "docker" "start" "-a" "7007c330f5bf85ec32c97aff38f0607314125c2dce8210a16eb06e365f609c53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7007c330f5bf85ec32c97aff38f0607314125c2dce8210a16eb06e365f609c53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7007c330f5bf85ec32c97aff38f0607314125c2dce8210a16eb06e365f609c53", kill_on_drop: false }` [INFO] [stdout] 7007c330f5bf85ec32c97aff38f0607314125c2dce8210a16eb06e365f609c53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23f6b0cde76692eb93f7a62a6153df1e2aa244cc556d03b78f89c30f971901c6 [INFO] running `Command { std: "docker" "start" "-a" "23f6b0cde76692eb93f7a62a6153df1e2aa244cc556d03b78f89c30f971901c6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling futures v0.1.28 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling spin v0.5.0 [INFO] [stderr] Compiling cc v1.0.26 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling serde v1.0.94 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling opaque-debug v0.2.2 [INFO] [stderr] Compiling rustc-demangle v0.1.15 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling arrayvec v0.4.10 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling subtle v2.1.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling arrayref v0.3.5 [INFO] [stderr] Compiling protobuf v2.6.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling untrusted v0.6.2 [INFO] [stderr] Compiling bs58 v0.2.2 [INFO] [stderr] Compiling data-encoding v2.1.2 [INFO] [stderr] Compiling zeroize v0.5.2 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.23 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling regex v1.1.7 [INFO] [stderr] Compiling crunchy v0.1.6 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling utf8-ranges v1.0.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling scoped-tls v0.1.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling slab v0.3.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling nohash-hasher v0.1.1 [INFO] [stderr] Compiling quick-error v0.1.4 [INFO] [stderr] Compiling indexmap v1.0.2 [INFO] [stderr] Compiling c_linked_list v1.1.1 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling take v0.1.0 [INFO] [stderr] Compiling try-lock v0.1.0 [INFO] [stderr] Compiling byteorder v0.5.3 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling smallvec v0.2.1 [INFO] [stderr] Compiling static_slice v0.0.3 [INFO] [stderr] Compiling rustc-hex v2.0.1 [INFO] [stderr] Compiling static_assertions v0.2.5 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.8 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling block-padding v0.1.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling tokio-sync v0.1.6 [INFO] [stderr] Compiling tokio-service v0.1.0 [INFO] [stderr] Compiling relay v0.1.1 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling unicase v2.4.0 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling backtrace-sys v0.1.30 [INFO] [stderr] Compiling clear_on_drop v0.2.3 [INFO] [stderr] Compiling ring v0.14.6 [INFO] [stderr] Compiling secp256k1 v0.12.2 [INFO] [stderr] Compiling regex-syntax v0.6.7 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.47 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling app_dirs v1.2.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling want v0.0.4 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crossbeam-utils v0.6.5 [INFO] [stderr] Compiling tokio-trace-core v0.2.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling snow v0.5.2 [INFO] [stderr] Compiling hyper v0.12.31 [INFO] [stderr] Compiling tokio-executor v0.1.7 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling crossbeam-channel v0.3.8 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling dns-parser v0.8.0 [INFO] [stderr] Compiling crossbeam-epoch v0.7.1 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling get_if_addrs v0.5.3 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling bigint v4.4.1 [INFO] [stderr] Compiling uint v0.7.1 [INFO] [stderr] Compiling aho-corasick v0.7.3 [INFO] [stderr] Compiling bstr v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling toml v0.5.1 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling parking_lot_core v0.2.14 [INFO] [stderr] Compiling mime v0.3.13 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling block-cipher-trait v0.6.2 [INFO] [stderr] Compiling stream-cipher v0.3.0 [INFO] [stderr] Compiling fixed-hash v0.3.2 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling backtrace v0.3.32 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling http v0.1.17 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.4 [INFO] [stderr] Compiling cuckoofilter v0.3.2 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-threadpool v0.1.14 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling sha-1 v0.8.1 [INFO] [stderr] Compiling sha3 v0.8.2 [INFO] [stderr] Compiling parking_lot v0.5.5 [INFO] [stderr] Compiling curve25519-dalek v1.2.1 [INFO] [stderr] Compiling blake2 v0.8.0 [INFO] [stderr] Compiling hmac v0.7.0 [INFO] [stderr] Compiling ctr v0.3.2 [INFO] [stderr] Compiling aes-soft v0.3.3 [INFO] [stderr] Compiling twofish v0.2.0 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling rw-stream-sink v0.1.2 [INFO] [stderr] Compiling tokio-stdin-stdout v0.1.5 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling globset v0.4.4 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling tokio-fs v0.1.6 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.25 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling aio-limited v0.1.0 [INFO] [stderr] Compiling aes-ctr v0.3.0 [INFO] [stderr] Compiling unsigned-varint v0.2.2 [INFO] [stderr] Compiling yamux v0.2.1 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling exit-future v0.1.4 [INFO] [stderr] Compiling parity-multihash v0.1.2 [INFO] [stderr] Compiling multistream-select v0.4.0 [INFO] [stderr] Compiling parity-multiaddr v0.4.1 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio-uds v0.2.5 [INFO] [stderr] Compiling tokio-udp v0.1.3 [INFO] [stderr] Compiling x25519-dalek v0.5.2 [INFO] [stderr] Compiling tokio v0.1.21 [INFO] [stderr] Compiling tokio-tls v0.2.1 [INFO] [stderr] Compiling websocket v0.22.4 [INFO] [stderr] Compiling tokio-core v0.1.17 [INFO] [stderr] Compiling tokio-dns-unofficial v0.4.0 [INFO] [stderr] Compiling tk-listen v0.2.1 [INFO] [stderr] Compiling tokio-proto v0.1.1 [INFO] [stderr] Compiling hyper v0.11.27 [INFO] [stderr] Compiling asn1_der_derive v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.94 [INFO] [stderr] Compiling parity-codec-derive v3.3.0 [INFO] [stderr] Compiling libp2p-core-derive v0.7.0 [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Compiling jsonrpc-derive v10.1.0 [INFO] [stderr] Compiling asn1_der v0.6.2 [INFO] [stderr] Compiling structopt v0.2.18 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling ed25519-dalek v1.0.0-pre.1 [INFO] [stderr] Compiling libp2p-core v0.7.1 [INFO] [stderr] Compiling parity-codec v3.5.4 [INFO] [stderr] Compiling jsonrpc-core v10.1.0 [INFO] [stderr] Compiling jsonrpc-core v8.0.1 [INFO] [stderr] Compiling jsonrpc-core v12.0.0 [INFO] [stderr] Compiling libp2p-tcp v0.7.2 [INFO] [stderr] Compiling libp2p-secio v0.7.0 [INFO] [stderr] Compiling libp2p-floodsub v0.7.0 [INFO] [stderr] Compiling libp2p-mdns v0.7.0 [INFO] [stderr] Compiling libp2p-uds v0.7.0 [INFO] [stderr] Compiling libp2p-ratelimit v0.7.0 [INFO] [stderr] Compiling libp2p-noise v0.5.0 [INFO] [stderr] Compiling libp2p-identify v0.7.0 [INFO] [stderr] Compiling libp2p-plaintext v0.7.0 [INFO] [stderr] Compiling libp2p-kad v0.7.0 [INFO] [stderr] Compiling libp2p-yamux v0.7.0 [INFO] [stderr] Compiling libp2p-websocket v0.7.0 [INFO] [stderr] Compiling libp2p-ping v0.7.0 [INFO] [stderr] Compiling libp2p-mplex v0.7.0 [INFO] [stderr] Compiling libp2p-dns v0.7.0 [INFO] [stderr] Compiling jsonrpc-client-core v0.5.0 [INFO] [stderr] Compiling jsonrpc-client-transports v12.0.0 [INFO] [stderr] Compiling jsonrpc-server-utils v10.1.0 [INFO] [stderr] Compiling jsonrpc-pubsub v10.1.0 [INFO] [stderr] Compiling impl-codec v0.2.0 [INFO] [stderr] Compiling jsonrpc-client-http v0.5.0 [INFO] [stderr] Compiling primitive-types v0.2.4 [INFO] [stderr] Compiling jsonrpc-core-client v12.0.0 [INFO] [stderr] Compiling libp2p v0.7.0 [INFO] [stderr] Compiling jsonrpc-http-server v10.1.0 [INFO] [stderr] Compiling network-sharding-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/network.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::client::{self, Client, ParseMessage, Message}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FramedRead`, `LinesCodec` [INFO] [stdout] --> src/network.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | use libp2p::tokio_codec::{Framed, FramedRead, LinesCodec}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, `TryRecvError`, `self as channel` [INFO] [stdout] --> src/network.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | use crossbeam_channel::{self as channel, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/network.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | use parking_lot::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RunCmd` [INFO] [stdout] --> src/bootnodes_router.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::params::{BootNodesRouterCmd, RunCmd}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `trace`, `warn` [INFO] [stdout] --> src/bootnodes_router.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/foreign_network.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::client::{self, Client, ParseMessage, Message}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FramedRead`, `LinesCodec` [INFO] [stdout] --> src/foreign_network.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | use libp2p::tokio_codec::{Framed, FramedRead, LinesCodec}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/foreign_network.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | use parking_lot::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryRecvError` [INFO] [stdout] --> src/client.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam_channel::{self as channel, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `time::Duration` [INFO] [stdout] --> src/client.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{thread, cmp, time::Duration}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `stream::Fuse`, `stream` [INFO] [stdout] --> src/client.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::{prelude::*, future, stream, Stream, stream::Fuse}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Framed` [INFO] [stdout] --> src/client.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use libp2p::tokio_codec::{Framed, FramedRead, LinesCodec}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/network.rs:1400:17 [INFO] [stdout] | [INFO] [stdout] 1386 | / loop { [INFO] [stdout] 1387 | | stdin_notify.register(); [INFO] [stdout] 1388 | | match stdin_receiver.try_recv() { [INFO] [stdout] 1389 | | Ok(msg) => { [INFO] [stdout] ... | [INFO] [stdout] 1398 | | } [INFO] [stdout] 1399 | | } [INFO] [stdout] | |_________________- any code following this expression is unreachable [INFO] [stdout] 1400 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/foreign_network.rs:1467:17 [INFO] [stdout] | [INFO] [stdout] 1456 | / loop { [INFO] [stdout] 1457 | | foreign_notify.register(); [INFO] [stdout] 1458 | | match foreign_receiver.try_recv() { [INFO] [stdout] 1459 | | Ok(msg) => { [INFO] [stdout] ... | [INFO] [stdout] 1465 | | } [INFO] [stdout] 1466 | | } [INFO] [stdout] | |_________________- any code following this expression is unreachable [INFO] [stdout] 1467 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/network.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 77 | for (peer_id, addr) in &bootnodes { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/network.rs:841:9 [INFO] [stdout] | [INFO] [stdout] 841 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/network.rs:873:9 [INFO] [stdout] | [INFO] [stdout] 873 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/network.rs:1384:13 [INFO] [stdout] | [INFO] [stdout] 1384 | let thread = thread::Builder::new().name("stdin_channel".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/network.rs:1406:13 [INFO] [stdout] | [INFO] [stdout] 1406 | let thread = thread::Builder::new().name("network".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/bootnodes_router.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let thread = thread::Builder::new().name("bootnodes_router".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bootnodes_router.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { continue; } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/foreign_network.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | for (peer_id, addr) in &bootnodes { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/foreign_network.rs:885:9 [INFO] [stdout] | [INFO] [stdout] 885 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/foreign_network.rs:917:9 [INFO] [stdout] | [INFO] [stdout] 917 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/foreign_network.rs:1454:13 [INFO] [stdout] | [INFO] [stdout] 1454 | let thread = thread::Builder::new().name("foreign_channel".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/foreign_network.rs:1473:13 [INFO] [stdout] | [INFO] [stdout] 1473 | let thread = thread::Builder::new().name("foreign_network".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shard_num` [INFO] [stdout] --> src/foreign_network.rs:1506:13 [INFO] [stdout] | [INFO] [stdout] 1506 | let shard_num = self.cmd.shard_num; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shard_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shard_num` [INFO] [stdout] --> src/foreign_network.rs:1518:22 [INFO] [stdout] | [INFO] [stdout] 1518 | for (shard_num, shard) in shards { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shard_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/client.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let thread = thread::Builder::new().name("client".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:849:13 [INFO] [stdout] | [INFO] [stdout] 849 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/network.rs:877:13 [INFO] [stdout] | [INFO] [stdout] 877 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/network.rs:1363:17 [INFO] [stdout] | [INFO] [stdout] 1363 | let mut behavior = Behavior::new(protocol_version, user_agent, local_public, bootnodes, self.cmd.shard_num); [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/network.rs:1443:13 [INFO] [stdout] | [INFO] [stdout] 1443 | let mut shards: HashMap; [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/foreign_network.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut of_shard = self.peers.entry(shard_num).or_insert(FnvHashMap::default()); [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/foreign_network.rs:893:13 [INFO] [stdout] | [INFO] [stdout] 893 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/foreign_network.rs:921:13 [INFO] [stdout] | [INFO] [stdout] 921 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/foreign_network.rs:1107:25 [INFO] [stdout] | [INFO] [stdout] 1107 | if let Some(mut a) = self.peers.get_mut(shard_num) { [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/foreign_network.rs:1436:17 [INFO] [stdout] | [INFO] [stdout] 1436 | let mut behavior = Behavior::new(protocol_version, user_agent, local_public, bootnodes, self.cmd.shard_num); [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/foreign_network.rs:1510:13 [INFO] [stdout] | [INFO] [stdout] 1510 | let mut shards: HashMap; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WorkOpen`, `WorkClosed` and `CustomMessage` are never constructed [INFO] [stdout] --> src/network.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 271 | pub enum WorkOut { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 272 | /// Opened a custom protocol with the remote. [INFO] [stdout] 273 | WorkOpen { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | WorkClosed { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | CustomMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `WorkOut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `protocol_id` is never read [INFO] [stdout] --> src/network.rs:904:5 [INFO] [stdout] | [INFO] [stdout] 891 | pub struct RegisteredProtocolSubstream { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 904 | protocol_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/network.rs:799:12 [INFO] [stdout] | [INFO] [stdout] 799 | pub fn new(protocol: String) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `id` is never used [INFO] [stdout] --> src/network.rs:807:12 [INFO] [stdout] | [INFO] [stdout] 807 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `protocol_id` is never used [INFO] [stdout] --> src/network.rs:913:12 [INFO] [stdout] | [INFO] [stdout] 913 | pub fn protocol_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WorkOpen`, `WorkClosed` and `CustomMessage` are never constructed [INFO] [stdout] --> src/foreign_network.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 315 | pub enum WorkOut { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 316 | /// Opened a custom protocol with the remote. [INFO] [stdout] 317 | WorkOpen { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | WorkClosed { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | CustomMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WorkOut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `protocol_id` is never read [INFO] [stdout] --> src/foreign_network.rs:948:5 [INFO] [stdout] | [INFO] [stdout] 935 | pub struct RegisteredProtocolSubstream { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 948 | protocol_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/foreign_network.rs:843:12 [INFO] [stdout] | [INFO] [stdout] 843 | pub fn new(protocol: String) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `id` is never used [INFO] [stdout] --> src/foreign_network.rs:851:12 [INFO] [stdout] | [INFO] [stdout] 851 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `protocol_id` is never used [INFO] [stdout] --> src/foreign_network.rs:957:12 [INFO] [stdout] | [INFO] [stdout] 957 | pub fn protocol_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network.rs:1392:29 [INFO] [stdout] | [INFO] [stdout] 1392 | ... foreign_sender.send(msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/client.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | / match framed_stdin.poll().expect("Error while polling stdin") { [INFO] [stdout] 96 | | Async::Ready(Some(line)) => { [INFO] [stdout] 97 | | info!("Stdin: {}", line); [INFO] [stdout] 98 | | let result = sender.send(line); [INFO] [stdout] ... | [INFO] [stdout] 105 | | } [INFO] [stdout] 106 | | }; [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 01s [INFO] running `Command { std: "docker" "inspect" "23f6b0cde76692eb93f7a62a6153df1e2aa244cc556d03b78f89c30f971901c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23f6b0cde76692eb93f7a62a6153df1e2aa244cc556d03b78f89c30f971901c6", kill_on_drop: false }` [INFO] [stdout] 23f6b0cde76692eb93f7a62a6153df1e2aa244cc556d03b78f89c30f971901c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+434cce50d8e9a9de0ddaaccaca51e3e3f4bbb275" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 561cb028188b7e4e5feac2902526280a66971720807be035d0cf0937c61b9b8a [INFO] running `Command { std: "docker" "start" "-a" "561cb028188b7e4e5feac2902526280a66971720807be035d0cf0937c61b9b8a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling network-sharding-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/network.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::client::{self, Client, ParseMessage, Message}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FramedRead`, `LinesCodec` [INFO] [stdout] --> src/network.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | use libp2p::tokio_codec::{Framed, FramedRead, LinesCodec}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, `TryRecvError`, `self as channel` [INFO] [stdout] --> src/network.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | use crossbeam_channel::{self as channel, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/network.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | use parking_lot::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RunCmd` [INFO] [stdout] --> src/bootnodes_router.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::params::{BootNodesRouterCmd, RunCmd}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `trace`, `warn` [INFO] [stdout] --> src/bootnodes_router.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, info, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/foreign_network.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::client::{self, Client, ParseMessage, Message}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FramedRead`, `LinesCodec` [INFO] [stdout] --> src/foreign_network.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | use libp2p::tokio_codec::{Framed, FramedRead, LinesCodec}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock` [INFO] [stdout] --> src/foreign_network.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | use parking_lot::{Mutex, RwLock}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryRecvError` [INFO] [stdout] --> src/client.rs:1:60 [INFO] [stdout] | [INFO] [stdout] 1 | use crossbeam_channel::{self as channel, Receiver, Sender, TryRecvError}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `time::Duration` [INFO] [stdout] --> src/client.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{thread, cmp, time::Duration}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `stream::Fuse`, `stream` [INFO] [stdout] --> src/client.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::{prelude::*, future, stream, Stream, stream::Fuse}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Framed` [INFO] [stdout] --> src/client.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | use libp2p::tokio_codec::{Framed, FramedRead, LinesCodec}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/network.rs:1400:17 [INFO] [stdout] | [INFO] [stdout] 1386 | / loop { [INFO] [stdout] 1387 | | stdin_notify.register(); [INFO] [stdout] 1388 | | match stdin_receiver.try_recv() { [INFO] [stdout] 1389 | | Ok(msg) => { [INFO] [stdout] ... | [INFO] [stdout] 1398 | | } [INFO] [stdout] 1399 | | } [INFO] [stdout] | |_________________- any code following this expression is unreachable [INFO] [stdout] 1400 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/foreign_network.rs:1467:17 [INFO] [stdout] | [INFO] [stdout] 1456 | / loop { [INFO] [stdout] 1457 | | foreign_notify.register(); [INFO] [stdout] 1458 | | match foreign_receiver.try_recv() { [INFO] [stdout] 1459 | | Ok(msg) => { [INFO] [stdout] ... | [INFO] [stdout] 1465 | | } [INFO] [stdout] 1466 | | } [INFO] [stdout] | |_________________- any code following this expression is unreachable [INFO] [stdout] 1467 | Ok(Async::NotReady) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/network.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 77 | for (peer_id, addr) in &bootnodes { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/network.rs:841:9 [INFO] [stdout] | [INFO] [stdout] 841 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/network.rs:873:9 [INFO] [stdout] | [INFO] [stdout] 873 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/network.rs:1384:13 [INFO] [stdout] | [INFO] [stdout] 1384 | let thread = thread::Builder::new().name("stdin_channel".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/network.rs:1406:13 [INFO] [stdout] | [INFO] [stdout] 1406 | let thread = thread::Builder::new().name("network".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/bootnodes_router.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let thread = thread::Builder::new().name("bootnodes_router".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/bootnodes_router.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | Err(e) => { continue; } [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/foreign_network.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | for (peer_id, addr) in &bootnodes { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/foreign_network.rs:885:9 [INFO] [stdout] | [INFO] [stdout] 885 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `info` [INFO] [stdout] --> src/foreign_network.rs:917:9 [INFO] [stdout] | [INFO] [stdout] 917 | info: Self::Info, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/foreign_network.rs:1454:13 [INFO] [stdout] | [INFO] [stdout] 1454 | let thread = thread::Builder::new().name("foreign_channel".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/foreign_network.rs:1473:13 [INFO] [stdout] | [INFO] [stdout] 1473 | let thread = thread::Builder::new().name("foreign_network".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shard_num` [INFO] [stdout] --> src/foreign_network.rs:1506:13 [INFO] [stdout] | [INFO] [stdout] 1506 | let shard_num = self.cmd.shard_num; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shard_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shard_num` [INFO] [stdout] --> src/foreign_network.rs:1518:22 [INFO] [stdout] | [INFO] [stdout] 1518 | for (shard_num, shard) in shards { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shard_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thread` [INFO] [stdout] --> src/client.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let thread = thread::Builder::new().name("client".to_string()).spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:849:13 [INFO] [stdout] | [INFO] [stdout] 849 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/network.rs:877:13 [INFO] [stdout] | [INFO] [stdout] 877 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/network.rs:1363:17 [INFO] [stdout] | [INFO] [stdout] 1363 | let mut behavior = Behavior::new(protocol_version, user_agent, local_public, bootnodes, self.cmd.shard_num); [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/network.rs:1443:13 [INFO] [stdout] | [INFO] [stdout] 1443 | let mut shards: HashMap; [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/foreign_network.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut of_shard = self.peers.entry(shard_num).or_insert(FnvHashMap::default()); [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/foreign_network.rs:893:13 [INFO] [stdout] | [INFO] [stdout] 893 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/foreign_network.rs:921:13 [INFO] [stdout] | [INFO] [stdout] 921 | let mut inner: Fuse, UviBytes>>> = framed.fuse(); [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/foreign_network.rs:1107:25 [INFO] [stdout] | [INFO] [stdout] 1107 | if let Some(mut a) = self.peers.get_mut(shard_num) { [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/foreign_network.rs:1436:17 [INFO] [stdout] | [INFO] [stdout] 1436 | let mut behavior = Behavior::new(protocol_version, user_agent, local_public, bootnodes, self.cmd.shard_num); [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/foreign_network.rs:1510:13 [INFO] [stdout] | [INFO] [stdout] 1510 | let mut shards: HashMap; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WorkOpen`, `WorkClosed` and `CustomMessage` are never constructed [INFO] [stdout] --> src/network.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 271 | pub enum WorkOut { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 272 | /// Opened a custom protocol with the remote. [INFO] [stdout] 273 | WorkOpen { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | WorkClosed { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 291 | CustomMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `WorkOut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `protocol_id` is never read [INFO] [stdout] --> src/network.rs:904:5 [INFO] [stdout] | [INFO] [stdout] 891 | pub struct RegisteredProtocolSubstream { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 904 | protocol_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/network.rs:799:12 [INFO] [stdout] | [INFO] [stdout] 799 | pub fn new(protocol: String) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `id` is never used [INFO] [stdout] --> src/network.rs:807:12 [INFO] [stdout] | [INFO] [stdout] 807 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `protocol_id` is never used [INFO] [stdout] --> src/network.rs:913:12 [INFO] [stdout] | [INFO] [stdout] 913 | pub fn protocol_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `WorkOpen`, `WorkClosed` and `CustomMessage` are never constructed [INFO] [stdout] --> src/foreign_network.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 315 | pub enum WorkOut { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 316 | /// Opened a custom protocol with the remote. [INFO] [stdout] 317 | WorkOpen { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | WorkClosed { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | CustomMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WorkOut` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `protocol_id` is never read [INFO] [stdout] --> src/foreign_network.rs:948:5 [INFO] [stdout] | [INFO] [stdout] 935 | pub struct RegisteredProtocolSubstream { [INFO] [stdout] | --------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 948 | protocol_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/foreign_network.rs:843:12 [INFO] [stdout] | [INFO] [stdout] 843 | pub fn new(protocol: String) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `id` is never used [INFO] [stdout] --> src/foreign_network.rs:851:12 [INFO] [stdout] | [INFO] [stdout] 851 | pub fn id(&self) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `protocol_id` is never used [INFO] [stdout] --> src/foreign_network.rs:957:12 [INFO] [stdout] | [INFO] [stdout] 957 | pub fn protocol_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/network.rs:1392:29 [INFO] [stdout] | [INFO] [stdout] 1392 | ... foreign_sender.send(msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/client.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | / match framed_stdin.poll().expect("Error while polling stdin") { [INFO] [stdout] 96 | | Async::Ready(Some(line)) => { [INFO] [stdout] 97 | | info!("Stdin: {}", line); [INFO] [stdout] 98 | | let result = sender.send(line); [INFO] [stdout] ... | [INFO] [stdout] 105 | | } [INFO] [stdout] 106 | | }; [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.59s [INFO] running `Command { std: "docker" "inspect" "561cb028188b7e4e5feac2902526280a66971720807be035d0cf0937c61b9b8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "561cb028188b7e4e5feac2902526280a66971720807be035d0cf0937c61b9b8a", kill_on_drop: false }` [INFO] [stdout] 561cb028188b7e4e5feac2902526280a66971720807be035d0cf0937c61b9b8a