[INFO] cloning repository https://github.com/ilyes-ced/torrent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ilyes-ced/torrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Filyes-ced%2Ftorrent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Filyes-ced%2Ftorrent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f774410b9da5f0b1672acb5298a3419e1ee39658 [INFO] checking ilyes-ced/torrent 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%2Filyes-ced%2Ftorrent" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ilyes-ced/torrent [INFO] finished tweaking git repo https://github.com/ilyes-ced/torrent [INFO] tweaked toml for git repo https://github.com/ilyes-ced/torrent written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ilyes-ced/torrent 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/ilyes-ced/torrent 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 6a0ba5e2bce06d5e9051e95287173f770febc9a3af3482aae49d059c06b31228 [INFO] running `Command { std: "docker" "start" "-a" "6a0ba5e2bce06d5e9051e95287173f770febc9a3af3482aae49d059c06b31228", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a0ba5e2bce06d5e9051e95287173f770febc9a3af3482aae49d059c06b31228", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a0ba5e2bce06d5e9051e95287173f770febc9a3af3482aae49d059c06b31228", kill_on_drop: false }` [INFO] [stdout] 6a0ba5e2bce06d5e9051e95287173f770febc9a3af3482aae49d059c06b31228 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] bedf2d152d4c67e080973a5dd39e3786b20a6562b7c43fc4c3a1428ae62d4fc3 [INFO] running `Command { std: "docker" "start" "-a" "bedf2d152d4c67e080973a5dd39e3786b20a6562b7c43fc4c3a1428ae62d4fc3", kill_on_drop: false }` [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.6 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling zerocopy v0.8.14 [INFO] [stderr] Checking signal-hook v0.3.18 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling instability v0.3.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking rustls-pki-types v1.10.1 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking rand_core v0.9.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking crossterm v0.29.0 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking clap v4.5.31 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking serde v1.0.216 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.4.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v1.5.2 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.11 [INFO] [stderr] Checking torrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `LogType`, `Source`, and `self` [INFO] [stdout] --> src/app.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | torrent::{self, FileInfo, Torrent}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | tracker::Peer, [INFO] [stdout] 8 | ui::{Log, LogType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | utils::readable_size, [INFO] [stdout] 10 | Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::log::critical` [INFO] [stdout] --> src/download/download.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::log::critical; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Critical`, `Debug`, `Error`, `EventLog`, `Info`, and `Warning` [INFO] [stdout] --> src/log.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | AppEvent::{self, EventLog}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Log, [INFO] [stdout] 6 | LogType::{self, Critical, Debug, Error, Info, Warning}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/log.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::prelude::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Source` [INFO] [stdout] --> src/ui/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::Source; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix` [INFO] [stdout] --> src/ui/download.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Prefix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Paragraph` [INFO] [stdout] --> src/ui/download.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | widgets::{Block, List, ListItem, Paragraph}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorderType`, `Cell`, `Color`, `HighlightSpacing`, `Layout`, `Margin`, `Modifier`, `Paragraph`, `ScrollbarOrientation`, `ScrollbarState`, `Scrollbar`, `Span`, `Text`, `Wrap`, `palette::tailwind`, and `self` [INFO] [stdout] --> src/ui/files.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | layout::{Constraint, Layout, Margin, Rect}, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] 3 | style::{palette::tailwind, Color, Modifier, Style, Stylize}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | text::{self, Span, Text}, [INFO] [stdout] | ^^^^ ^^^^ ^^^^ [INFO] [stdout] 5 | widgets::{ [INFO] [stdout] 6 | Block, BorderType, Cell, HighlightSpacing, Paragraph, Row, Scrollbar, ScrollbarOrientation, [INFO] [stdout] | ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | ScrollbarState, Table, TableState, Wrap, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Layout` [INFO] [stdout] --> src/ui/info.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | layout::{Constraint, Layout, Rect}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Constraint::Percentage` [INFO] [stdout] --> src/ui/info.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use Constraint::Percentage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppEvent::EventLog`, `Error`, and `Info` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | AppEvent::EventLog, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | LogType::{Error, Info}, [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LogType`, `Source`, and `self` [INFO] [stdout] --> src/app.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | torrent::{self, FileInfo, Torrent}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | tracker::Peer, [INFO] [stdout] 8 | ui::{Log, LogType}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | utils::readable_size, [INFO] [stdout] 10 | Source, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::log::critical` [INFO] [stdout] --> src/download/download.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::log::critical; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Critical`, `Debug`, `Error`, `EventLog`, `Info`, and `Warning` [INFO] [stdout] --> src/log.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | AppEvent::{self, EventLog}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | Log, [INFO] [stdout] 6 | LogType::{self, Critical, Debug, Error, Info, Warning}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/log.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::prelude::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Source` [INFO] [stdout] --> src/ui/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::Source; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix` [INFO] [stdout] --> src/ui/download.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Prefix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Paragraph` [INFO] [stdout] --> src/ui/download.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | widgets::{Block, List, ListItem, Paragraph}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorderType`, `Cell`, `Color`, `HighlightSpacing`, `Layout`, `Margin`, `Modifier`, `Paragraph`, `ScrollbarOrientation`, `ScrollbarState`, `Scrollbar`, `Span`, `Text`, `Wrap`, `palette::tailwind`, and `self` [INFO] [stdout] --> src/ui/files.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | layout::{Constraint, Layout, Margin, Rect}, [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] 3 | style::{palette::tailwind, Color, Modifier, Style, Stylize}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | text::{self, Span, Text}, [INFO] [stdout] | ^^^^ ^^^^ ^^^^ [INFO] [stdout] 5 | widgets::{ [INFO] [stdout] 6 | Block, BorderType, Cell, HighlightSpacing, Paragraph, Row, Scrollbar, ScrollbarOrientation, [INFO] [stdout] | ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | ScrollbarState, Table, TableState, Wrap, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Layout` [INFO] [stdout] --> src/ui/info.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | layout::{Constraint, Layout, Rect}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Constraint::Percentage` [INFO] [stdout] --> src/ui/info.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use Constraint::Percentage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppEvent::EventLog`, `Error`, and `Info` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | AppEvent::EventLog, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | LogType::{Error, Info}, [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/app.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn add_peer(&mut self, peer: Peer) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/app.rs:165:35 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn remove_peer(&mut self, peer: Peer) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/app.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn add_piece_downloaded(&mut self, index: u32, peer: Option, size: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/app.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn add_peer(&mut self, peer: Peer) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> src/app.rs:165:35 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn remove_peer(&mut self, peer: Peer) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/app.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn add_piece_downloaded(&mut self, index: u32, peer: Option, size: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bencode/encoder.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | _ => return Err(String::from("this should not happen")), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/bencode/encoder.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 17 | JsonObj::Number(number) => Ok(format!("i{}e", number).as_bytes().to_vec()), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 18 | // also add the 4:xxxxe [INFO] [stdout] 19 | JsonObj::String(string) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 40 | JsonObj::List(list) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 50 | JsonObj::Dict(dict) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 66 | _ => return Err(String::from("this should not happen")), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bencode/encoder.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | _ => return Err(String::from("this should not happen")), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/bencode/encoder.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 17 | JsonObj::Number(number) => Ok(format!("i{}e", number).as_bytes().to_vec()), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 18 | // also add the 4:xxxxe [INFO] [stdout] 19 | JsonObj::String(string) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 40 | JsonObj::List(list) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 50 | JsonObj::Dict(dict) => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 66 | _ => return Err(String::from("this should not happen")), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/ui/files.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn draw_files_tab(frame: &mut Frame, main_area: Rect, app: &mut App) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hour` [INFO] [stdout] --> src/ui/peers.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | .map(|(hour, (peer, bytes))| horizontal_bar(peer, bytes)) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hour` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/ui/files.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn draw_files_tab(frame: &mut Frame, main_area: Rect, app: &mut App) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse_event` [INFO] [stdout] --> src/ui/mod.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | Event::Mouse(mouse_event) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mouse_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hour` [INFO] [stdout] --> src/ui/peers.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | .map(|(hour, (peer, bytes))| horizontal_bar(peer, bytes)) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hour` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `titles` [INFO] [stdout] --> src/ui/mod.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let titles: Vec = vec!["Download", "Peers", "Files"] [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_titles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mouse_event` [INFO] [stdout] --> src/ui/mod.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | Event::Mouse(mouse_event) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mouse_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `titles` [INFO] [stdout] --> src/ui/mod.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let titles: Vec = vec!["Download", "Peers", "Files"] [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_titles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `magnet_data` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let magnet_data = Magnet::new(&args.source.magnet_url.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_magnet_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_peers_from_dht` is never used [INFO] [stdout] --> src/main.rs:142:10 [INFO] [stdout] | [INFO] [stdout] 142 | async fn get_peers_from_dht() -> Result<(), ()> { [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 `torrent_type`, `torrent_type_value`, and `files` are never read [INFO] [stdout] --> src/app.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct App<'a> { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | pub torrent_type: (), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 114 | // path of .torrent or magnet url [INFO] [stdout] 115 | pub torrent_type_value: (), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | [INFO] [stdout] 117 | pub files: FileInfo, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on_key` is never used [INFO] [stdout] --> src/app.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl<'a> App<'a> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn on_key(&mut self, c: char) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `magnet_data` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let magnet_data = Magnet::new(&args.source.magnet_url.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_magnet_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `JsonObj` is never used [INFO] [stdout] --> src/bencode/encoder.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum JsonObj { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode` is never used [INFO] [stdout] --> src/bencode/encoder.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn encode(val: JsonObj) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `critical` is never used [INFO] [stdout] --> src/log.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn critical(msg: String, tx_tui: &Sender) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Critical` is never constructed [INFO] [stdout] --> src/ui/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum LogType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RemovePeer` is never constructed [INFO] [stdout] --> src/ui/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum AppEvent { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 42 | NewPeer(Peer), [INFO] [stdout] 43 | RemovePeer(Peer), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_transaction_id` is never used [INFO] [stdout] --> src/utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new_transaction_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_str_to_binary` is never used [INFO] [stdout] --> src/utils.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn hex_str_to_binary(hex: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor_distance` is never used [INFO] [stdout] --> src/utils.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn xor_distance(node_id1: [u8; 20], node_id2: [u8; 20]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_leading_zeros` is never used [INFO] [stdout] --> src/utils.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn count_leading_zeros(distance: [u8; 20]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/io/reader.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | ... read_piece(start, mapping.piece_write_len.try_into().unwrap(), &file) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_peers_from_dht` is never used [INFO] [stdout] --> src/main.rs:142:10 [INFO] [stdout] | [INFO] [stdout] 142 | async fn get_peers_from_dht() -> Result<(), ()> { [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 `torrent_type`, `torrent_type_value`, and `files` are never read [INFO] [stdout] --> src/app.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct App<'a> { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 113 | pub torrent_type: (), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 114 | // path of .torrent or magnet url [INFO] [stdout] 115 | pub torrent_type_value: (), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 116 | [INFO] [stdout] 117 | pub files: FileInfo, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on_key` is never used [INFO] [stdout] --> src/app.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl<'a> App<'a> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn on_key(&mut self, c: char) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `JsonObj` is never used [INFO] [stdout] --> src/bencode/encoder.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum JsonObj { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode` is never used [INFO] [stdout] --> src/bencode/encoder.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn encode(val: JsonObj) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `critical` is never used [INFO] [stdout] --> src/log.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn critical(msg: String, tx_tui: &Sender) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Critical` is never constructed [INFO] [stdout] --> src/ui/mod.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum LogType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 32 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `RemovePeer` is never constructed [INFO] [stdout] --> src/ui/mod.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum AppEvent { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 42 | NewPeer(Peer), [INFO] [stdout] 43 | RemovePeer(Peer), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_transaction_id` is never used [INFO] [stdout] --> src/utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new_transaction_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_str_to_binary` is never used [INFO] [stdout] --> src/utils.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn hex_str_to_binary(hex: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xor_distance` is never used [INFO] [stdout] --> src/utils.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn xor_distance(node_id1: [u8; 20], node_id2: [u8; 20]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `torrent` (bin "torrent") due to 1 previous error; 32 warnings emitted [INFO] [stdout] warning: function `count_leading_zeros` is never used [INFO] [stdout] --> src/utils.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn count_leading_zeros(distance: [u8; 20]) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/io/reader.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | ... read_piece(start, mapping.piece_write_len.try_into().unwrap(), &file) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `torrent` (bin "torrent" test) due to 1 previous error; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bedf2d152d4c67e080973a5dd39e3786b20a6562b7c43fc4c3a1428ae62d4fc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bedf2d152d4c67e080973a5dd39e3786b20a6562b7c43fc4c3a1428ae62d4fc3", kill_on_drop: false }` [INFO] [stdout] bedf2d152d4c67e080973a5dd39e3786b20a6562b7c43fc4c3a1428ae62d4fc3