[INFO] cloning repository https://github.com/n0-computer/krakensync [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/n0-computer/krakensync" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fn0-computer%2Fkrakensync", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fn0-computer%2Fkrakensync'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1253017c10a73ec4789ed504ab524062599e7a59 [INFO] testing n0-computer/krakensync against 1.83.0 for beta-1.84.0-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fn0-computer%2Fkrakensync" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/n0-computer/krakensync on toolchain 1.83.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/n0-computer/krakensync [INFO] finished tweaking git repo https://github.com/n0-computer/krakensync [INFO] tweaked toml for git repo https://github.com/n0-computer/krakensync written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/n0-computer/krakensync already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libipld-json v0.15.0 [INFO] [stderr] Downloaded libipld-macro v0.15.0 [INFO] [stderr] Downloaded libipld-pb v0.15.0 [INFO] [stderr] Downloaded libipld-core v0.15.0 [INFO] [stderr] Downloaded libipld v0.15.0 [INFO] [stderr] Downloaded libipld-cbor v0.15.0 [INFO] [stderr] Downloaded libipld-cbor-derive v0.15.0 [INFO] [stderr] Downloaded iroh-car v0.1.3 [INFO] [stderr] Downloaded quic-rpc v0.2.2 [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" "+1.83.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9625a168c08d550a85318a8dc61b1f4bfb73203cd1dfcd9fee2fcd78b4100c04 [INFO] running `Command { std: "docker" "start" "-a" "9625a168c08d550a85318a8dc61b1f4bfb73203cd1dfcd9fee2fcd78b4100c04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9625a168c08d550a85318a8dc61b1f4bfb73203cd1dfcd9fee2fcd78b4100c04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9625a168c08d550a85318a8dc61b1f4bfb73203cd1dfcd9fee2fcd78b4100c04", kill_on_drop: false }` [INFO] [stdout] 9625a168c08d550a85318a8dc61b1f4bfb73203cd1dfcd9fee2fcd78b4100c04 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.83.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92e1b9dd8a1ad8ba87a98f8db4d4d32c7cfc2f234e53c7ef9e909f1e3ce88462 [INFO] running `Command { std: "docker" "start" "-a" "92e1b9dd8a1ad8ba87a98f8db4d4d32c7cfc2f234e53c7ef9e909f1e3ce88462", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling thiserror v1.0.37 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling once_cell v1.16.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling cc v1.0.74 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling parking_lot_core v0.9.4 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling keccak v0.1.2 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling blake2s_simd v1.0.0 [INFO] [stderr] Compiling blake2b_simd v1.0.0 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling itoa v1.0.4 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling tokio v1.21.2 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.25 [INFO] [stderr] Compiling blake3 v1.3.1 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling serde_json v1.0.87 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling async-trait v0.1.58 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling ahash v0.8.1 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling os_str_bytes v6.4.0 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling wyz v0.5.0 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling digest v0.10.5 [INFO] [stderr] Compiling clap_lex v0.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling sha3 v0.10.6 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.16 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling thiserror-impl v1.0.37 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.10 [INFO] [stderr] Compiling futures-macro v0.3.25 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling prost-derive v0.11.2 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling clap_derive v4.0.21 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling data-encoding-macro v0.1.12 [INFO] [stderr] Compiling multibase v0.9.1 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling proc-macro-crate v1.2.1 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling multihash-derive v0.8.0 [INFO] [stderr] Compiling libipld-cbor-derive v0.15.0 [INFO] [stderr] Compiling clap v4.0.23 [INFO] [stderr] Compiling futures-executor v0.3.25 [INFO] [stderr] Compiling futures v0.3.25 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling serde-big-array v0.3.3 [INFO] [stderr] Compiling serde_bytes v0.11.7 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling multihash v0.17.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling prost v0.11.3 [INFO] [stderr] Compiling cid v0.9.0 [INFO] [stderr] Compiling libipld-core v0.15.0 [INFO] [stderr] Compiling libipld-cbor v0.15.0 [INFO] [stderr] Compiling libipld-macro v0.15.0 [INFO] [stderr] Compiling libipld-pb v0.15.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling libipld-json v0.15.0 [INFO] [stderr] Compiling libipld v0.15.0 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling iroh-car v0.1.3 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling quic-rpc v0.2.2 [INFO] [stderr] Compiling krakensync v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/network.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{bail, Context, Ok}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoxStream` [INFO] [stdout] --> src/network.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | stream::{self, BoxStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cbor::DagCborCodec` [INFO] [stdout] --> src/network.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use libipld::{cbor::DagCborCodec, prelude::Codec, Ipld, IpldCodec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `sync::Arc` [INFO] [stdout] --> src/network.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | io::{self, stdout, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/network.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 94 | / loop { [INFO] [stdout] 95 | | let (req, c) = server.accept_one().await?; [INFO] [stdout] 96 | | let target = RpcStore(store.clone()); [INFO] [stdout] 97 | | let s = server.clone(); [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] 113 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 114 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/network.rs:206:52 [INFO] [stdout] | [INFO] [stdout] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/network.rs:206:59 [INFO] [stdout] | [INFO] [stdout] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/network.rs:208:56 [INFO] [stdout] | [INFO] [stdout] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/network.rs:208:63 [INFO] [stdout] | [INFO] [stdout] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/network.rs:218:57 [INFO] [stdout] | [INFO] [stdout] 218 | ... WantResponse::InternalError(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/network.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let server = KrakenServer2::new(server_addr, store.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ahash::HashMapExt` [INFO] [stdout] --> src/network.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ahash::HashMapExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/network.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Sink, SinkExt, Stream, StreamExt, TryFutureExt, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `changes` [INFO] [stdout] --> src/core.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | changes: BoxStream, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core.rs:538:52 [INFO] [stdout] | [INFO] [stdout] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/core.rs:538:59 [INFO] [stdout] | [INFO] [stdout] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core.rs:540:56 [INFO] [stdout] | [INFO] [stdout] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/core.rs:540:63 [INFO] [stdout] | [INFO] [stdout] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/core.rs:550:57 [INFO] [stdout] | [INFO] [stdout] 550 | ... WantResponse::InternalError(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/test_util.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | for i in 0..branches { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `min` is never used [INFO] [stdout] --> src/core.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 273 | impl Limits { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 274 | fn min(&mut self, that: &Limits) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `have` and `want` are never used [INFO] [stdout] --> src/core.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 450 | pub(crate) trait SyncApi: Debug + Send + Sync + 'static { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 451 | fn have(&self, query: Query) -> BoxFuture>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 452 | fn want( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peers` and `store` are never read [INFO] [stdout] --> src/core.rs:475:5 [INFO] [stdout] | [INFO] [stdout] 474 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 475 | peers: AHashMap>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 476 | store: Store, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_peer` and `sync` are never used [INFO] [stdout] --> src/core.rs:505:19 [INFO] [stdout] | [INFO] [stdout] 504 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 505 | pub(crate) fn add_peer(&mut self, id: u64, peer: Box) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 509 | pub(crate) fn sync( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `server` is never read [INFO] [stdout] --> src/network.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 146 | server: KrakenServer2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `codec_name` is never used [INFO] [stdout] --> src/network.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn codec_name(codec: &IpldCodec) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `peer_sync_demo` is never used [INFO] [stdout] --> src/network.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | pub(crate) async fn peer_sync_demo() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_bits` is never used [INFO] [stdout] --> src/test_util.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse_bits(bits: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block`, `NotFound`, `StopNotFound`, `MaxBlocks`, `MaxBytes`, and `InternalError` are never constructed [INFO] [stdout] --> src/test_util.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum WantResponseShort { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 70 | Block(Cid), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | NotFound(Cid), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | StopNotFound(Cid), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | MaxBlocks, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | MaxBytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | InternalError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WantResponseShort` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `short` is never used [INFO] [stdout] --> src/test_util.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn short(response: WantResponse) -> WantResponseShort { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.99s [INFO] running `Command { std: "docker" "inspect" "92e1b9dd8a1ad8ba87a98f8db4d4d32c7cfc2f234e53c7ef9e909f1e3ce88462", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92e1b9dd8a1ad8ba87a98f8db4d4d32c7cfc2f234e53c7ef9e909f1e3ce88462", kill_on_drop: false }` [INFO] [stdout] 92e1b9dd8a1ad8ba87a98f8db4d4d32c7cfc2f234e53c7ef9e909f1e3ce88462 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.83.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3b9579385f80a0c9a55dad71cd6316f7249286b5440715006c8ed47eca403eb [INFO] running `Command { std: "docker" "start" "-a" "d3b9579385f80a0c9a55dad71cd6316f7249286b5440715006c8ed47eca403eb", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/network.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{bail, Context, Ok}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoxStream` [INFO] [stdout] --> src/network.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | stream::{self, BoxStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cbor::DagCborCodec` [INFO] [stdout] --> src/network.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use libipld::{cbor::DagCborCodec, prelude::Codec, Ipld, IpldCodec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `sync::Arc` [INFO] [stdout] --> src/network.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | io::{self, stdout, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/network.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 94 | / loop { [INFO] [stdout] 95 | | let (req, c) = server.accept_one().await?; [INFO] [stdout] 96 | | let target = RpcStore(store.clone()); [INFO] [stdout] 97 | | let s = server.clone(); [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] 113 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 114 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/network.rs:206:52 [INFO] [stdout] | [INFO] [stdout] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/network.rs:206:59 [INFO] [stdout] | [INFO] [stdout] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/network.rs:208:56 [INFO] [stdout] | [INFO] [stdout] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/network.rs:208:63 [INFO] [stdout] | [INFO] [stdout] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/network.rs:218:57 [INFO] [stdout] | [INFO] [stdout] 218 | ... WantResponse::InternalError(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/network.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let server = KrakenServer2::new(server_addr, store.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ahash::HashMapExt` [INFO] [stdout] --> src/network.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ahash::HashMapExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/network.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Sink, SinkExt, Stream, StreamExt, TryFutureExt, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `changes` [INFO] [stdout] --> src/core.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | changes: BoxStream, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core.rs:538:52 [INFO] [stdout] | [INFO] [stdout] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/core.rs:538:59 [INFO] [stdout] | [INFO] [stdout] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core.rs:540:56 [INFO] [stdout] | [INFO] [stdout] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/core.rs:540:63 [INFO] [stdout] | [INFO] [stdout] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/core.rs:550:57 [INFO] [stdout] | [INFO] [stdout] 550 | ... WantResponse::InternalError(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/test_util.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | for i in 0..branches { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `min` is never used [INFO] [stdout] --> src/core.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 273 | impl Limits { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 274 | fn min(&mut self, that: &Limits) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `have` and `want` are never used [INFO] [stdout] --> src/core.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 450 | pub(crate) trait SyncApi: Debug + Send + Sync + 'static { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] 451 | fn have(&self, query: Query) -> BoxFuture>; [INFO] [stdout] | ^^^^ [INFO] [stdout] 452 | fn want( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peers` and `store` are never read [INFO] [stdout] --> src/core.rs:475:5 [INFO] [stdout] | [INFO] [stdout] 474 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 475 | peers: AHashMap>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 476 | store: Store, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_peer` and `sync` are never used [INFO] [stdout] --> src/core.rs:505:19 [INFO] [stdout] | [INFO] [stdout] 504 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 505 | pub(crate) fn add_peer(&mut self, id: u64, peer: Box) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 509 | pub(crate) fn sync( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `server` is never read [INFO] [stdout] --> src/network.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 146 | server: KrakenServer2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `codec_name` is never used [INFO] [stdout] --> src/network.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn codec_name(codec: &IpldCodec) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `peer_sync_demo` is never used [INFO] [stdout] --> src/network.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | pub(crate) async fn peer_sync_demo() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_bits` is never used [INFO] [stdout] --> src/test_util.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn parse_bits(bits: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block`, `NotFound`, `StopNotFound`, `MaxBlocks`, `MaxBytes`, and `InternalError` are never constructed [INFO] [stdout] --> src/test_util.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum WantResponseShort { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 70 | Block(Cid), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 71 | NotFound(Cid), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 72 | StopNotFound(Cid), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 73 | MaxBlocks, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 74 | MaxBytes, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | InternalError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WantResponseShort` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `short` is never used [INFO] [stdout] --> src/test_util.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn short(response: WantResponse) -> WantResponseShort { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling krakensync v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Context` [INFO] [stdout] --> src/network.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{bail, Context, Ok}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoxStream` [INFO] [stdout] --> src/network.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | stream::{self, BoxStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cbor::DagCborCodec` [INFO] [stdout] --> src/network.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use libipld::{cbor::DagCborCodec, prelude::Codec, Ipld, IpldCodec}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `sync::Arc` [INFO] [stdout] --> src/network.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | io::{self, stdout, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/network.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 94 | / loop { [INFO] [stdout] 95 | | let (req, c) = server.accept_one().await?; [INFO] [stdout] 96 | | let target = RpcStore(store.clone()); [INFO] [stdout] 97 | | let s = server.clone(); [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] 113 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 114 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/network.rs:206:52 [INFO] [stdout] | [INFO] [stdout] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/network.rs:206:59 [INFO] [stdout] | [INFO] [stdout] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/network.rs:208:56 [INFO] [stdout] | [INFO] [stdout] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/network.rs:208:63 [INFO] [stdout] | [INFO] [stdout] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/network.rs:218:57 [INFO] [stdout] | [INFO] [stdout] 218 | ... WantResponse::InternalError(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `server` [INFO] [stdout] --> src/network.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | let server = KrakenServer2::new(server_addr, store.clone()); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ahash::HashMapExt` [INFO] [stdout] --> src/network.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ahash::HashMapExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SinkExt` [INFO] [stdout] --> src/network.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Sink, SinkExt, Stream, StreamExt, TryFutureExt, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `changes` [INFO] [stdout] --> src/core.rs:497:9 [INFO] [stdout] | [INFO] [stdout] 497 | changes: BoxStream, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core.rs:538:52 [INFO] [stdout] | [INFO] [stdout] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/core.rs:538:59 [INFO] [stdout] | [INFO] [stdout] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/core.rs:540:56 [INFO] [stdout] | [INFO] [stdout] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cid` [INFO] [stdout] --> src/core.rs:540:63 [INFO] [stdout] | [INFO] [stdout] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/core.rs:550:57 [INFO] [stdout] | [INFO] [stdout] 550 | ... WantResponse::InternalError(error) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/test_util.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | for i in 0..branches { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bitmap` [INFO] [stdout] --> src/tests.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let bitmap = store.have(Query::new(root))?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let mut node1 = Node::new(store1.clone()); [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: method `min` is never used [INFO] [stdout] --> src/core.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 273 | impl Limits { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 274 | fn min(&mut self, that: &Limits) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `have` is never used [INFO] [stdout] --> src/core.rs:451:8 [INFO] [stdout] | [INFO] [stdout] 450 | pub(crate) trait SyncApi: Debug + Send + Sync + 'static { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 451 | fn have(&self, query: Query) -> BoxFuture>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `server` is never read [INFO] [stdout] --> src/network.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 146 | server: KrakenServer2, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `codec_name` is never used [INFO] [stdout] --> src/network.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn codec_name(codec: &IpldCodec) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `peer_sync_demo` is never used [INFO] [stdout] --> src/network.rs:395:21 [INFO] [stdout] | [INFO] [stdout] 395 | pub(crate) async fn peer_sync_demo() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.34s [INFO] running `Command { std: "docker" "inspect" "d3b9579385f80a0c9a55dad71cd6316f7249286b5440715006c8ed47eca403eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3b9579385f80a0c9a55dad71cd6316f7249286b5440715006c8ed47eca403eb", kill_on_drop: false }` [INFO] [stdout] d3b9579385f80a0c9a55dad71cd6316f7249286b5440715006c8ed47eca403eb [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.83.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3896f99d11dbbd9d02a09f15b8192facbf5556a255774f9546121e89023cbea5 [INFO] running `Command { std: "docker" "start" "-a" "3896f99d11dbbd9d02a09f15b8192facbf5556a255774f9546121e89023cbea5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> src/network.rs:2:20 [INFO] [stderr] | [INFO] [stderr] 2 | use anyhow::{bail, Context, Ok}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `BoxStream` [INFO] [stderr] --> src/network.rs:6:20 [INFO] [stderr] | [INFO] [stderr] 6 | stream::{self, BoxStream}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cbor::DagCborCodec` [INFO] [stderr] --> src/network.rs:9:15 [INFO] [stderr] | [INFO] [stderr] 9 | use libipld::{cbor::DagCborCodec, prelude::Codec, Ipld, IpldCodec}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `self` and `sync::Arc` [INFO] [stderr] --> src/network.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | io::{self, stdout, Write}, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | sync::Arc, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/network.rs:114:9 [INFO] [stderr] | [INFO] [stderr] 94 | / loop { [INFO] [stderr] 95 | | let (req, c) = server.accept_one().await?; [INFO] [stderr] 96 | | let target = RpcStore(store.clone()); [INFO] [stderr] 97 | | let s = server.clone(); [INFO] [stderr] ... | [INFO] [stderr] 112 | | } [INFO] [stderr] 113 | | } [INFO] [stderr] | |_________- any code following this expression is unreachable [INFO] [stderr] 114 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/network.rs:206:52 [INFO] [stderr] | [INFO] [stderr] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cid` [INFO] [stderr] --> src/network.rs:206:59 [INFO] [stderr] | [INFO] [stderr] 206 | ... WantResponse::NotFound(index, cid) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/network.rs:208:56 [INFO] [stderr] | [INFO] [stderr] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cid` [INFO] [stderr] --> src/network.rs:208:63 [INFO] [stderr] | [INFO] [stderr] 208 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `error` [INFO] [stderr] --> src/network.rs:218:57 [INFO] [stderr] | [INFO] [stderr] 218 | ... WantResponse::InternalError(error) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `server` [INFO] [stderr] --> src/network.rs:416:9 [INFO] [stderr] | [INFO] [stderr] 416 | let server = KrakenServer2::new(server_addr, store.clone()); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_server` [INFO] [stderr] [INFO] [stderr] warning: unused import: `ahash::HashMapExt` [INFO] [stderr] --> src/network.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use ahash::HashMapExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `SinkExt` [INFO] [stderr] --> src/network.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | Sink, SinkExt, Stream, StreamExt, TryFutureExt, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `changes` [INFO] [stderr] --> src/core.rs:497:9 [INFO] [stderr] | [INFO] [stderr] 497 | changes: BoxStream, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_changes` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/core.rs:538:52 [INFO] [stderr] | [INFO] [stderr] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cid` [INFO] [stderr] --> src/core.rs:538:59 [INFO] [stderr] | [INFO] [stderr] 538 | ... WantResponse::NotFound(index, cid) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/core.rs:540:56 [INFO] [stderr] | [INFO] [stderr] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cid` [INFO] [stderr] --> src/core.rs:540:63 [INFO] [stderr] | [INFO] [stderr] 540 | ... WantResponse::StopNotFound(index, cid) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `error` [INFO] [stderr] --> src/core.rs:550:57 [INFO] [stderr] | [INFO] [stderr] 550 | ... WantResponse::InternalError(error) => { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/test_util.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | for i in 0..branches { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: method `min` is never used [INFO] [stderr] --> src/core.rs:274:8 [INFO] [stderr] | [INFO] [stderr] 273 | impl Limits { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] 274 | fn min(&mut self, that: &Limits) { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `have` and `want` are never used [INFO] [stderr] --> src/core.rs:451:8 [INFO] [stderr] | [INFO] [stderr] 450 | pub(crate) trait SyncApi: Debug + Send + Sync + 'static { [INFO] [stderr] | ------- methods in this trait [INFO] [stderr] 451 | fn have(&self, query: Query) -> BoxFuture>; [INFO] [stderr] | ^^^^ [INFO] [stderr] 452 | fn want( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `peers` and `store` are never read [INFO] [stderr] --> src/core.rs:475:5 [INFO] [stderr] | [INFO] [stderr] 474 | pub struct Node { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 475 | peers: AHashMap>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 476 | store: Store, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `add_peer` and `sync` are never used [INFO] [stderr] --> src/core.rs:505:19 [INFO] [stderr] | [INFO] [stderr] 504 | impl Node { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] 505 | pub(crate) fn add_peer(&mut self, id: u64, peer: Box) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 509 | pub(crate) fn sync( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `server` is never read [INFO] [stderr] --> src/network.rs:146:5 [INFO] [stderr] | [INFO] [stderr] 142 | pub struct Node { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 146 | server: KrakenServer2, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `codec_name` is never used [INFO] [stderr] --> src/network.rs:245:4 [INFO] [stderr] | [INFO] [stderr] 245 | fn codec_name(codec: &IpldCodec) -> &str { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `peer_sync_demo` is never used [INFO] [stderr] --> src/network.rs:395:21 [INFO] [stderr] | [INFO] [stderr] 395 | pub(crate) async fn peer_sync_demo() -> anyhow::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_bits` is never used [INFO] [stderr] --> src/test_util.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn parse_bits(bits: &str) -> anyhow::Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Block`, `NotFound`, `StopNotFound`, `MaxBlocks`, `MaxBytes`, and `InternalError` are never constructed [INFO] [stderr] --> src/test_util.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 69 | pub enum WantResponseShort { [INFO] [stderr] | ----------------- variants in this enum [INFO] [stderr] 70 | Block(Cid), [INFO] [stderr] | ^^^^^ [INFO] [stderr] 71 | NotFound(Cid), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 72 | StopNotFound(Cid), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 73 | MaxBlocks, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 74 | MaxBytes, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 75 | InternalError(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `WantResponseShort` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `short` is never used [INFO] [stderr] --> src/test_util.rs:78:8 [INFO] [stderr] | [INFO] [stderr] 78 | pub fn short(response: WantResponse) -> WantResponseShort { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bitmap` [INFO] [stderr] --> src/tests.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | let bitmap = store.have(Query::new(root))?; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bitmap` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/tests.rs:185:9 [INFO] [stderr] | [INFO] [stderr] 185 | let mut node1 = Node::new(store1.clone()); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `have` is never used [INFO] [stderr] --> src/core.rs:451:8 [INFO] [stderr] | [INFO] [stderr] 450 | pub(crate) trait SyncApi: Debug + Send + Sync + 'static { [INFO] [stderr] | ------- method in this trait [INFO] [stderr] 451 | fn have(&self, query: Query) -> BoxFuture>; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: `krakensync` (lib) generated 30 warnings (run `cargo fix --lib -p krakensync` to apply 4 suggestions) [INFO] [stderr] warning: `krakensync` (lib test) generated 27 warnings (24 duplicates) (run `cargo fix --lib -p krakensync --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/krakensync-8cc592d643036b42) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test tests::smoke ... ok [INFO] [stdout] test tests::two_peer_sync ... ok [INFO] [stdout] test tests::mk_tree ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.44s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/krakensync-430cb4ea2e30259b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests krakensync [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3896f99d11dbbd9d02a09f15b8192facbf5556a255774f9546121e89023cbea5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3896f99d11dbbd9d02a09f15b8192facbf5556a255774f9546121e89023cbea5", kill_on_drop: false }` [INFO] [stdout] 3896f99d11dbbd9d02a09f15b8192facbf5556a255774f9546121e89023cbea5