[INFO] cloning repository https://github.com/rodrigues-daniel/rust-p2p
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rodrigues-daniel/rust-p2p" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frodrigues-daniel%2Frust-p2p", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frodrigues-daniel%2Frust-p2p'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d459b5969aec1d681b0884c9102aee74d8160db9
[INFO] checking rodrigues-daniel/rust-p2p against 615014f15745532730b9ce7a1d9309f8b4756f93 for pr-160491
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frodrigues-daniel%2Frust-p2p" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rodrigues-daniel/rust-p2p
[INFO] finished tweaking git repo https://github.com/rodrigues-daniel/rust-p2p
[INFO] tweaked toml for git repo https://github.com/rodrigues-daniel/rust-p2p written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rodrigues-daniel/rust-p2p on toolchain 615014f15745532730b9ce7a1d9309f8b4756f93
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+615014f15745532730b9ce7a1d9309f8b4756f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rodrigues-daniel/rust-p2p 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" "+615014f15745532730b9ce7a1d9309f8b4756f93" "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.6.0
[INFO] [stderr]   Downloaded io-uring v0.7.10
[INFO] [stderr]   Downloaded tokio v1.47.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51
[INFO] running `Command { std: "docker" "start" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51" "/opt/rustwide/cargo-home/bin/cargo" "+615014f15745532730b9ce7a1d9309f8b4756f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51" "/opt/rustwide/cargo-home/bin/cargo" "+615014f15745532730b9ce7a1d9309f8b4756f93" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling unicode-ident v1.0.19
[INFO] [stderr]    Compiling typenum v1.19.0
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling find-msvc-tools v0.1.4
[INFO] [stderr]     Checking tracing-core v0.1.34
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]     Checking clap_lex v0.7.5
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking mio v1.0.4
[INFO] [stderr]     Checking socket2 v0.6.0
[INFO] [stderr]     Checking thread_local v1.1.9
[INFO] [stderr]     Checking nu-ansi-term v0.50.3
[INFO] [stderr]     Checking memchr v2.7.6
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]    Compiling cc v1.2.41
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking clap_builder v4.5.48
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling quote v1.0.41
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling blake3 v1.8.2
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling clap_derive v4.5.47
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]     Checking tokio v1.47.1
[INFO] [stderr]     Checking clap v4.5.48
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking rust-p2p v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/models.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Digest` and `Sha256`
[INFO] [stdout]  --> src/models.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use sha2::{Sha256, Digest};
[INFO] [stdout]   |            ^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FileInfo`
[INFO] [stdout]  --> src/peer_client.rs:3:36
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::models::{Message, Peer, FileInfo};
[INFO] [stdout]   |                                    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/models.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Digest` and `Sha256`
[INFO] [stdout]  --> src/models.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use sha2::{Sha256, Digest};
[INFO] [stdout]   |            ^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `FileInfo`
[INFO] [stdout]  --> src/peer_client.rs:3:36
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::models::{Message, Peer, FileInfo};
[INFO] [stdout]   |                                    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/peer_server.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |         addr: SocketAddr,
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_hash`
[INFO] [stdout]   --> src/peer_server.rs:86:37
[INFO] [stdout]    |
[INFO] [stdout] 86 |             Message::RequestChunk { file_hash, chunk_index } => {
[INFO] [stdout]    |                                     ^^^^^^^^^ help: try ignoring the field: `file_hash: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `chunk_index`
[INFO] [stdout]   --> src/peer_server.rs:86:48
[INFO] [stdout]    |
[INFO] [stdout] 86 |             Message::RequestChunk { file_hash, chunk_index } => {
[INFO] [stdout]    |                                                ^^^^^^^^^^^ help: try ignoring the field: `chunk_index: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/peer_server.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |         addr: SocketAddr,
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_addr`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_hash`
[INFO] [stdout]   --> src/peer_server.rs:86:37
[INFO] [stdout]    |
[INFO] [stdout] 86 |             Message::RequestChunk { file_hash, chunk_index } => {
[INFO] [stdout]    |                                     ^^^^^^^^^ help: try ignoring the field: `file_hash: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `chunk_index`
[INFO] [stdout]   --> src/peer_server.rs:86:48
[INFO] [stdout]    |
[INFO] [stdout] 86 |             Message::RequestChunk { file_hash, chunk_index } => {
[INFO] [stdout]    |                                                ^^^^^^^^^^^ help: try ignoring the field: `chunk_index: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/main.rs:50:33
[INFO] [stdout]    |
[INFO] [stdout] 50 |         Commands::Share { path, addr } => {
[INFO] [stdout]    |                                 ^^^^ help: try ignoring the field: `addr: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileManager` is never constructed
[INFO] [stdout]  --> src/file_manager.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct FileManager;
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `CHUNK_SIZE`, `hash_file`, `split_file`, and `save_chunk` are never used
[INFO] [stdout]   --> src/file_manager.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl FileManager {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 10 |     const CHUNK_SIZE: usize = 64 * 1024; // 64KB
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 11 |     
[INFO] [stdout] 12 |     pub fn hash_file(path: &Path) -> anyhow::Result<String> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn split_file(path: &Path) -> anyhow::Result<FileInfo> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn save_chunk(file_hash: &str, chunk_index: u32, data: &[u8]) -> anyhow::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `shared_files` is never read
[INFO] [stdout]   --> src/peer_server.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct PeerState {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 12 |     pub known_peers: HashMap<SocketAddr, Peer>,
[INFO] [stdout] 13 |     pub shared_files: Vec<FileInfo>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `download_chunk` is never used
[INFO] [stdout]   --> src/peer_client.rs:43:18
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl PeerClient {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub async fn download_chunk(peer_addr: SocketAddr, file_hash: &str, chunk_index: u32) -> anyhow::Result<Vec<u8>> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `addr`
[INFO] [stdout]   --> src/main.rs:50:33
[INFO] [stdout]    |
[INFO] [stdout] 50 |         Commands::Share { path, addr } => {
[INFO] [stdout]    |                                 ^^^^ help: try ignoring the field: `addr: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileManager` is never constructed
[INFO] [stdout]  --> src/file_manager.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct FileManager;
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `CHUNK_SIZE`, `hash_file`, `split_file`, and `save_chunk` are never used
[INFO] [stdout]   --> src/file_manager.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl FileManager {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 10 |     const CHUNK_SIZE: usize = 64 * 1024; // 64KB
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 11 |     
[INFO] [stdout] 12 |     pub fn hash_file(path: &Path) -> anyhow::Result<String> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn split_file(path: &Path) -> anyhow::Result<FileInfo> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn save_chunk(file_hash: &str, chunk_index: u32, data: &[u8]) -> anyhow::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `shared_files` is never read
[INFO] [stdout]   --> src/peer_server.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct PeerState {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 12 |     pub known_peers: HashMap<SocketAddr, Peer>,
[INFO] [stdout] 13 |     pub shared_files: Vec<FileInfo>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `download_chunk` is never used
[INFO] [stdout]   --> src/peer_client.rs:43:18
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl PeerClient {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub async fn download_chunk(peer_addr: SocketAddr, file_hash: &str, chunk_index: u32) -> anyhow::Result<Vec<u8>> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.25s
[INFO] running `Command { std: "docker" "inspect" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51", kill_on_drop: false }`
[INFO] [stdout] affeaaaaf765b3cecd4e629259bf5c60f1946f0df0cce7e47af13d9907973a51
