[INFO] cloning repository https://github.com/PunitLodha/bitr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PunitLodha/bitr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPunitLodha%2Fbitr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPunitLodha%2Fbitr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c937f9467a0c0a1da501172b6634358b0038c9e [INFO] testing PunitLodha/bitr against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPunitLodha%2Fbitr" "/workspace/builds/worker-117/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-117/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PunitLodha/bitr on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PunitLodha/bitr [INFO] finished tweaking git repo https://github.com/PunitLodha/bitr [INFO] tweaked toml for git repo https://github.com/PunitLodha/bitr written to /workspace/builds/worker-117/source/Cargo.toml [INFO] crate git repo https://github.com/PunitLodha/bitr already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded socket2 v0.3.16 [INFO] [stderr] Downloaded radium v0.6.1 [INFO] [stderr] Downloaded tokio v0.2.23 [INFO] [stderr] Downloaded bitvec v0.20.1 [INFO] [stderr] Downloaded serde_bencode v0.2.2 [INFO] [stderr] Downloaded tokio v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 584dda33c52befdc3a536e78f5a32c596a8759d98e3031123607a3980da2976d [INFO] running `Command { std: "docker" "start" "-a" "584dda33c52befdc3a536e78f5a32c596a8759d98e3031123607a3980da2976d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "584dda33c52befdc3a536e78f5a32c596a8759d98e3031123607a3980da2976d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "584dda33c52befdc3a536e78f5a32c596a8759d98e3031123607a3980da2976d", kill_on_drop: false }` [INFO] [stdout] 584dda33c52befdc3a536e78f5a32c596a8759d98e3031123607a3980da2976d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2e8a6a8e0a7c027e21c3956f8c27a1566d2b378434765e7db54edd1cddd6a26 [INFO] running `Command { std: "docker" "start" "-a" "a2e8a6a8e0a7c027e21c3956f8c27a1566d2b378434765e7db54edd1cddd6a26", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling cc v1.0.62 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling radium v0.6.1 [INFO] [stderr] Compiling smallvec v1.5.1 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling dtoa v0.4.6 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling tap v1.0.0 [INFO] [stderr] Compiling bytes v1.0.0 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling tinyvec v1.0.1 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling socket2 v0.3.16 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling parking_lot_core v0.8.2 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.14 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling mio v0.7.6 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling tokio v1.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling bitvec v0.20.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling serde_bencode v0.2.2 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling tokio-macros v1.0.0 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling pin-project v1.0.1 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.8 [INFO] [stderr] Compiling bitr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/disk.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/disk.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spawn_blocking` [INFO] [stdout] --> src/disk.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::task::{self, spawn_blocking, JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/peer.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 128 | / loop { [INFO] [stdout] 129 | | let mut buffer = [0; 4]; [INFO] [stdout] 130 | | stream.read_exact(&mut buffer).await?; [INFO] [stdout] 131 | | [INFO] [stdout] ... | [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 254 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/disk.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | Err(e) => println!("Some err piece #{}", piece.index), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/peer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let a = &received_handshake[28..48].to_vec() == info_hash; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/peer.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let a = &received_handshake[48..].to_vec() == &self.peer_id; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `path` [INFO] [stdout] --> src/manager.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Manager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decrement_piece_availability` [INFO] [stdout] --> src/manager.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | fn decrement_piece_availability(&mut self, piece: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/manager.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 381 | state: PieceState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PiecePos` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:378:10 [INFO] [stdout] | [INFO] [stdout] 378 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Downloading` [INFO] [stdout] --> src/manager.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | Downloading, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PieceState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:395:10 [INFO] [stdout] | [INFO] [stdout] 395 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/manager.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DownloadingPiece` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:401:10 [INFO] [stdout] | [INFO] [stdout] 401 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Writing` [INFO] [stdout] --> src/manager.rs:434:5 [INFO] [stdout] | [INFO] [stdout] 434 | Writing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Finished` [INFO] [stdout] --> src/manager.rs:435:5 [INFO] [stdout] | [INFO] [stdout] 435 | Finished, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_state` [INFO] [stdout] --> src/peer.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | client_state: ChokeState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/peer.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_interest` [INFO] [stdout] --> src/peer.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | client_interest: InterestState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/peer.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `warning_message` [INFO] [stdout] --> src/tracker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | warning_message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tracker.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 17s [INFO] running `Command { std: "docker" "inspect" "a2e8a6a8e0a7c027e21c3956f8c27a1566d2b378434765e7db54edd1cddd6a26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2e8a6a8e0a7c027e21c3956f8c27a1566d2b378434765e7db54edd1cddd6a26", kill_on_drop: false }` [INFO] [stdout] a2e8a6a8e0a7c027e21c3956f8c27a1566d2b378434765e7db54edd1cddd6a26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 698031111d0c08eb60709f7da14c105c035852dc725765ae549932124ea9d411 [INFO] running `Command { std: "docker" "start" "-a" "698031111d0c08eb60709f7da14c105c035852dc725765ae549932124ea9d411", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/disk.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/disk.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spawn_blocking` [INFO] [stdout] --> src/disk.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::task::{self, spawn_blocking, JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/peer.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 128 | / loop { [INFO] [stdout] 129 | | let mut buffer = [0; 4]; [INFO] [stdout] 130 | | stream.read_exact(&mut buffer).await?; [INFO] [stdout] 131 | | [INFO] [stdout] ... | [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 254 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bitr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/disk.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | Err(e) => println!("Some err piece #{}", piece.index), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/peer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let a = &received_handshake[28..48].to_vec() == info_hash; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/peer.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let a = &received_handshake[48..].to_vec() == &self.peer_id; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `path` [INFO] [stdout] --> src/manager.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Manager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decrement_piece_availability` [INFO] [stdout] --> src/manager.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | fn decrement_piece_availability(&mut self, piece: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/manager.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 381 | state: PieceState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PiecePos` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:378:10 [INFO] [stdout] | [INFO] [stdout] 378 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Downloading` [INFO] [stdout] --> src/manager.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | Downloading, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PieceState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:395:10 [INFO] [stdout] | [INFO] [stdout] 395 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/manager.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DownloadingPiece` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:401:10 [INFO] [stdout] | [INFO] [stdout] 401 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Writing` [INFO] [stdout] --> src/manager.rs:434:5 [INFO] [stdout] | [INFO] [stdout] 434 | Writing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Finished` [INFO] [stdout] --> src/manager.rs:435:5 [INFO] [stdout] | [INFO] [stdout] 435 | Finished, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_state` [INFO] [stdout] --> src/peer.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | client_state: ChokeState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/peer.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_interest` [INFO] [stdout] --> src/peer.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | client_interest: InterestState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/peer.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `warning_message` [INFO] [stdout] --> src/tracker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | warning_message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tracker.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/disk.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/disk.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spawn_blocking` [INFO] [stdout] --> src/disk.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::task::{self, spawn_blocking, JoinHandle}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/peer.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 128 | / loop { [INFO] [stdout] 129 | | let mut buffer = [0; 4]; [INFO] [stdout] 130 | | stream.read_exact(&mut buffer).await?; [INFO] [stdout] 131 | | [INFO] [stdout] ... | [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 254 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/disk.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | Err(e) => println!("Some err piece #{}", piece.index), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/peer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let a = &received_handshake[28..48].to_vec() == info_hash; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/peer.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let a = &received_handshake[48..].to_vec() == &self.peer_id; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `path` [INFO] [stdout] --> src/manager.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Manager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `decrement_piece_availability` [INFO] [stdout] --> src/manager.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | fn decrement_piece_availability(&mut self, piece: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/manager.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 381 | state: PieceState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PiecePos` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:378:10 [INFO] [stdout] | [INFO] [stdout] 378 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Downloading` [INFO] [stdout] --> src/manager.rs:397:5 [INFO] [stdout] | [INFO] [stdout] 397 | Downloading, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PieceState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:395:10 [INFO] [stdout] | [INFO] [stdout] 395 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> src/manager.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | index: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DownloadingPiece` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:401:10 [INFO] [stdout] | [INFO] [stdout] 401 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Writing` [INFO] [stdout] --> src/manager.rs:434:5 [INFO] [stdout] | [INFO] [stdout] 434 | Writing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Finished` [INFO] [stdout] --> src/manager.rs:435:5 [INFO] [stdout] | [INFO] [stdout] 435 | Finished, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/manager.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 430 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_state` [INFO] [stdout] --> src/peer.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | client_state: ChokeState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/peer.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `client_interest` [INFO] [stdout] --> src/peer.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | client_interest: InterestState, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/peer.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `warning_message` [INFO] [stdout] --> src/tracker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | warning_message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/tracker.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.44s [INFO] running `Command { std: "docker" "inspect" "698031111d0c08eb60709f7da14c105c035852dc725765ae549932124ea9d411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "698031111d0c08eb60709f7da14c105c035852dc725765ae549932124ea9d411", kill_on_drop: false }` [INFO] [stdout] 698031111d0c08eb60709f7da14c105c035852dc725765ae549932124ea9d411 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eb32d79c4a55bc6df6560396a5b83e897528230e2af89c735791b3c08b93ee46 [INFO] running `Command { std: "docker" "start" "-a" "eb32d79c4a55bc6df6560396a5b83e897528230e2af89c735791b3c08b93ee46", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/disk.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/disk.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `spawn_blocking` [INFO] [stderr] --> src/disk.rs:5:25 [INFO] [stderr] | [INFO] [stderr] 5 | use tokio::task::{self, spawn_blocking, JoinHandle}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/peer.rs:254:9 [INFO] [stderr] | [INFO] [stderr] 128 | / loop { [INFO] [stderr] 129 | | let mut buffer = [0; 4]; [INFO] [stderr] 130 | | stream.read_exact(&mut buffer).await?; [INFO] [stderr] 131 | | [INFO] [stderr] ... | [INFO] [stderr] 252 | | } [INFO] [stderr] 253 | | } [INFO] [stderr] | |_________- any code following this expression is unreachable [INFO] [stderr] 254 | Ok(()) [INFO] [stderr] | ^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/disk.rs:47:25 [INFO] [stderr] | [INFO] [stderr] 47 | Err(e) => println!("Some err piece #{}", piece.index), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/peer.rs:122:13 [INFO] [stderr] | [INFO] [stderr] 122 | let a = &received_handshake[28..48].to_vec() == info_hash; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/peer.rs:125:13 [INFO] [stderr] | [INFO] [stderr] 125 | let a = &received_handshake[48..].to_vec() == &self.peer_id; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `path` [INFO] [stderr] --> src/manager.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | path: PathBuf, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Manager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/manager.rs:19:10 [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `decrement_piece_availability` [INFO] [stderr] --> src/manager.rs:193:8 [INFO] [stderr] | [INFO] [stderr] 193 | fn decrement_piece_availability(&mut self, piece: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `state` [INFO] [stderr] --> src/manager.rs:381:5 [INFO] [stderr] | [INFO] [stderr] 381 | state: PieceState, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PiecePos` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/manager.rs:378:10 [INFO] [stderr] | [INFO] [stderr] 378 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Downloading` [INFO] [stderr] --> src/manager.rs:397:5 [INFO] [stderr] | [INFO] [stderr] 397 | Downloading, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PieceState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/manager.rs:395:10 [INFO] [stderr] | [INFO] [stderr] 395 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `index` [INFO] [stderr] --> src/manager.rs:404:5 [INFO] [stderr] | [INFO] [stderr] 404 | index: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DownloadingPiece` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/manager.rs:401:10 [INFO] [stderr] | [INFO] [stderr] 401 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Writing` [INFO] [stderr] --> src/manager.rs:434:5 [INFO] [stderr] | [INFO] [stderr] 434 | Writing, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/manager.rs:430:10 [INFO] [stderr] | [INFO] [stderr] 430 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Finished` [INFO] [stderr] --> src/manager.rs:435:5 [INFO] [stderr] | [INFO] [stderr] 435 | Finished, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `BlockState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/manager.rs:430:10 [INFO] [stderr] | [INFO] [stderr] 430 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `client_state` [INFO] [stderr] --> src/peer.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | client_state: ChokeState, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/peer.rs:62:10 [INFO] [stderr] | [INFO] [stderr] 62 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `client_interest` [INFO] [stderr] --> src/peer.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | client_interest: InterestState, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Peer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/peer.rs:62:10 [INFO] [stderr] | [INFO] [stderr] 62 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `warning_message` [INFO] [stderr] --> src/tracker.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | warning_message: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TrackerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/tracker.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Debug, Deserialize)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `bitr` (lib) generated 17 warnings [INFO] [stderr] warning: `bitr` (lib test) generated 17 warnings (17 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/bitr-90fb340539a00480) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test message::tests::test_bitfield_msg ... ok [INFO] [stdout] test message::tests::test_have_msg ... ok [INFO] [stdout] test message::tests::test_interested_msg ... ok [INFO] [stdout] test message::tests::test_choke_msg ... ok [INFO] [stdout] test message::tests::test_not_interested_msg ... ok [INFO] [stdout] test message::tests::test_cancel_msg ... ok [INFO] [stdout] test message::tests::test_piece_msg ... ok [INFO] [stdout] test message::tests::test_request_msg ... ok [INFO] [stdout] test message::tests::test_unchoke_msg ... ok [INFO] [stdout] test utils::tests::test_num ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/bitr-e68ed31be5c86e3d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests bitr [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" "eb32d79c4a55bc6df6560396a5b83e897528230e2af89c735791b3c08b93ee46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb32d79c4a55bc6df6560396a5b83e897528230e2af89c735791b3c08b93ee46", kill_on_drop: false }` [INFO] [stdout] eb32d79c4a55bc6df6560396a5b83e897528230e2af89c735791b3c08b93ee46