[INFO] cloning repository https://github.com/0queue/boosttorrent2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0queue/boosttorrent2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0queue%2Fboosttorrent2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0queue%2Fboosttorrent2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ec8523deb50ee9f4a00664aab31a6df150ee7cfd [INFO] building 0queue/boosttorrent2 against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0queue%2Fboosttorrent2" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0queue/boosttorrent2 on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/0queue/boosttorrent2 [INFO] finished tweaking git repo https://github.com/0queue/boosttorrent2 [INFO] tweaked toml for git repo https://github.com/0queue/boosttorrent2 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/0queue/boosttorrent2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac9fda5bbda48a4af9e64b6a6b5ea43714593ef52d2c3867fa58b09e0e52b454 [INFO] running `Command { std: "docker" "start" "-a" "ac9fda5bbda48a4af9e64b6a6b5ea43714593ef52d2c3867fa58b09e0e52b454", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac9fda5bbda48a4af9e64b6a6b5ea43714593ef52d2c3867fa58b09e0e52b454", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac9fda5bbda48a4af9e64b6a6b5ea43714593ef52d2c3867fa58b09e0e52b454", kill_on_drop: false }` [INFO] [stdout] ac9fda5bbda48a4af9e64b6a6b5ea43714593ef52d2c3867fa58b09e0e52b454 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3753ba190827be3995940e2525061a2dd3b3f6d2a6e62a3a03093b82b8c6e5a2 [INFO] running `Command { std: "docker" "start" "-a" "3753ba190827be3995940e2525061a2dd3b3f6d2a6e62a3a03093b82b8c6e5a2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling futures v0.1.25 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling crossbeam-utils v0.5.0 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling string v0.1.1 [INFO] [stderr] Compiling indexmap v1.0.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling yaml-rust v0.3.5 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling case v0.1.0 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling bit-vec v0.5.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling maplit v1.0.1 [INFO] [stderr] Compiling replace_with v0.1.1 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling rand v0.4.3 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling bytes v0.4.11 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling tokio-executor v0.1.5 [INFO] [stderr] Compiling want v0.0.6 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-io v0.1.10 [INFO] [stderr] Compiling http v0.1.13 [INFO] [stderr] Compiling crossbeam-epoch v0.5.2 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling tokio-current-thread v0.1.3 [INFO] [stderr] Compiling tokio-timer v0.2.7 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling crossbeam-deque v0.6.1 [INFO] [stderr] Compiling tokio-reactor v0.1.6 [INFO] [stderr] Compiling derive-error v0.0.4 [INFO] [stderr] Compiling tokio-threadpool v0.1.8 [INFO] [stderr] Compiling tokio-uds v0.2.3 [INFO] [stderr] Compiling tokio-udp v0.1.2 [INFO] [stderr] Compiling tokio-tcp v0.1.2 [INFO] [stderr] Compiling h2 v0.1.13 [INFO] [stderr] Compiling simple_logger v1.0.1 [INFO] [stderr] Compiling tokio-fs v0.1.4 [INFO] [stderr] Compiling tokio v0.1.11 [INFO] [stderr] Compiling hyper v0.12.13 [INFO] [stderr] Compiling boosttorrent2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/boostencode/parse/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | '0'...'9' => parse_bstring(bytes), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/metainfo/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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: `Receiver` [INFO] [stdout] --> src/server/mod.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/server/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/server/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future`, `io::Error` [INFO] [stdout] --> src/server/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | io::Error, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | future, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Receiver` [INFO] [stdout] --> src/peer/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncSink` [INFO] [stdout] --> src/peer/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | AsyncSink, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `derive_error::Error` [INFO] [stdout] --> src/peer/message.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use derive_error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Failure` [INFO] [stdout] --> src/tracker/mod.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Failure(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/mod.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(Debug, PartialEq)] [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: `Stopped` [INFO] [stdout] --> src/tracker/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | Stopped, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Completed` [INFO] [stdout] --> src/tracker/mod.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel` [INFO] [stdout] --> src/tracker/mod.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn cancel(&mut self, left: u64, uploaded: u64, downloaded: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `finish` [INFO] [stdout] --> src/tracker/mod.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn finish(&mut self, left: u64, uploaded: u64, downloaded: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refresh` [INFO] [stdout] --> src/tracker/mod.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn refresh(&mut self, left: u64, uploaded: u64, downloaded: u64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/piece/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hasher` [INFO] [stdout] --> src/piece/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | hasher: Sha1, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/piece/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | hash: [u8; 20], [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sub_pieces` [INFO] [stdout] --> src/piece/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | sub_pieces: BitVec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/piece/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(piece_size: u32, piece_hash: [u8;20]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify` [INFO] [stdout] --> src/piece/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn verify(&mut self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uploaded_sender` [INFO] [stdout] --> src/peer/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | uploaded_sender: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `downloaded_sender` [INFO] [stdout] --> src/peer/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | downloaded_sender: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `finished_piece_sender` [INFO] [stdout] --> src/peer/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | finished_piece_sender: Sender<(Piece, Sender, BitVec)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peers_pieces` [INFO] [stdout] --> src/peer/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | peers_pieces: BitVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | write!(f, ", "); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | write!(f, "{}", val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | writeln!(f, "{{"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | writeln!(f, " {} => {}", str::from_utf8(k).unwrap_or("[...bytes...]"), v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 35s [INFO] running `Command { std: "docker" "inspect" "3753ba190827be3995940e2525061a2dd3b3f6d2a6e62a3a03093b82b8c6e5a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3753ba190827be3995940e2525061a2dd3b3f6d2a6e62a3a03093b82b8c6e5a2", kill_on_drop: false }` [INFO] [stdout] 3753ba190827be3995940e2525061a2dd3b3f6d2a6e62a3a03093b82b8c6e5a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f12abc2b7330eb26ce2f952e0212ac9b1abb967335090874c3af9a658f54e77 [INFO] running `Command { std: "docker" "start" "-a" "7f12abc2b7330eb26ce2f952e0212ac9b1abb967335090874c3af9a658f54e77", kill_on_drop: false }` [INFO] [stderr] Compiling boosttorrent2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/boostencode/parse/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | '0'...'9' => parse_bstring(bytes), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/metainfo/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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 imports: `Arc`, `RwLock` [INFO] [stdout] --> src/tracker/test.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | RwLock, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Receiver` [INFO] [stdout] --> src/server/mod.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use futures::sync::mpsc::{channel, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/server/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/server/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future`, `io::Error` [INFO] [stdout] --> src/server/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | io::Error, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | future, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Receiver` [INFO] [stdout] --> src/peer/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Receiver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncSink` [INFO] [stdout] --> src/peer/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | AsyncSink, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `derive_error::Error` [INFO] [stdout] --> src/peer/message.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use derive_error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Failure` [INFO] [stdout] --> src/tracker/mod.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Failure(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/mod.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | #[derive(Debug, PartialEq)] [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: `Stopped` [INFO] [stdout] --> src/tracker/mod.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | Stopped, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Completed` [INFO] [stdout] --> src/tracker/mod.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cancel` [INFO] [stdout] --> src/tracker/mod.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 232 | pub fn cancel(&mut self, left: u64, uploaded: u64, downloaded: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `finish` [INFO] [stdout] --> src/tracker/mod.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn finish(&mut self, left: u64, uploaded: u64, downloaded: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refresh` [INFO] [stdout] --> src/tracker/mod.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn refresh(&mut self, left: u64, uploaded: u64, downloaded: u64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/piece/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | data: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hasher` [INFO] [stdout] --> src/piece/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | hasher: Sha1, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/piece/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | hash: [u8; 20], [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sub_pieces` [INFO] [stdout] --> src/piece/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | sub_pieces: BitVec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/piece/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(piece_size: u32, piece_hash: [u8;20]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify` [INFO] [stdout] --> src/piece/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn verify(&mut self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uploaded_sender` [INFO] [stdout] --> src/peer/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | uploaded_sender: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `downloaded_sender` [INFO] [stdout] --> src/peer/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | downloaded_sender: Sender, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `finished_piece_sender` [INFO] [stdout] --> src/peer/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | finished_piece_sender: Sender<(Piece, Sender, BitVec)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peers_pieces` [INFO] [stdout] --> src/peer/mod.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | peers_pieces: BitVec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | write!(f, ", "); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:140:21 [INFO] [stdout] | [INFO] [stdout] 140 | write!(f, "{}", val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | writeln!(f, "{{"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/boostencode/mod.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | writeln!(f, " {} => {}", str::from_utf8(k).unwrap_or("[...bytes...]"), v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.73s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/boosttorrent2-5ed46a35e99fe1b8) [INFO] running `Command { std: "docker" "inspect" "7f12abc2b7330eb26ce2f952e0212ac9b1abb967335090874c3af9a658f54e77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f12abc2b7330eb26ce2f952e0212ac9b1abb967335090874c3af9a658f54e77", kill_on_drop: false }` [INFO] [stdout] 7f12abc2b7330eb26ce2f952e0212ac9b1abb967335090874c3af9a658f54e77