[INFO] cloning repository https://github.com/lihongjie0209/libtorrent-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lihongjie0209/libtorrent-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flihongjie0209%2Flibtorrent-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flihongjie0209%2Flibtorrent-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7762badfa6b2cc6d85fe3aa39ab3ab656040f852 [INFO] checking lihongjie0209/libtorrent-rust against try#fe84aa3583bb2681b5d0580316bde6d58ccfd6b5 for pr-154149-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flihongjie0209%2Flibtorrent-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lihongjie0209/libtorrent-rust [INFO] finished tweaking git repo https://github.com/lihongjie0209/libtorrent-rust [INFO] tweaked toml for git repo https://github.com/lihongjie0209/libtorrent-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lihongjie0209/libtorrent-rust on toolchain fe84aa3583bb2681b5d0580316bde6d58ccfd6b5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lihongjie0209/libtorrent-rust 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" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6909619f02a86d7ae0d5aa7b9bac69af60f315336b0fb51d08b614bb5b64b62d [INFO] running `Command { std: "docker" "start" "-a" "6909619f02a86d7ae0d5aa7b9bac69af60f315336b0fb51d08b614bb5b64b62d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6909619f02a86d7ae0d5aa7b9bac69af60f315336b0fb51d08b614bb5b64b62d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6909619f02a86d7ae0d5aa7b9bac69af60f315336b0fb51d08b614bb5b64b62d", kill_on_drop: false }` [INFO] [stdout] 6909619f02a86d7ae0d5aa7b9bac69af60f315336b0fb51d08b614bb5b64b62d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94c4dcbe4d32273c28cf39d43ced0926ce35a911d6afe4c38eeb8cddefd714c6 [INFO] running `Command { std: "docker" "start" "-a" "94c4dcbe4d32273c28cf39d43ced0926ce35a911d6afe4c38eeb8cddefd714c6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling cc v1.2.46 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling rustls v0.23.35 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking rustls-pki-types v1.13.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking gimli v0.32.3 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking rustc-demangle v0.1.26 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking serde_bytes v0.11.19 [INFO] [stderr] Checking iri-string v0.7.9 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking time-core v0.1.6 [INFO] [stderr] Checking webpki-roots v1.0.4 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking clap_builder v4.5.52 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking addr2line v0.25.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking backtrace v0.3.76 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking bendy v0.3.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking rustls-webpki v0.103.8 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking clap v4.5.52 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking libtorrent-proto v0.1.0 (/opt/rustwide/workdir/crates/libtorrent-proto) [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking hyper-util v0.1.18 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking libtorrent v0.1.0 (/opt/rustwide/workdir/crates/libtorrent) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/libtorrent/src/piece_picker.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut picker = PiecePicker::new(10); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sent_count` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:315:13 [INFO] [stdout] | [INFO] [stdout] 315 | let mut sent_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sent_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responses_received` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let mut responses_received = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_responses_received` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:397:27 [INFO] [stdout] | [INFO] [stdout] 397 | Ok(Ok((n, from))) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent_count` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 385 | sent_count += 1; [INFO] [stdout] | --------------- `sent_count` is overwritten here before the previous value is read [INFO] [stdout] ... [INFO] [stdout] 487 | sent_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent_count` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 324 | sent_count += 1; [INFO] [stdout] | --------------- `sent_count` is overwritten here before the previous value is read [INFO] [stdout] ... [INFO] [stdout] 385 | sent_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent_count` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:324:29 [INFO] [stdout] | [INFO] [stdout] 324 | ... sent_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `responses_received` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:399:21 [INFO] [stdout] | [INFO] [stdout] 345 | responses_received += 1; [INFO] [stdout] | ----------------------- `responses_received` is overwritten here before the previous value is read [INFO] [stdout] ... [INFO] [stdout] 399 | responses_received += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `responses_received` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | responses_received += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `node_id_opt` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:535:17 [INFO] [stdout] | [INFO] [stdout] 535 | let mut node_id_opt: Option<[u8; 20]> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_node_id_opt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `target_opt` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:537:17 [INFO] [stdout] | [INFO] [stdout] 537 | let mut target_opt: Option<[u8; 20]> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_target_opt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `node_id_opt` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:556:49 [INFO] [stdout] | [INFO] [stdout] 556 | ... node_id_opt = Some(id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_opt` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:574:49 [INFO] [stdout] | [INFO] [stdout] 574 | ... target_opt = Some(t); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KRPC_Q` is never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const KRPC_Q: &str = "q"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KRPC_R` is never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const KRPC_R: &str = "r"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KRPC_E` is never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const KRPC_E: &str = "e"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `info_hash` are never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 138 | struct PendingQuery { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 139 | kind: QueryKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 140 | info_hash: [u8; 20], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base`, `is_single_file`, and `name` are never read [INFO] [stdout] --> crates/libtorrent/src/disk.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | base: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | is_single_file: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiskManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking spider v0.1.0 (/opt/rustwide/workdir/crates/spider) [INFO] [stdout] warning: variable `sent_count` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:315:13 [INFO] [stdout] | [INFO] [stdout] 315 | let mut sent_count = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sent_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responses_received` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let mut responses_received = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_responses_received` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:397:27 [INFO] [stdout] | [INFO] [stdout] 397 | Ok(Ok((n, from))) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent_count` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 385 | sent_count += 1; [INFO] [stdout] | --------------- `sent_count` is overwritten here before the previous value is read [INFO] [stdout] ... [INFO] [stdout] 487 | sent_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent_count` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 324 | sent_count += 1; [INFO] [stdout] | --------------- `sent_count` is overwritten here before the previous value is read [INFO] [stdout] ... [INFO] [stdout] 385 | sent_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sent_count` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:324:29 [INFO] [stdout] | [INFO] [stdout] 324 | ... sent_count += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `responses_received` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:399:21 [INFO] [stdout] | [INFO] [stdout] 345 | responses_received += 1; [INFO] [stdout] | ----------------------- `responses_received` is overwritten here before the previous value is read [INFO] [stdout] ... [INFO] [stdout] 399 | responses_received += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `responses_received` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | responses_received += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `node_id_opt` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:535:17 [INFO] [stdout] | [INFO] [stdout] 535 | let mut node_id_opt: Option<[u8; 20]> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_node_id_opt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `target_opt` is assigned to, but never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:537:17 [INFO] [stdout] | [INFO] [stdout] 537 | let mut target_opt: Option<[u8; 20]> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_target_opt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `node_id_opt` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:556:49 [INFO] [stdout] | [INFO] [stdout] 556 | ... node_id_opt = Some(id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_opt` is never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:574:49 [INFO] [stdout] | [INFO] [stdout] 574 | ... target_opt = Some(t); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KRPC_Q` is never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const KRPC_Q: &str = "q"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KRPC_R` is never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const KRPC_R: &str = "r"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KRPC_E` is never used [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const KRPC_E: &str = "e"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `info_hash` are never read [INFO] [stdout] --> crates/libtorrent/src/net/dht.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 138 | struct PendingQuery { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 139 | kind: QueryKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 140 | info_hash: [u8; 20], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `base`, `is_single_file`, and `name` are never read [INFO] [stdout] --> crates/libtorrent/src/disk.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | base: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | is_single_file: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DiskManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dict` [INFO] [stdout] --> crates/libtorrent/examples/test_dht_protocol.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | if let Ok(dict) = obj.unwrap().try_into_dictionary() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dict` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/spider/src/main.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | let mut worker_stats: Vec<_> = self.worker_samples.iter() [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/spider/src/main.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | let mut worker_stats: Vec<_> = self.worker_samples.iter() [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_bytes_sent` is never used [INFO] [stdout] --> crates/spider/src/main.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 105 | impl Metrics { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | fn record_bytes_sent(&self, bytes: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_target` is never used [INFO] [stdout] --> crates/spider/src/main.rs:254:4 [INFO] [stdout] | [INFO] [stdout] 254 | fn gen_target(i: usize) -> [u8; 20] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `record_bytes_sent` is never used [INFO] [stdout] --> crates/spider/src/main.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 105 | impl Metrics { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | fn record_bytes_sent(&self, bytes: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_target` is never used [INFO] [stdout] --> crates/spider/src/main.rs:254:4 [INFO] [stdout] | [INFO] [stdout] 254 | fn gen_target(i: usize) -> [u8; 20] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.75s [INFO] running `Command { std: "docker" "inspect" "94c4dcbe4d32273c28cf39d43ced0926ce35a911d6afe4c38eeb8cddefd714c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c4dcbe4d32273c28cf39d43ced0926ce35a911d6afe4c38eeb8cddefd714c6", kill_on_drop: false }` [INFO] [stdout] 94c4dcbe4d32273c28cf39d43ced0926ce35a911d6afe4c38eeb8cddefd714c6