[INFO] cloning repository https://github.com/sts10/advent-of-code-2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sts10/advent-of-code-2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsts10%2Fadvent-of-code-2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsts10%2Fadvent-of-code-2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 749149d5dd3fec7f50af6c186c64fae199e3643b [INFO] checking sts10/advent-of-code-2018 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsts10%2Fadvent-of-code-2018" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sts10/advent-of-code-2018 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sts10/advent-of-code-2018 [INFO] finished tweaking git repo https://github.com/sts10/advent-of-code-2018 [INFO] tweaked toml for git repo https://github.com/sts10/advent-of-code-2018 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/sts10/advent-of-code-2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 343fce58a1a55023a39109242fdfb460b4fa5af9c8ecdbda15189345de95c251 [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" "343fce58a1a55023a39109242fdfb460b4fa5af9c8ecdbda15189345de95c251", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "343fce58a1a55023a39109242fdfb460b4fa5af9c8ecdbda15189345de95c251", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "343fce58a1a55023a39109242fdfb460b4fa5af9c8ecdbda15189345de95c251", kill_on_drop: false }` [INFO] [stdout] 343fce58a1a55023a39109242fdfb460b4fa5af9c8ecdbda15189345de95c251 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef9cc6d543e1a8aabd9c1a1631cfc88fb2c825be6d102015eb4d9ff8fa87f3b6 [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" "ef9cc6d543e1a8aabd9c1a1631cfc88fb2c825be6d102015eb4d9ff8fa87f3b6", 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] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking advent-of-code-2018-reorganized v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `new_grid` [INFO] [stdout] --> src/bin/day06.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let new_grid = spread(x, y, grid); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_grid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `square` is never read [INFO] [stdout] --> src/bin/day06.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | "." => square = sign, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `square` [INFO] [stdout] --> src/bin/day06.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 49 | for square in nine_squares { [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | first assignment to `square` [INFO] [stdout] | help: make this binding mutable: `mut square` [INFO] [stdout] 50 | match square { [INFO] [stdout] 51 | "." => square = sign, [INFO] [stdout] | ^^^^^^^^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2018-reorganized` [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 variable: `guards` [INFO] [stdout] --> src/bin/day04_bad_attempt.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut guards: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_guards` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day04_bad_attempt.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut guards: HashMap = HashMap::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 `the_char_to_remove_that_resulted_in_shortest_polymer_result` is assigned to, but never used [INFO] [stdout] --> src/bin/my_slow_day05.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut the_char_to_remove_that_resulted_in_shortest_polymer_result: char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_the_char_to_remove_that_resulted_in_shortest_polymer_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `the_char_to_remove_that_resulted_in_shortest_polymer_result` is never read [INFO] [stdout] --> src/bin/my_slow_day05.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | the_char_to_remove_that_resulted_in_shortest_polymer_result = *char_to_remove; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indexes_to_remove` [INFO] [stdout] --> src/bin/my_slow_day05.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut indexes_to_remove: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indexes_to_remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/my_slow_day05.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut indexes_to_remove: Vec = vec![]; [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: unused variable: `guards` [INFO] [stdout] --> src/bin/day04_bad_attempt.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut guards: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_guards` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day04_bad_attempt.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut guards: HashMap = HashMap::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: unused variable: `new_grid` [INFO] [stdout] --> src/bin/day06.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let new_grid = spread(x, y, grid); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_grid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `square` is never read [INFO] [stdout] --> src/bin/day06.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | "." => square = sign, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `square` [INFO] [stdout] --> src/bin/day06.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 49 | for square in nine_squares { [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | first assignment to `square` [INFO] [stdout] | help: make this binding mutable: `mut square` [INFO] [stdout] 50 | match square { [INFO] [stdout] 51 | "." => square = sign, [INFO] [stdout] | ^^^^^^^^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stdout] warning: variable `the_char_to_remove_that_resulted_in_shortest_polymer_result` is assigned to, but never used [INFO] [stdout] --> src/bin/my_slow_day05.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut the_char_to_remove_that_resulted_in_shortest_polymer_result: char; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_the_char_to_remove_that_resulted_in_shortest_polymer_result` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `the_char_to_remove_that_resulted_in_shortest_polymer_result` is never read [INFO] [stdout] --> src/bin/my_slow_day05.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | the_char_to_remove_that_resulted_in_shortest_polymer_result = *char_to_remove; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `indexes_to_remove` [INFO] [stdout] --> src/bin/my_slow_day05.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut indexes_to_remove: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_indexes_to_remove` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day01.rs:76:27 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!(sum_vector(test_vector), (3 + -7 + 200 + 13 + -123)); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&[isize]`, found struct `Vec` [INFO] [stdout] | help: consider borrowing here: `&test_vector` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[isize]` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/my_slow_day05.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut indexes_to_remove: Vec = vec![]; [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] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ef9cc6d543e1a8aabd9c1a1631cfc88fb2c825be6d102015eb4d9ff8fa87f3b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef9cc6d543e1a8aabd9c1a1631cfc88fb2c825be6d102015eb4d9ff8fa87f3b6", kill_on_drop: false }` [INFO] [stdout] ef9cc6d543e1a8aabd9c1a1631cfc88fb2c825be6d102015eb4d9ff8fa87f3b6