[INFO] cloning repository https://github.com/pedro-stanaka/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pedro-stanaka/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpedro-stanaka%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpedro-stanaka%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b3c6b469718014402765175cbf33b6400bc12e8 [INFO] testing pedro-stanaka/rustlings against beta-2025-10-28 for beta-1.92-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpedro-stanaka%2Frustlings" "/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/pedro-stanaka/rustlings [INFO] finished tweaking git repo https://github.com/pedro-stanaka/rustlings [INFO] tweaked toml for git repo https://github.com/pedro-stanaka/rustlings written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pedro-stanaka/rustlings on toolchain beta-2025-10-28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "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" "+beta-2025-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a605c0fab97eed85545c89e185ed227dba0ef9f5b3edc350aea71ce8f903013 [INFO] running `Command { std: "docker" "start" "-a" "9a605c0fab97eed85545c89e185ed227dba0ef9f5b3edc350aea71ce8f903013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a605c0fab97eed85545c89e185ed227dba0ef9f5b3edc350aea71ce8f903013", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a605c0fab97eed85545c89e185ed227dba0ef9f5b3edc350aea71ce8f903013", kill_on_drop: false }` [INFO] [stdout] 9a605c0fab97eed85545c89e185ed227dba0ef9f5b3edc350aea71ce8f903013 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbebe9547fc260098f92a19bc7d1ffeaa96b34f50f429e27ed727522dc1f5285 [INFO] running `Command { std: "docker" "start" "-a" "dbebe9547fc260098f92a19bc7d1ffeaa96b34f50f429e27ed727522dc1f5285", kill_on_drop: false }` [INFO] [stderr] Compiling exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut scores = HashMap::new(); [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: `team_1_name` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let team_1_name = split_iterator.next().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_2_name` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let team_2_name = split_iterator.next().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_1_score` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let team_1_score: u8 = split_iterator.next().unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_2_score` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let team_2_score: u8 = split_iterator.next().unwrap().parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TeamScores` is never constructed [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct TeamScores { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_scores_table` is never used [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_scores_table(results: &str) -> HashMap<&str, TeamScores> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime` [INFO] [stdout] --> exercises/10_modules/modules3.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | match SystemTime::now().duration_since(UNIX_EPOCH) { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SystemTime` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 + use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UNIX_EPOCH` in this scope [INFO] [stdout] --> exercises/10_modules/modules3.rs:9:44 [INFO] [stdout] | [INFO] [stdout] 9 | match SystemTime::now().duration_since(UNIX_EPOCH) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 8 + use std::time::UNIX_EPOCH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "try_from_into") due to 3 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/23_conversions/try_from_into.rs:31:44 [INFO] [stdout] | [INFO] [stdout] 31 | fn try_from(tuple: (i16, i16, i16)) -> Result {} [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/23_conversions/try_from_into.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | fn try_from(arr: [i16; 3]) -> Result {} [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/23_conversions/try_from_into.rs:46:35 [INFO] [stdout] | [INFO] [stdout] 46 | fn try_from(slice: &[i16]) -> Result {} [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> exercises/10_modules/modules3.rs:10:74 [INFO] [stdout] | [INFO] [stdout] 10 | Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()), [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `child_numbers` in this scope [INFO] [stdout] --> exercises/19_smart_pointers/arc1.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | let sum: u32 = child_numbers.iter().filter(|&&n| n % 8 == offset).sum(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo_if_fizz` is never used [INFO] [stdout] --> solutions/03_if/if2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn foo_if_fizz(fizzish: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> exercises/14_generics/generics2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Wrapper { [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 function `new` is never used [INFO] [stdout] --> exercises/14_generics/generics2.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Wrapper { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 9 | fn new(value: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Arc` [INFO] [stdout] --> exercises/19_smart_pointers/arc1.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | use std::{sync::Arc, thread}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> exercises/19_smart_pointers/arc1.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | #![forbid(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | fn divide(a: i64, b: i64) -> Result { [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/18_iterators/iterators3.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | fn divide(a: i64, b: i64) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "modules3") due to 3 previous errors [INFO] [stderr] error: could not compile `exercises` (bin "arc1") due to 1 previous error; 1 warning emitted [INFO] [stdout] warning: unused variable: `division_results` [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let division_results = numbers.into_iter().map(|n| divide(n, 27)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_division_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `division_results` [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let division_results = numbers.into_iter().map(|n| divide(n, 27)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_division_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DivisionError` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum DivisionError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn divide(a: i64, b: i64) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `result_with_list` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn result_with_list() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_of_results` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn list_of_results() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dbebe9547fc260098f92a19bc7d1ffeaa96b34f50f429e27ed727522dc1f5285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbebe9547fc260098f92a19bc7d1ffeaa96b34f50f429e27ed727522dc1f5285", kill_on_drop: false }` [INFO] [stdout] dbebe9547fc260098f92a19bc7d1ffeaa96b34f50f429e27ed727522dc1f5285