[INFO] cloning repository https://github.com/reinaldorauch/bt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/reinaldorauch/bt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freinaldorauch%2Fbt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freinaldorauch%2Fbt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c1463559c0a9b7b88b10e79fa5c4747d3fb024e [INFO] building reinaldorauch/bt against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freinaldorauch%2Fbt" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/reinaldorauch/bt [INFO] finished tweaking git repo https://github.com/reinaldorauch/bt [INFO] tweaked toml for git repo https://github.com/reinaldorauch/bt written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/reinaldorauch/bt on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/reinaldorauch/bt 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded url-escape v0.1.1 [INFO] [stderr] Downloaded cc v1.2.3 [INFO] [stderr] Downloaded bendy v0.3.3 [INFO] [stderr] Downloaded sha1-checked v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1fa0ccf538d59bff0ed27ec3b43cdade70063c08c52676327be0c253a084daa [INFO] running `Command { std: "docker" "start" "-a" "a1fa0ccf538d59bff0ed27ec3b43cdade70063c08c52676327be0c253a084daa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1fa0ccf538d59bff0ed27ec3b43cdade70063c08c52676327be0c253a084daa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1fa0ccf538d59bff0ed27ec3b43cdade70063c08c52676327be0c253a084daa", kill_on_drop: false }` [INFO] [stdout] a1fa0ccf538d59bff0ed27ec3b43cdade70063c08c52676327be0c253a084daa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6694341e6f6a877f2657897e49478c92b306d946f0fcc1fd54b80454623d0c31 [INFO] running `Command { std: "docker" "start" "-a" "6694341e6f6a877f2657897e49478c92b306d946f0fcc1fd54b80454623d0c31", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling clap_builder v4.5.23 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling sha1-checked v0.10.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling object v0.36.5 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling url-escape v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling backtrace v0.3.74 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling bendy v0.3.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling clap v4.5.23 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling rusqlite v0.32.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.5.1 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.9 [INFO] [stderr] Compiling bt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/bittorrent.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | fmt::{Display, write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url_escape::encode_component_to_string` [INFO] [stdout] --> src/util.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use url_escape::encode_component_to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peers` [INFO] [stdout] --> src/download.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | let mut peers: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_peers` [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] --> src/download.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let mut peers: Vec = Vec::new(); [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: unused variable: `maybe_trackers` [INFO] [stdout] --> src/download.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | maybe_trackers: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_trackers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_web_seeds` [INFO] [stdout] --> src/download.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | maybe_web_seeds: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_web_seeds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_handle` [INFO] [stdout] --> src/download.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | file_handle: &mut File, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pieces_downloaded` [INFO] [stdout] --> src/download.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | let mut pieces_downloaded: Vec = Vec::with_capacity(pieces.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pieces_downloaded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/download.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let mut pieces_downloaded: Vec = Vec::with_capacity(pieces.len()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_length` [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | piece_length, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `piece_length: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private` [INFO] [stdout] --> src/main.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | private, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `private: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | length, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `length: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_length` [INFO] [stdout] --> src/main.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | piece_length, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `piece_length: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pieces` [INFO] [stdout] --> src/main.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | pieces, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `pieces: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private` [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | private, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `private: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | files, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `files: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/bittorrent.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl PeerId { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/bittorrent.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl InfoHash { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PeerConnectionError` is never used [INFO] [stdout] --> src/bittorrent.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum PeerConnectionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hostname`, `socket`, `me_choked`, `me_interested`, `they_choked`, and `they_interested` are never read [INFO] [stdout] --> src/bittorrent.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct PeerConnection { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 94 | pub hostname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 95 | socket: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 96 | pub me_choked: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 97 | pub me_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 98 | pub they_choked: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | pub they_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerConnection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `connect` and `handshake` are never used [INFO] [stdout] --> src/bittorrent.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 102 | impl PeerConnection { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 103 | pub async fn connect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn handshake( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_uploaded` and `pieces_fetched` are never read [INFO] [stdout] --> src/bittorrent.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct DownloadProgress { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 156 | pub bytes_uploaded: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 157 | pub pieces_fetched: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadProgress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hostname` is never used [INFO] [stdout] --> src/bittorrent.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl Peer { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 174 | pub fn hostname(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnnounceError` is never constructed [INFO] [stdout] --> src/bittorrent.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 315 | pub struct AnnounceError(String); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.35s [INFO] running `Command { std: "docker" "inspect" "6694341e6f6a877f2657897e49478c92b306d946f0fcc1fd54b80454623d0c31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6694341e6f6a877f2657897e49478c92b306d946f0fcc1fd54b80454623d0c31", kill_on_drop: false }` [INFO] [stdout] 6694341e6f6a877f2657897e49478c92b306d946f0fcc1fd54b80454623d0c31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b66215757035d2812eb4a5ed9db73ed6e8b6b1265e436100599afc62de96e2a [INFO] running `Command { std: "docker" "start" "-a" "4b66215757035d2812eb4a5ed9db73ed6e8b6b1265e436100599afc62de96e2a", kill_on_drop: false }` [INFO] [stderr] warning: the cargo feature `edition2024` has been stabilized in the 1.85 release and is no longer necessary to be listed in the manifest [INFO] [stderr] See https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-edition-field for more information about using this feature. [INFO] [stderr] Compiling bt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/bittorrent.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | fmt::{Display, write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peers` [INFO] [stdout] --> src/download.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 101 | let mut peers: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_peers` [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] --> src/download.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | let mut peers: Vec = Vec::new(); [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: unused variable: `maybe_trackers` [INFO] [stdout] --> src/download.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | maybe_trackers: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_trackers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `maybe_web_seeds` [INFO] [stdout] --> src/download.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | maybe_web_seeds: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_maybe_web_seeds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_handle` [INFO] [stdout] --> src/download.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | file_handle: &mut File, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pieces_downloaded` [INFO] [stdout] --> src/download.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | let mut pieces_downloaded: Vec = Vec::with_capacity(pieces.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pieces_downloaded` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/download.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let mut pieces_downloaded: Vec = Vec::with_capacity(pieces.len()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_length` [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | piece_length, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `piece_length: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private` [INFO] [stdout] --> src/main.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | private, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `private: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/main.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | length, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `length: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_length` [INFO] [stdout] --> src/main.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | piece_length, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `piece_length: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pieces` [INFO] [stdout] --> src/main.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | pieces, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `pieces: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private` [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | private, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `private: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `files` [INFO] [stdout] --> src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | files, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `files: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/bittorrent.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl PeerId { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/bittorrent.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl InfoHash { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PeerConnectionError` is never used [INFO] [stdout] --> src/bittorrent.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | pub enum PeerConnectionError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hostname`, `socket`, `me_choked`, `me_interested`, `they_choked`, and `they_interested` are never read [INFO] [stdout] --> src/bittorrent.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct PeerConnection { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 94 | pub hostname: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 95 | socket: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 96 | pub me_choked: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 97 | pub me_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 98 | pub they_choked: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 99 | pub they_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PeerConnection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `connect` and `handshake` are never used [INFO] [stdout] --> src/bittorrent.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 102 | impl PeerConnection { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 103 | pub async fn connect( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn handshake( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bytes_uploaded` and `pieces_fetched` are never read [INFO] [stdout] --> src/bittorrent.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct DownloadProgress { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 156 | pub bytes_uploaded: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 157 | pub pieces_fetched: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadProgress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hostname` is never used [INFO] [stdout] --> src/bittorrent.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl Peer { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 174 | pub fn hostname(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnnounceError` is never constructed [INFO] [stdout] --> src/bittorrent.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 315 | pub struct AnnounceError(String); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.99s [INFO] running `Command { std: "docker" "inspect" "4b66215757035d2812eb4a5ed9db73ed6e8b6b1265e436100599afc62de96e2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b66215757035d2812eb4a5ed9db73ed6e8b6b1265e436100599afc62de96e2a", kill_on_drop: false }` [INFO] [stdout] 4b66215757035d2812eb4a5ed9db73ed6e8b6b1265e436100599afc62de96e2a