[INFO] updating cached repository https://github.com/tahnok/advent2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56909ab0b16daf58fbe7c5f3cb72459de9e6468f [INFO] testing tahnok/advent2018 against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftahnok%2Fadvent2018" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tahnok/advent2018 on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tahnok/advent2018 [INFO] finished tweaking git repo https://github.com/tahnok/advent2018 [INFO] tweaked toml for git repo https://github.com/tahnok/advent2018 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/tahnok/advent2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ce498f2b5e21a023364a8c89ce13a320d27bf20917db16a4d6d0f26bc3122fb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0ce498f2b5e21a023364a8c89ce13a320d27bf20917db16a4d6d0f26bc3122fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ce498f2b5e21a023364a8c89ce13a320d27bf20917db16a4d6d0f26bc3122fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ce498f2b5e21a023364a8c89ce13a320d27bf20917db16a4d6d0f26bc3122fb", kill_on_drop: false }` [INFO] [stdout] 0ce498f2b5e21a023364a8c89ce13a320d27bf20917db16a4d6d0f26bc3122fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6fab36ed3fc401df2ef28ed7c303567fc66aa47c5c403e55edbdec805e4acac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f6fab36ed3fc401df2ef28ed7c303567fc66aa47c5c403e55edbdec805e4acac", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling unindent v0.1.3 [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.3 [INFO] [stderr] Compiling indoc-impl v0.3.1 [INFO] [stderr] Compiling indoc v0.3.1 [INFO] [stderr] Compiling advent2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `utils` [INFO] [stdout] --> src/bin/utils.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use std::fs::File; [INFO] [stdout] 2 | | use std::io::prelude::*; [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub fn load_input(filename: &str) -> String { [INFO] [stdout] ... | [INFO] [stdout] 8 | | contents [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/utils.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent2018`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `indoc::indoc` [INFO] [stdout] --> src/bin/day_07_1.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use indoc::indoc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_04_2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut times = guards_and_times.get_mut(&id).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_04_1.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut times = guards_and_times.get_mut(&id).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `guard` should have an upper case name [INFO] [stdout] --> src/bin/day_04_2.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | static ref guard: Regex = Regex::new(r"#(\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `GUARD` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `indoc::indoc` [INFO] [stdout] --> src/bin/day_07_2.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use indoc::indoc; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `guard` should have an upper case name [INFO] [stdout] --> src/bin/day_04_1.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | static ref guard: Regex = Regex::new(r"#(\d+)").unwrap(); [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `GUARD` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `time` should have an upper case name [INFO] [stdout] --> src/bin/day_04_1.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | static ref time: Regex = Regex::new(r"(\d+):(\d+)\]").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `TIME` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `time` should have an upper case name [INFO] [stdout] --> src/bin/day_04_2.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | static ref time: Regex = Regex::new(r"(\d+):(\d+)\]").unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to upper case: `TIME` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_07_1.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut dependencies = result.entry(required_by).or_insert(HashSet::new()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day_07_2.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut dependencies = result.entry(required_by).or_insert(HashSet::new()); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f6fab36ed3fc401df2ef28ed7c303567fc66aa47c5c403e55edbdec805e4acac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6fab36ed3fc401df2ef28ed7c303567fc66aa47c5c403e55edbdec805e4acac", kill_on_drop: false }` [INFO] [stdout] f6fab36ed3fc401df2ef28ed7c303567fc66aa47c5c403e55edbdec805e4acac