[INFO] cloning repository https://github.com/tylerhawkes/adventofcode2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tylerhawkes/adventofcode2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftylerhawkes%2Fadventofcode2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftylerhawkes%2Fadventofcode2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c17ae77eb1b4b472b1cb8253fce7677f18cb890 [INFO] checking tylerhawkes/adventofcode2019 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftylerhawkes%2Fadventofcode2019" "/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/tylerhawkes/adventofcode2019 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/tylerhawkes/adventofcode2019 [INFO] finished tweaking git repo https://github.com/tylerhawkes/adventofcode2019 [INFO] tweaked toml for git repo https://github.com/tylerhawkes/adventofcode2019 written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/tylerhawkes/adventofcode2019 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] [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-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" "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] e022ed7938700709ce1eacd295338e5e946e43d9a53f443393a923bb2bd9bb8c [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" "e022ed7938700709ce1eacd295338e5e946e43d9a53f443393a923bb2bd9bb8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e022ed7938700709ce1eacd295338e5e946e43d9a53f443393a923bb2bd9bb8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e022ed7938700709ce1eacd295338e5e946e43d9a53f443393a923bb2bd9bb8c", kill_on_drop: false }` [INFO] [stdout] e022ed7938700709ce1eacd295338e5e946e43d9a53f443393a923bb2bd9bb8c [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=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] 3b26240a6499929a7e34c3eff205aa5eda0b668c5a4bb9961bdd8d7d0dc58c37 [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" "3b26240a6499929a7e34c3eff205aa5eda0b668c5a4bb9961bdd8d7d0dc58c37", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking adventofcode2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/bin/day16.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optimize_thrust` in this scope [INFO] [stdout] --> src/bin/day07.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | let max_thrust = optimize_thrust(&base_program); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day16.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut new_elements = self [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: unreachable statement [INFO] [stdout] --> src/bin/day09.rs:276:3 [INFO] [stdout] | [INFO] [stdout] 274 | panic!("failing"); [INFO] [stdout] | ------------------ any code following this expression is unreachable [INFO] [stdout] 275 | [INFO] [stdout] 276 | / let mut program2 = "1102,34915192,34915192,7,4,7,99,0" [INFO] [stdout] 277 | | .parse::() [INFO] [stdout] 278 | | .unwrap(); [INFO] [stdout] | |______________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/bin/day16.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/bin/day11.rs:155:6 [INFO] [stdout] | [INFO] [stdout] 155 | fn name(mut self, s: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `i` [INFO] [stdout] --> src/bin/day11.rs:263:6 [INFO] [stdout] | [INFO] [stdout] 263 | fn i(mut self, i: I) -> Self { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error`, `Formatter` [INFO] [stdout] --> src/bin/day15.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `commands` [INFO] [stdout] --> src/bin/day17.rs:229:37 [INFO] [stdout] | [INFO] [stdout] 229 | fn break_down_commands(&mut self, commands: Vec) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_commands` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day16.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let mut new_elements = self [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 E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `adventofcode2019` [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [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: associated function is never used: `name` [INFO] [stdout] --> src/bin/day17.rs:314:6 [INFO] [stdout] | [INFO] [stdout] 314 | fn name(mut self, s: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/bin/day15.rs:187:6 [INFO] [stdout] | [INFO] [stdout] 187 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/bin/day15.rs:317:6 [INFO] [stdout] | [INFO] [stdout] 317 | fn name(mut self, s: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/day18.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BinaryHeap, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/day23.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | 'outer: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/day18.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{BinaryHeap, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tunnels` [INFO] [stdout] --> src/bin/day18.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let tunnels = input.parse::().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tunnels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `doors` [INFO] [stdout] --> src/bin/day18.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let doors = self.doors(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_doors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/bin/day18.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let dist = while !searcher.is_empty() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/bin/day11.rs:155:6 [INFO] [stdout] | [INFO] [stdout] 155 | fn name(mut self, s: impl Into) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `i` [INFO] [stdout] --> src/bin/day11.rs:263:6 [INFO] [stdout] | [INFO] [stdout] 263 | fn i(mut self, i: I) -> Self { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `possible_moves` [INFO] [stdout] --> src/bin/day18.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | fn possible_moves(self) -> [Self; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `possible_moves` [INFO] [stdout] --> src/bin/day18.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | fn possible_moves(&self) -> [Self; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_door` [INFO] [stdout] --> src/bin/day18.rs:82:6 [INFO] [stdout] | [INFO] [stdout] 82 | fn with_door(mut self, d: char) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_key` [INFO] [stdout] --> src/bin/day18.rs:86:6 [INFO] [stdout] | [INFO] [stdout] 86 | fn with_key(mut self, k: char) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_shortest_distance` [INFO] [stdout] --> src/bin/day18.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | fn find_shortest_distance(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_distances_to_all_keys_from_coord` [INFO] [stdout] --> src/bin/day18.rs:259:6 [INFO] [stdout] | [INFO] [stdout] 259 | fn find_distances_to_all_keys_from_coord( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entrance` [INFO] [stdout] --> src/bin/day18.rs:300:6 [INFO] [stdout] | [INFO] [stdout] 300 | fn entrance(&self) -> Coord { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `doors` [INFO] [stdout] --> src/bin/day18.rs:310:6 [INFO] [stdout] | [INFO] [stdout] 310 | fn doors(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `keys` [INFO] [stdout] --> src/bin/day18.rs:317:6 [INFO] [stdout] | [INFO] [stdout] 317 | fn keys(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_passable` [INFO] [stdout] --> src/bin/day18.rs:336:6 [INFO] [stdout] | [INFO] [stdout] 336 | fn is_passable(self, collected_keys: &HashSet) -> Result, ()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_door` [INFO] [stdout] --> src/bin/day18.rs:349:6 [INFO] [stdout] | [INFO] [stdout] 349 | fn is_door(self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_key` [INFO] [stdout] --> src/bin/day18.rs:356:6 [INFO] [stdout] | [INFO] [stdout] 356 | fn is_key(self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/bin/day18.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | panic!(format!("trying to evaluate moves at {}, {}", x, y)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 27 | panic!("trying to evaluate moves at {}, {}", x, y); [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `Input(_)` not covered [INFO] [stdout] --> src/bin/day05.rs:104:11 [INFO] [stdout] | [INFO] [stdout] 61 | / enum OpCode { [INFO] [stdout] 62 | | Add(ParameterMode, ParameterMode, ParameterMode), [INFO] [stdout] 63 | | Multiply(ParameterMode, ParameterMode, ParameterMode), [INFO] [stdout] 64 | | Input(ParameterMode), [INFO] [stdout] | | ----- not covered [INFO] [stdout] ... | [INFO] [stdout] 74 | | Equals(ParameterMode, ParameterMode, ParameterMode), [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- `OpCode` defined here [INFO] [stdout] ... [INFO] [stdout] 104 | match self { [INFO] [stdout] | ^^^^ pattern `Input(_)` not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `OpCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes_1` [INFO] [stdout] --> src/bin/day05.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut codes_1 = vec![3, 9, 8, 9, 10, 9, 4, 9, 99, -1, 8]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codes_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes_2` [INFO] [stdout] --> src/bin/day05.rs:182:7 [INFO] [stdout] | [INFO] [stdout] 182 | let mut codes_2 = vec![3, 9, 7, 9, 10, 9, 4, 9, 99, -1, 8]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codes_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes_3` [INFO] [stdout] --> src/bin/day05.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | let mut codes_3 = vec![3, 3, 1108, -1, 8, 3, 4, 3, 99]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codes_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes_4` [INFO] [stdout] --> src/bin/day05.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 186 | let mut codes_4 = vec![3, 3, 1107, -1, 8, 3, 4, 3, 99]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codes_4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes_5` [INFO] [stdout] --> src/bin/day05.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | let mut codes_5 = vec![3, 12, 6, 12, 15, 1, 13, 14, 13, 4, 13, 99, -1, 0, 1, 9]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codes_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes_6` [INFO] [stdout] --> src/bin/day05.rs:190:7 [INFO] [stdout] | [INFO] [stdout] 190 | let mut codes_6 = vec![3, 3, 1105, -1, 9, 1101, 0, 0, 12, 4, 12, 99, 1]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codes_6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `codes` [INFO] [stdout] --> src/bin/day05.rs:78:42 [INFO] [stdout] | [INFO] [stdout] 78 | fn move_position(self, current: usize, codes: &[i32]) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_codes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day05.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut codes_1 = vec![3, 9, 8, 9, 10, 9, 4, 9, 99, -1, 8]; [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/day05.rs:182:7 [INFO] [stdout] | [INFO] [stdout] 182 | let mut codes_2 = vec![3, 9, 7, 9, 10, 9, 4, 9, 99, -1, 8]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day05.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | let mut codes_3 = vec![3, 3, 1108, -1, 8, 3, 4, 3, 99]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day05.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 186 | let mut codes_4 = vec![3, 3, 1107, -1, 8, 3, 4, 3, 99]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tunnels` [INFO] [stdout] --> src/bin/day18.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let tunnels = input.parse::().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tunnels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `doors` [INFO] [stdout] --> src/bin/day18.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let doors = self.doors(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_doors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist` [INFO] [stdout] --> src/bin/day18.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let dist = while !searcher.is_empty() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day05.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | let mut codes_5 = vec![3, 12, 6, 12, 15, 1, 13, 14, 13, 4, 13, 99, -1, 0, 1, 9]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day05.rs:190:7 [INFO] [stdout] | [INFO] [stdout] 190 | let mut codes_6 = vec![3, 3, 1105, -1, 9, 1101, 0, 0, 12, 4, 12, 99, 1]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/bin/day18.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | panic!(format!("trying to evaluate moves at {}, {}", x, y)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 27 | panic!("trying to evaluate moves at {}, {}", x, y); [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "3b26240a6499929a7e34c3eff205aa5eda0b668c5a4bb9961bdd8d7d0dc58c37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b26240a6499929a7e34c3eff205aa5eda0b668c5a4bb9961bdd8d7d0dc58c37", kill_on_drop: false }` [INFO] [stdout] 3b26240a6499929a7e34c3eff205aa5eda0b668c5a4bb9961bdd8d7d0dc58c37