[INFO] cloning repository https://github.com/plateauu/aoc2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/plateauu/aoc2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fplateauu%2Faoc2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fplateauu%2Faoc2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b8d59ce98fc101d70cc78871460a7a917ff5c8c0 [INFO] testing plateauu/aoc2021 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fplateauu%2Faoc2021" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/plateauu/aoc2021 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/plateauu/aoc2021 [INFO] finished tweaking git repo https://github.com/plateauu/aoc2021 [INFO] tweaked toml for git repo https://github.com/plateauu/aoc2021 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/plateauu/aoc2021 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2553aed96d0b93b1467591aec18f944c610a549fae1244e59bc7bf8b1ee22a96 [INFO] running `Command { std: "docker" "start" "-a" "2553aed96d0b93b1467591aec18f944c610a549fae1244e59bc7bf8b1ee22a96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2553aed96d0b93b1467591aec18f944c610a549fae1244e59bc7bf8b1ee22a96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2553aed96d0b93b1467591aec18f944c610a549fae1244e59bc7bf8b1ee22a96", kill_on_drop: false }` [INFO] [stdout] 2553aed96d0b93b1467591aec18f944c610a549fae1244e59bc7bf8b1ee22a96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 382777430c2fd47f7dc78a23a3fdde44a3444bc7cd6c266a0bd80d0bcb7bba7b [INFO] running `Command { std: "docker" "start" "-a" "382777430c2fd47f7dc78a23a3fdde44a3444bc7cd6c266a0bd80d0bcb7bba7b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling advent-of-code-2021 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SplitWhitespace` [INFO] [stdout] --> src/day2/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::{FromStr, SplitWhitespace}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/day3/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Mul` [INFO] [stdout] --> src/day3/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Mul; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/day3/mod.rs:132:45 [INFO] [stdout] | [INFO] [stdout] 132 | let scrubber_rate = i64::from_str_radix((&*scrubber_rate_binary_string), 2).unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 132 - let scrubber_rate = i64::from_str_radix((&*scrubber_rate_binary_string), 2).unwrap(); [INFO] [stdout] 132 + let scrubber_rate = i64::from_str_radix(&*scrubber_rate_binary_string, 2).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/day3/mod.rs:148:42 [INFO] [stdout] | [INFO] [stdout] 148 | let gamma_rate = i64::from_str_radix((&*to_gamma_rate_binary_string), 2).unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - let gamma_rate = i64::from_str_radix((&*to_gamma_rate_binary_string), 2).unwrap(); [INFO] [stdout] 148 + let gamma_rate = i64::from_str_radix(&*to_gamma_rate_binary_string, 2).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/day3/mod.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 119 | let mut result = instructions; [INFO] [stdout] | ------------ expected due to this value [INFO] [stdout] ... [INFO] [stdout] 128 | result = new_res; [INFO] [stdout] | ^^^^^^^ expected `&Vec`, found slice [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found slice `[String]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[String]` cannot be known at compilation time [INFO] [stdout] --> src/day3/mod.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let new_res = *result.into_iter() [INFO] [stdout] | ^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[String]` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `str` cannot be dereferenced [INFO] [stdout] --> src/day3/mod.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | let scrubber_rate = i64::from_str_radix((&*scrubber_rate_binary_string), 2).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/day3/mod.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let scrubber_rate_binary_string = *result[0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/day3/mod.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 133 | (String::from(scrubber_rate_binary_string), scrubber_rate) [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by a bound in `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/day3/mod.rs:133:6 [INFO] [stdout] | [INFO] [stdout] 133 | (String::from(scrubber_rate_binary_string), scrubber_rate) [INFO] [stdout] | ^^^^^^^^^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0614. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2021` due to 7 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "382777430c2fd47f7dc78a23a3fdde44a3444bc7cd6c266a0bd80d0bcb7bba7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "382777430c2fd47f7dc78a23a3fdde44a3444bc7cd6c266a0bd80d0bcb7bba7b", kill_on_drop: false }` [INFO] [stdout] 382777430c2fd47f7dc78a23a3fdde44a3444bc7cd6c266a0bd80d0bcb7bba7b