[INFO] cloning repository https://github.com/vorkutavorkutlag/rustktorrent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vorkutavorkutlag/rustktorrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvorkutavorkutlag%2Frustktorrent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvorkutavorkutlag%2Frustktorrent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4bad07c558fa2ec650290d08fe47d43db4877456 [INFO] testing vorkutavorkutlag/rustktorrent against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvorkutavorkutlag%2Frustktorrent" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vorkutavorkutlag/rustktorrent [INFO] finished tweaking git repo https://github.com/vorkutavorkutlag/rustktorrent [INFO] tweaked toml for git repo https://github.com/vorkutavorkutlag/rustktorrent written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vorkutavorkutlag/rustktorrent on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vorkutavorkutlag/rustktorrent 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6d92c89227996447e0c41b0e1201c23873d5b6592f3360de2e4850db3a8a877 [INFO] running `Command { std: "docker" "start" "-a" "d6d92c89227996447e0c41b0e1201c23873d5b6592f3360de2e4850db3a8a877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6d92c89227996447e0c41b0e1201c23873d5b6592f3360de2e4850db3a8a877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6d92c89227996447e0c41b0e1201c23873d5b6592f3360de2e4850db3a8a877", kill_on_drop: false }` [INFO] [stdout] d6d92c89227996447e0c41b0e1201c23873d5b6592f3360de2e4850db3a8a877 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1ef39c18328c3b8e235052c7e686aa30bd75e75a82cbbf1374a940e14e2215d [INFO] running `Command { std: "docker" "start" "-a" "e1ef39c18328c3b8e235052c7e686aa30bd75e75a82cbbf1374a940e14e2215d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling litemap v0.7.3 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling derive_builder v0.9.0 [INFO] [stderr] Compiling nibble_vec v0.1.0 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling endian-type v0.1.2 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling cpufeatures v0.2.15 [INFO] [stderr] Compiling radix_trie v0.2.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling dns-lookup v1.0.8 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling derive_builder_core v0.9.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling uuid-macro-internal v1.11.0 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling pin-project v1.1.7 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling zerofrom v0.1.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling uuid v1.11.0 [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 futures-executor v0.3.31 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tracing-futures v0.2.5 [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 tokio-util v0.7.12 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.3 [INFO] [stderr] Compiling hyper-system-resolver v0.5.0 [INFO] [stderr] Compiling trust-dns-proto v0.20.4 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling trust-dns-client v0.20.4 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling public-ip v0.2.2 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.9 [INFO] [stderr] Compiling rktorrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/main.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{process, str, sync::{Arc, Mutex}}; [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: `Mutex` [INFO] [stdout] --> src/peers.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net::{TcpStream, SocketAddrV4}, error::Error, sync::{Arc, Mutex}, io::prelude::*}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tracker.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | pub async fn start_tracker_comm(mut ti: Arc, tx: mpsc::Sender>) -> () { [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] --> src/tracker.rs:310:11 [INFO] [stdout] | [INFO] [stdout] 310 | let mut tracker: Tracker = Tracker [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/peers.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 65 | / match BittorrentConstants::try_from(response_data[1])? { [INFO] [stdout] 66 | | BittorrentConstants::Choke => todo!(), [INFO] [stdout] 67 | | BittorrentConstants::Unchoke => todo!(), [INFO] [stdout] 68 | | BittorrentConstants::Bitfield => todo!(), [INFO] [stdout] 69 | | _ => todo!() [INFO] [stdout] 70 | | } [INFO] [stdout] | |___- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 71 | [INFO] [stdout] 72 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_length` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | piece_length, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_length` [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/main.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | let mut ti: Arc = Arc::new(TorrentInfo { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interested_msg` is never used [INFO] [stdout] --> src/peers.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | async fn interested_msg(mut t_peer: &TcpStream, ti: &Arc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_pieces` and `pieces` are never read [INFO] [stdout] --> src/structs_enums.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TorrentInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub num_pieces: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub pieces: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TorrentInfo` 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: enum `BittorrentConstants` is never used [INFO] [stdout] --> src/structs_enums.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum BittorrentConstants { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EVENT` should have a snake case name [INFO] [stdout] --> src/tracker.rs:229:7 [INFO] [stdout] | [INFO] [stdout] 229 | let EVENT: u32 = 2; // temporary, should be dynamically decided as started, completed, stopped (2, 1, 3) [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.11s [INFO] running `Command { std: "docker" "inspect" "e1ef39c18328c3b8e235052c7e686aa30bd75e75a82cbbf1374a940e14e2215d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ef39c18328c3b8e235052c7e686aa30bd75e75a82cbbf1374a940e14e2215d", kill_on_drop: false }` [INFO] [stdout] e1ef39c18328c3b8e235052c7e686aa30bd75e75a82cbbf1374a940e14e2215d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e09fa5e09c647ba0c618f548c90966fd3b39d3d934392f856eaabf6449b6b52d [INFO] running `Command { std: "docker" "start" "-a" "e09fa5e09c647ba0c618f548c90966fd3b39d3d934392f856eaabf6449b6b52d", kill_on_drop: false }` [INFO] [stderr] Compiling rktorrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/main.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{process, str, sync::{Arc, Mutex}}; [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: `Mutex` [INFO] [stdout] --> src/peers.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{net::{TcpStream, SocketAddrV4}, error::Error, sync::{Arc, Mutex}, io::prelude::*}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tracker.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | pub async fn start_tracker_comm(mut ti: Arc, tx: mpsc::Sender>) -> () { [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] --> src/tracker.rs:310:11 [INFO] [stdout] | [INFO] [stdout] 310 | let mut tracker: Tracker = Tracker [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/peers.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 65 | / match BittorrentConstants::try_from(response_data[1])? { [INFO] [stdout] 66 | | BittorrentConstants::Choke => todo!(), [INFO] [stdout] 67 | | BittorrentConstants::Unchoke => todo!(), [INFO] [stdout] 68 | | BittorrentConstants::Bitfield => todo!(), [INFO] [stdout] 69 | | _ => todo!() [INFO] [stdout] 70 | | } [INFO] [stdout] | |___- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 71 | [INFO] [stdout] 72 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_length` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | piece_length, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_length` [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/main.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | let mut ti: Arc = Arc::new(TorrentInfo { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interested_msg` is never used [INFO] [stdout] --> src/peers.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | async fn interested_msg(mut t_peer: &TcpStream, ti: &Arc) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_pieces` and `pieces` are never read [INFO] [stdout] --> src/structs_enums.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TorrentInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub num_pieces: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub pieces: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TorrentInfo` 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: enum `BittorrentConstants` is never used [INFO] [stdout] --> src/structs_enums.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum BittorrentConstants { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `EVENT` should have a snake case name [INFO] [stdout] --> src/tracker.rs:229:7 [INFO] [stdout] | [INFO] [stdout] 229 | let EVENT: u32 = 2; // temporary, should be dynamically decided as started, completed, stopped (2, 1, 3) [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `event` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "e09fa5e09c647ba0c618f548c90966fd3b39d3d934392f856eaabf6449b6b52d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e09fa5e09c647ba0c618f548c90966fd3b39d3d934392f856eaabf6449b6b52d", kill_on_drop: false }` [INFO] [stdout] e09fa5e09c647ba0c618f548c90966fd3b39d3d934392f856eaabf6449b6b52d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f83c72b67f342b213b8fcfe42f521169472b55f536d1fc797d94beedb4d4ce41 [INFO] running `Command { std: "docker" "start" "-a" "f83c72b67f342b213b8fcfe42f521169472b55f536d1fc797d94beedb4d4ce41", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Mutex` [INFO] [stderr] --> src/main.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{process, str, sync::{Arc, Mutex}}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Mutex` [INFO] [stderr] --> src/peers.rs:1:69 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{net::{TcpStream, SocketAddrV4}, error::Error, sync::{Arc, Mutex}, io::prelude::*}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/tracker.rs:298:33 [INFO] [stderr] | [INFO] [stderr] 298 | pub async fn start_tracker_comm(mut ti: Arc, tx: mpsc::Sender>) -> () { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/tracker.rs:310:11 [INFO] [stderr] | [INFO] [stderr] 310 | let mut tracker: Tracker = Tracker [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/peers.rs:72:3 [INFO] [stderr] | [INFO] [stderr] 65 | / match BittorrentConstants::try_from(response_data[1])? { [INFO] [stderr] 66 | | BittorrentConstants::Choke => todo!(), [INFO] [stderr] 67 | | BittorrentConstants::Unchoke => todo!(), [INFO] [stderr] 68 | | BittorrentConstants::Bitfield => todo!(), [INFO] [stderr] 69 | | _ => todo!() [INFO] [stderr] 70 | | } [INFO] [stderr] | |___- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 71 | [INFO] [stderr] 72 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `piece_length` [INFO] [stderr] --> src/main.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | piece_length, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_length` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:37:7 [INFO] [stderr] | [INFO] [stderr] 37 | let mut ti: Arc = Arc::new(TorrentInfo { [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function `interested_msg` is never used [INFO] [stderr] --> src/peers.rs:48:10 [INFO] [stderr] | [INFO] [stderr] 48 | async fn interested_msg(mut t_peer: &TcpStream, ti: &Arc) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `num_pieces` and `pieces` are never read [INFO] [stderr] --> src/structs_enums.rs:7:7 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct TorrentInfo { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 7 | pub num_pieces: u64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 10 | pub pieces: Vec, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TorrentInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `BittorrentConstants` is never used [INFO] [stderr] --> src/structs_enums.rs:33:10 [INFO] [stderr] | [INFO] [stderr] 33 | pub enum BittorrentConstants { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `EVENT` should have a snake case name [INFO] [stderr] --> src/tracker.rs:229:7 [INFO] [stderr] | [INFO] [stderr] 229 | let EVENT: u32 = 2; // temporary, should be dynamically decided as started, completed, stopped (2, 1, 3) [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `event` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `rktorrent` (bin "rktorrent" test) generated 11 warnings (run `cargo fix --bin "rktorrent" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rktorrent-5311db01ae1ed997) [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" "f83c72b67f342b213b8fcfe42f521169472b55f536d1fc797d94beedb4d4ce41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f83c72b67f342b213b8fcfe42f521169472b55f536d1fc797d94beedb4d4ce41", kill_on_drop: false }` [INFO] [stdout] f83c72b67f342b213b8fcfe42f521169472b55f536d1fc797d94beedb4d4ce41