[INFO] cloning repository https://github.com/lasse-herzog/aoc-22 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lasse-herzog/aoc-22" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flasse-herzog%2Faoc-22", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flasse-herzog%2Faoc-22'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4308d1e497b7c4f459b3494941d7a461260aed6 [INFO] building lasse-herzog/aoc-22 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flasse-herzog%2Faoc-22" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lasse-herzog/aoc-22 [INFO] finished tweaking git repo https://github.com/lasse-herzog/aoc-22 [INFO] tweaked toml for git repo https://github.com/lasse-herzog/aoc-22 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lasse-herzog/aoc-22 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lasse-herzog/aoc-22 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be0d733080455bd6f7aa92190d6a5239b27c8d94ba84bc7f73e77a3a59d1ede3 [INFO] running `Command { std: "docker" "start" "-a" "be0d733080455bd6f7aa92190d6a5239b27c8d94ba84bc7f73e77a3a59d1ede3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be0d733080455bd6f7aa92190d6a5239b27c8d94ba84bc7f73e77a3a59d1ede3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be0d733080455bd6f7aa92190d6a5239b27c8d94ba84bc7f73e77a3a59d1ede3", kill_on_drop: false }` [INFO] [stdout] be0d733080455bd6f7aa92190d6a5239b27c8d94ba84bc7f73e77a3a59d1ede3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 248790c06e948826685dc474abb17224632031a5d7aefa7660189b4180c83401 [INFO] running `Command { std: "docker" "start" "-a" "248790c06e948826685dc474abb17224632031a5d7aefa7660189b4180c83401", kill_on_drop: false }` [INFO] [stderr] Compiling aoc_22 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `day07` in this scope [INFO] [stdout] --> src/main.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | ("day07", day07 as fn() -> ()), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/days/day01.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn day01() { [INFO] [stdout] | -------------- similarly named function `day01` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 - ("day07", day07 as fn() -> ()), [INFO] [stdout] 21 + ("day07", day01 as fn() -> ()), [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 7 + use crate::days::day07::day07; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lol` [INFO] [stdout] --> src/days/day06.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let lol = datastream [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lol` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `console_history` [INFO] [stdout] --> src/days/day07.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let console_history = input.map(|line| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_console_history` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of closure [INFO] [stdout] --> src/days/day07.rs:38:29 [INFO] [stdout] | [INFO] [stdout] 24 | let mut current_directory = ""; [INFO] [stdout] | --------------------- `current_directory` declared here, outside of the closure body [INFO] [stdout] ... [INFO] [stdout] 31 | let command: Vec<&str> = console_line.split(" ").collect(); [INFO] [stdout] | ------------ borrow is only valid in the closure body [INFO] [stdout] ... [INFO] [stdout] 38 | current_directory = command[2] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reference to `console_line` escapes the closure body here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0521. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc_22` (bin "aoc_22") due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "248790c06e948826685dc474abb17224632031a5d7aefa7660189b4180c83401", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "248790c06e948826685dc474abb17224632031a5d7aefa7660189b4180c83401", kill_on_drop: false }` [INFO] [stdout] 248790c06e948826685dc474abb17224632031a5d7aefa7660189b4180c83401