[INFO] cloning repository https://github.com/Kerrryu/LearnRustTUI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kerrryu/LearnRustTUI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKerrryu%2FLearnRustTUI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKerrryu%2FLearnRustTUI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7cd89ac0862a6c710c1e86f083ac80584a03be2a [INFO] checking Kerrryu/LearnRustTUI against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKerrryu%2FLearnRustTUI" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Kerrryu/LearnRustTUI [INFO] finished tweaking git repo https://github.com/Kerrryu/LearnRustTUI [INFO] tweaked toml for git repo https://github.com/Kerrryu/LearnRustTUI written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kerrryu/LearnRustTUI on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kerrryu/LearnRustTUI 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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking Kerrryu/LearnRustTUI against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKerrryu%2FLearnRustTUI" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Kerrryu/LearnRustTUI [INFO] finished tweaking git repo https://github.com/Kerrryu/LearnRustTUI [INFO] tweaked toml for git repo https://github.com/Kerrryu/LearnRustTUI written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kerrryu/LearnRustTUI on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kerrryu/LearnRustTUI 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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "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 insta v1.43.2 [INFO] [stderr] Downloaded ratatui v0.26.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d56987f41e21b9eb81bba5202e3196e5ec1e4593fcf4df9136333088b19b11f4 [INFO] running `Command { std: "docker" "start" "-a" "d56987f41e21b9eb81bba5202e3196e5ec1e4593fcf4df9136333088b19b11f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d56987f41e21b9eb81bba5202e3196e5ec1e4593fcf4df9136333088b19b11f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d56987f41e21b9eb81bba5202e3196e5ec1e4593fcf4df9136333088b19b11f4", kill_on_drop: false }` [INFO] [stdout] d56987f41e21b9eb81bba5202e3196e5ec1e4593fcf4df9136333088b19b11f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4bd52c853e77886fed4e25652f75980bc674692c62ad8431f997e939fb83a032 [INFO] running `Command { std: "docker" "start" "-a" "4bd52c853e77886fed4e25652f75980bc674692c62ad8431f997e939fb83a032", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking unarray v0.1.4 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking wait-timeout v0.2.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Checking ex12_db_sqlx v0.1.0 (/opt/rustwide/workdir/exercises/12-db-sqlx) [INFO] [stderr] Checking ex04_traits_generics v0.1.0 (/opt/rustwide/workdir/exercises/04-traits-generics) [INFO] [stderr] Checking ex10_cli_app v0.1.0 (/opt/rustwide/workdir/exercises/10-cli-app) [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> exercises/04-traits-generics/src/lib.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn describe_all(items: &[T]) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex02_ownership_borrowing v0.1.0 (/opt/rustwide/workdir/exercises/02-ownership-borrowing) [INFO] [stdout] warning: unused variable: `notes` [INFO] [stdout] --> exercises/12-db-sqlx/src/lib.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn in_memory_insert(notes: &mut Vec, title: &str) -> i64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_notes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> exercises/12-db-sqlx/src/lib.rs:4:48 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn in_memory_insert(notes: &mut Vec, title: &str) -> i64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex06_collections_iterators v0.1.0 (/opt/rustwide/workdir/exercises/06-collections-iterators) [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> exercises/10-cli-app/src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn grep_in_memory(query: &str, haystack: &str) -> Vec<(usize, String)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `haystack` [INFO] [stdout] --> exercises/10-cli-app/src/lib.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn grep_in_memory(query: &str, haystack: &str) -> Vec<(usize, String)> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_haystack` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex09_async v0.1.0 (/opt/rustwide/workdir/exercises/09-async) [INFO] [stderr] Checking ex11_web_axum v0.1.0 (/opt/rustwide/workdir/exercises/11-web-axum) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn retain_even(v: &mut Vec) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn first_word<'a>(s: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn add_suffix(name: &mut String, suffix: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `suffix` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn add_suffix(name: &mut String, suffix: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_suffix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> exercises/06-collections-iterators/src/lib.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn word_freq(input: &str) -> HashMap { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/06-collections-iterators/src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn dedup_sorted(mut v: Vec) -> Vec { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/06-collections-iterators/src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn dedup_sorted(mut v: Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap_builder v4.5.47 [INFO] [stderr] Checking ex16_performance_profiling v0.1.0 (/opt/rustwide/workdir/exercises/16-performance-profiling) [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> exercises/09-async/src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | pub async fn double_after(ms: u64, n: i32) -> i32 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex15_macros_proc v0.1.0 (/opt/rustwide/workdir/exercises/15-macros-proc) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> exercises/09-async/src/lib.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | pub async fn double_after(ms: u64, n: i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex08_concurrency_threads v0.1.0 (/opt/rustwide/workdir/exercises/08-concurrency-threads) [INFO] [stderr] Checking ex07_lifetimes v0.1.0 (/opt/rustwide/workdir/exercises/07-lifetimes) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/16-performance-profiling/src/lib.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn sum_squares(v: &[u64]) -> u64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex01_basics v0.1.0 (/opt/rustwide/workdir/exercises/01-basics) [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> exercises/08-concurrency-threads/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ex03_structs_enums v0.1.0 (/opt/rustwide/workdir/exercises/03-structs-enums-patterns) [INFO] [stderr] Checking ex14_ffi_unsafe v0.1.0 (/opt/rustwide/workdir/exercises/14-ffi-unsafe) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/08-concurrency-threads/src/lib.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parallel_sum(v: &[i64], chunks: usize) -> i64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunks` [INFO] [stdout] --> exercises/08-concurrency-threads/src/lib.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parallel_sum(v: &[i64], chunks: usize) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_chunks` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking ex13_testing_benchmarking v0.1.0 (/opt/rustwide/workdir/exercises/13-testing-benchmarking) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> exercises/07-lifetimes/src/lib.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn longest<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> exercises/07-lifetimes/src/lib.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn longest<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> exercises/01-basics/src/lib.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn sum_odds(nums: &[i64]) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> exercises/01-basics/src/lib.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn fizzbuzz(n: u32) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> exercises/01-basics/src/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_u32(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> exercises/13-testing-benchmarking/src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn hot_path(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> exercises/14-ffi-unsafe/src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe fn add_ptr(a: *const i32, b: *const i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> exercises/14-ffi-unsafe/src/lib.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe fn add_ptr(a: *const i32, b: *const i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking indexmap v2.11.1 [INFO] [stderr] Checking capstone_cli v0.1.0 (/opt/rustwide/workdir/exercises/20-capstone/cli) [INFO] [stderr] Checking capstone_service v0.1.0 (/opt/rustwide/workdir/exercises/20-capstone/service) [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> exercises/08-concurrency-threads/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread; [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 variable: `v` [INFO] [stdout] --> exercises/08-concurrency-threads/src/lib.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parallel_sum(v: &[i64], chunks: usize) -> i64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunks` [INFO] [stdout] --> exercises/08-concurrency-threads/src/lib.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn parallel_sum(v: &[i64], chunks: usize) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_chunks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn retain_even(v: &mut Vec) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn first_word<'a>(s: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn add_suffix(name: &mut String, suffix: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `suffix` [INFO] [stdout] --> exercises/02-ownership-borrowing/src/lib.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn add_suffix(name: &mut String, suffix: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_suffix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> exercises/07-lifetimes/src/lib.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn longest<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> exercises/07-lifetimes/src/lib.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn longest<'a>(a: &'a str, b: &'a str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `items` [INFO] [stdout] --> exercises/04-traits-generics/src/lib.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn describe_all(items: &[T]) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_items` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> exercises/14-ffi-unsafe/src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe fn add_ptr(a: *const i32, b: *const i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> exercises/14-ffi-unsafe/src/lib.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe fn add_ptr(a: *const i32, b: *const i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> exercises/10-cli-app/src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn grep_in_memory(query: &str, haystack: &str) -> Vec<(usize, String)> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `haystack` [INFO] [stdout] --> exercises/10-cli-app/src/lib.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn grep_in_memory(query: &str, haystack: &str) -> Vec<(usize, String)> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_haystack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/16-performance-profiling/src/lib.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn sum_squares(v: &[u64]) -> u64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `notes` [INFO] [stdout] --> exercises/12-db-sqlx/src/lib.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn in_memory_insert(notes: &mut Vec, title: &str) -> i64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_notes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `title` [INFO] [stdout] --> exercises/12-db-sqlx/src/lib.rs:4:48 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn in_memory_insert(notes: &mut Vec, title: &str) -> i64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_title` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking tempfile v3.22.0 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking proptest v1.7.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Checking globset v0.4.16 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking ex05_error_handling v0.1.0 (/opt/rustwide/workdir/exercises/05-error-handling) [INFO] [stderr] Checking insta v1.43.2 [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> exercises/05-error-handling/src/lib.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load_config(env: &std::collections::HashMap) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> exercises/05-error-handling/src/lib.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn load_config(env: &std::collections::HashMap) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking clap v4.5.47 [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> exercises/13-testing-benchmarking/src/lib.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn hot_path(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> exercises/01-basics/src/lib.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn sum_odds(nums: &[i64]) -> i64 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> exercises/06-collections-iterators/src/lib.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn word_freq(input: &str) -> HashMap { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> exercises/01-basics/src/lib.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn fizzbuzz(n: u32) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/06-collections-iterators/src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn dedup_sorted(mut v: Vec) -> Vec { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> exercises/06-collections-iterators/src/lib.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn dedup_sorted(mut v: Vec) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> exercises/01-basics/src/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn parse_u32(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stdout] warning: unused variable: `ms` [INFO] [stdout] --> exercises/09-async/src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | pub async fn double_after(ms: u64, n: i32) -> i32 { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ms` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> exercises/09-async/src/lib.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | pub async fn double_after(ms: u64, n: i32) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_json v1.0.143 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking learn v0.1.0 (/opt/rustwide/workdir/learn) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.15s [INFO] running `Command { std: "docker" "inspect" "4bd52c853e77886fed4e25652f75980bc674692c62ad8431f997e939fb83a032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bd52c853e77886fed4e25652f75980bc674692c62ad8431f997e939fb83a032", kill_on_drop: false }` [INFO] [stdout] 4bd52c853e77886fed4e25652f75980bc674692c62ad8431f997e939fb83a032