[INFO] cloning repository https://github.com/nireo/dht [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nireo/dht" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnireo%2Fdht", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnireo%2Fdht'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cbe2a1ca30dd080c87f71d1504bfb89097c554a2 [INFO] checking nireo/dht against try#29194e8f603400afdb2f86c9418e9fccb1628ea0 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnireo%2Fdht" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nireo/dht [INFO] finished tweaking git repo https://github.com/nireo/dht [INFO] tweaked toml for git repo https://github.com/nireo/dht written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nireo/dht on toolchain 29194e8f603400afdb2f86c9418e9fccb1628ea0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nireo/dht 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" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2029a78847d38254bec66b8534e7258128689fd7b79955c0fd3737a45d18b0e [INFO] running `Command { std: "docker" "start" "-a" "f2029a78847d38254bec66b8534e7258128689fd7b79955c0fd3737a45d18b0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2029a78847d38254bec66b8534e7258128689fd7b79955c0fd3737a45d18b0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2029a78847d38254bec66b8534e7258128689fd7b79955c0fd3737a45d18b0e", kill_on_drop: false }` [INFO] [stdout] f2029a78847d38254bec66b8534e7258128689fd7b79955c0fd3737a45d18b0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 672e8529751084e833030d62a0bbf74a7c12f46ffecd0ce61a4124b286a5625d [INFO] running `Command { std: "docker" "start" "-a" "672e8529751084e833030d62a0bbf74a7c12f46ffecd0ce61a4124b286a5625d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking bytemuck v1.23.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling rustls v0.23.30 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Compiling quinn-udp v0.5.13 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking rustls-native-certs v0.8.1 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Compiling quinn v0.11.8 [INFO] [stderr] Checking lru-slab v0.1.2 [INFO] [stderr] Checking rustc-hash v2.1.1 [INFO] [stderr] Checking opentelemetry-semantic-conventions v0.16.0 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking wide v0.7.33 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking fastbloom v0.9.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tarpc-plugins v0.14.1 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.47.0 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking opentelemetry v0.26.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking opentelemetry_sdk v0.26.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking rustls-platform-verifier v0.5.3 [INFO] [stderr] Checking quinn-proto v0.11.12 [INFO] [stderr] Checking tracing-opentelemetry v0.27.0 [INFO] [stderr] Checking tarpc v0.36.0 [INFO] [stderr] Checking dht v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | fmt, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | fmt, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KBucket` is never constructed [INFO] [stdout] --> src/kbucket.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct KBucket { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/kbucket.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl KBucket { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn update_ts(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn split(&self) -> (KBucket, KBucket) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn remove_node(&mut self, node: &Node) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn has_in_range(&self, node: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn is_new_node(&self, node: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn add_node(&mut self, node: Node) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn head(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get(&self, node_id: &NodeId) -> Option<&Node> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn range(&self) -> (u128, u128) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn last_updated(&self) -> Instant { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn replacement_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn get_replacement_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `node_id_to_u128` is never used [INFO] [stdout] --> src/kbucket.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn node_id_to_u128(node_id: &NodeId) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `node_id_to_bit_string` is never used [INFO] [stdout] --> src/kbucket.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn node_id_to_bit_string(node_id: &NodeId) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shared_prefix` is never used [INFO] [stdout] --> src/kbucket.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn shared_prefix(bit_strings: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeId` is never constructed [INFO] [stdout] --> src/node.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NodeId([u8; 20]); // 160 bits = 20 bytes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_slice`, `random`, `as_bytes`, `distance`, and `leading_zeros` are never used [INFO] [stdout] --> src/node.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl NodeId { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(bytes: [u8; 20]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn from_slice(slice: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn as_bytes(&self) -> &[u8; 20] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn distance(&self, other: &NodeId) -> NodeId { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn leading_zeros(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/node.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 62 | pub fn new(node_id: NodeId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn with_address(node_id: NodeId, ip: IpAddr, port: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn from_socket_addr(addr: SocketAddr) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn same_home_as(&self, other: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn distance_to(&self, other: &Node) -> NodeId { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn socket_addr(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn has_address(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn as_tuple(&self) -> (NodeId, Option, Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeapEntry` is never constructed [INFO] [stdout] --> src/node_heap.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct HeapEntry { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/node_heap.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl HeapEntry { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 15 | fn new(distance: NodeId, node: Node) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeHeap` is never constructed [INFO] [stdout] --> src/node_heap.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct NodeHeap { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node_heap.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl NodeHeap { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 50 | pub fn new(node: Node, max_size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn remove(&mut self, peers: I) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_node(&self, node_id: &NodeId) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn have_contacted_all(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_ids(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn mark_contacted(&mut self, node: &Node) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn pop_left(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn push(&mut self, nodes: I) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn push_one(&mut self, node: Node) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn contains(&self, node: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn get_uncontacted(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn to_vec(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn actual_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn reference_node(&self) -> &Node { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_updated` is never read [INFO] [stdout] --> src/kbucket.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct KBucket { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | last_updated: Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KBucket` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/kbucket.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl KBucket { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn update_ts(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn has_in_range(&self, node: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn is_new_node(&self, node: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn depth(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn head(&self) -> Option<&Node> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn last_updated(&self) -> Instant { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn get_replacement_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `node_id_to_bit_string` is never used [INFO] [stdout] --> src/kbucket.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn node_id_to_bit_string(node_id: &NodeId) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shared_prefix` is never used [INFO] [stdout] --> src/kbucket.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn shared_prefix(bit_strings: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `leading_zeros` are never used [INFO] [stdout] --> src/node.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl NodeId { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(bytes: [u8; 20]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn leading_zeros(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ip` and `port` are never read [INFO] [stdout] --> src/node.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 56 | pub id: NodeId, [INFO] [stdout] 57 | pub ip: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 58 | pub port: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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: associated items `with_address`, `from_socket_addr`, `same_home_as`, `socket_addr`, `has_address`, and `as_tuple` are never used [INFO] [stdout] --> src/node.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl Node { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn with_address(node_id: NodeId, ip: IpAddr, port: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn from_socket_addr(addr: SocketAddr) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn same_home_as(&self, other: &Node) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn socket_addr(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn has_address(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn as_tuple(&self) -> (NodeId, Option, Option) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `get_node`, `get_ids`, `pop_left`, `to_vec`, and `clear` are never used [INFO] [stdout] --> src/node_heap.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl NodeHeap { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn remove(&mut self, peers: I) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_node(&self, node_id: &NodeId) -> Option<&Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_ids(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn pop_left(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn to_vec(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.83s [INFO] running `Command { std: "docker" "inspect" "672e8529751084e833030d62a0bbf74a7c12f46ffecd0ce61a4124b286a5625d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "672e8529751084e833030d62a0bbf74a7c12f46ffecd0ce61a4124b286a5625d", kill_on_drop: false }` [INFO] [stdout] 672e8529751084e833030d62a0bbf74a7c12f46ffecd0ce61a4124b286a5625d