[INFO] cloning repository https://github.com/Titoutee/Rottorrent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Titoutee/Rottorrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTitoutee%2FRottorrent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTitoutee%2FRottorrent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d5cb6ec30bf1c049b33d32172a46b81bf7c2cc68 [INFO] checking Titoutee/Rottorrent against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTitoutee%2FRottorrent" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Titoutee/Rottorrent [INFO] finished tweaking git repo https://github.com/Titoutee/Rottorrent [INFO] tweaked toml for git repo https://github.com/Titoutee/Rottorrent written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Titoutee/Rottorrent on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Titoutee/Rottorrent 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b87c110c42eb4a8a1a01808aaf7ae104a35fb1853a9bef5ceba44feb03fb4523 [INFO] running `Command { std: "docker" "start" "-a" "b87c110c42eb4a8a1a01808aaf7ae104a35fb1853a9bef5ceba44feb03fb4523", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b87c110c42eb4a8a1a01808aaf7ae104a35fb1853a9bef5ceba44feb03fb4523", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b87c110c42eb4a8a1a01808aaf7ae104a35fb1853a9bef5ceba44feb03fb4523", kill_on_drop: false }` [INFO] [stdout] b87c110c42eb4a8a1a01808aaf7ae104a35fb1853a9bef5ceba44feb03fb4523 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fac26942fa170a830cadf619ff1b681143c3c9bf08eb482e51b28ded969f1bf [INFO] running `Command { std: "docker" "start" "-a" "5fac26942fa170a830cadf619ff1b681143c3c9bf08eb482e51b28ded969f1bf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Compiling rustix v0.38.8 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling openssl v0.10.56 [INFO] [stderr] Checking linux-raw-sys v0.4.5 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Checking anstyle-parse v0.2.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Checking anstyle v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking url v2.4.0 [INFO] [stderr] Checking encoding_rs v0.8.32 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling cc v1.0.82 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking base64 v0.21.2 [INFO] [stderr] Checking ipnet v2.8.0 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking sha1 v0.10.5 [INFO] [stderr] Compiling openssl-sys v0.9.91 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking tempfile v3.7.1 [INFO] [stderr] Checking anstream v0.3.2 [INFO] [stderr] Checking clap_builder v4.3.22 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Checking thiserror v1.0.38 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling clap_derive v4.3.12 [INFO] [stderr] Compiling strum_macros v0.26.1 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking clap v4.3.22 [INFO] [stderr] Checking serde v1.0.195 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_bytes v0.11.12 [INFO] [stderr] Checking serde_bencode v0.2.3 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.18 [INFO] [stderr] Checking rottorrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `at` is never used [INFO] [stdout] --> src/hash.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Hashes { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 9 | pub fn at(&self, index: usize) -> Option<&[u8; 20]> { [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 `index`, `begin`, and `length` are never read [INFO] [stdout] --> src/net.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 52 | index: [u8; 4], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | begin: [u8; 4], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | length: [u8; 4], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index`, `begin`, and `length` are never used [INFO] [stdout] --> src/net.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Request { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn index(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn begin(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn length(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `begin` is never read [INFO] [stdout] --> src/net.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct Piece { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 86 | index: [u8; 4], [INFO] [stdout] 87 | begin: [u8; 4], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `begin` is never used [INFO] [stdout] --> src/net.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl Piece { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn begin(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 20], Infallible> [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | / hasher [INFO] [stdout] 69 | | .finalize() [INFO] [stdout] 70 | | .try_into() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 20], Infallible> [INFO] [stdout] --> src/main.rs:325:34 [INFO] [stdout] | [INFO] [stdout] 325 | let hash: [u8; 20] = hasher [INFO] [stdout] | __________________________________^ [INFO] [stdout] 326 | | .finalize() [INFO] [stdout] 327 | | .try_into() [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/message.rs:114:42 [INFO] [stdout] | [INFO] [stdout] 114 | let len_slice = u32::to_le_bytes((len as u32).try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rottorrent` (bin "rottorrent" test) due to 3 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `at` is never used [INFO] [stdout] --> src/hash.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Hashes { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 9 | pub fn at(&self, index: usize) -> Option<&[u8; 20]> { [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 `index`, `begin`, and `length` are never read [INFO] [stdout] --> src/net.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 52 | index: [u8; 4], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | begin: [u8; 4], [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | length: [u8; 4], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `index`, `begin`, and `length` are never used [INFO] [stdout] --> src/net.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Request { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn index(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn begin(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn length(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `begin` is never read [INFO] [stdout] --> src/net.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub struct Piece { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 86 | index: [u8; 4], [INFO] [stdout] 87 | begin: [u8; 4], [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `begin` is never used [INFO] [stdout] --> src/net.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl Piece { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn begin(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 20], Infallible> [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | / hasher [INFO] [stdout] 69 | | .finalize() [INFO] [stdout] 70 | | .try_into() [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 20], Infallible> [INFO] [stdout] --> src/main.rs:325:34 [INFO] [stdout] | [INFO] [stdout] 325 | let hash: [u8; 20] = hasher [INFO] [stdout] | __________________________________^ [INFO] [stdout] 326 | | .finalize() [INFO] [stdout] 327 | | .try_into() [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/message.rs:114:42 [INFO] [stdout] | [INFO] [stdout] 114 | let len_slice = u32::to_le_bytes((len as u32).try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rottorrent` (bin "rottorrent") due to 3 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5fac26942fa170a830cadf619ff1b681143c3c9bf08eb482e51b28ded969f1bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fac26942fa170a830cadf619ff1b681143c3c9bf08eb482e51b28ded969f1bf", kill_on_drop: false }` [INFO] [stdout] 5fac26942fa170a830cadf619ff1b681143c3c9bf08eb482e51b28ded969f1bf