[INFO] cloning repository https://github.com/ruben-arts/advent_of_code_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ruben-arts/advent_of_code_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruben-arts%2Fadvent_of_code_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruben-arts%2Fadvent_of_code_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8de8e4ff99e237c1e4ac64823ea17b4183096715 [INFO] testing ruben-arts/advent_of_code_rs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruben-arts%2Fadvent_of_code_rs" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ruben-arts/advent_of_code_rs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ruben-arts/advent_of_code_rs [INFO] finished tweaking git repo https://github.com/ruben-arts/advent_of_code_rs [INFO] tweaked toml for git repo https://github.com/ruben-arts/advent_of_code_rs written to /workspace/builds/worker-58/source/Cargo.toml [INFO] crate git repo https://github.com/ruben-arts/advent_of_code_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82f161c6efa047ba90175b16909f48ef5e717bee9597eeaa90d9a83ea0dbfa5b [INFO] running `Command { std: "docker" "start" "-a" "82f161c6efa047ba90175b16909f48ef5e717bee9597eeaa90d9a83ea0dbfa5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82f161c6efa047ba90175b16909f48ef5e717bee9597eeaa90d9a83ea0dbfa5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82f161c6efa047ba90175b16909f48ef5e717bee9597eeaa90d9a83ea0dbfa5b", kill_on_drop: false }` [INFO] [stdout] 82f161c6efa047ba90175b16909f48ef5e717bee9597eeaa90d9a83ea0dbfa5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04d1e6155d3a33a71f84bd57adf96eb9ad445fc3394787958738324b9ac4a6ec [INFO] running `Command { std: "docker" "start" "-a" "04d1e6155d3a33a71f84bd57adf96eb9ad445fc3394787958738324b9ac4a6ec", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling advent_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::DebugList` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::DebugList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/main.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let canvas = canvas.draw_parcour(list); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `lists` [INFO] [stdout] --> src/main.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 151 | let lists = get_input("./resources/input_puzzle_3.txt"); [INFO] [stdout] | ----- move occurs because `lists` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] 152 | let canvas = calc_canvas(lists); [INFO] [stdout] | ----- value moved here [INFO] [stdout] 153 | println!("First canvas has size: x:{} y:{}", canvas.canvas_line.len(), canvas.canvas_rows.len()); [INFO] [stdout] 154 | for list in lists{ [INFO] [stdout] | ^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `canvas` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:155:22 [INFO] [stdout] | [INFO] [stdout] 152 | let canvas = calc_canvas(lists); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut canvas` [INFO] [stdout] ... [INFO] [stdout] 155 | let canvas = canvas.draw_parcour(list); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` due to 3 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "04d1e6155d3a33a71f84bd57adf96eb9ad445fc3394787958738324b9ac4a6ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04d1e6155d3a33a71f84bd57adf96eb9ad445fc3394787958738324b9ac4a6ec", kill_on_drop: false }` [INFO] [stdout] 04d1e6155d3a33a71f84bd57adf96eb9ad445fc3394787958738324b9ac4a6ec