[INFO] cloning repository https://github.com/Everen-John/rust-aoc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Everen-John/rust-aoc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEveren-John%2Frust-aoc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEveren-John%2Frust-aoc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fa2c50ef292bfd821568aba51d50c90fd8e193f1 [INFO] building Everen-John/rust-aoc against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEveren-John%2Frust-aoc" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Everen-John/rust-aoc on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Everen-John/rust-aoc [INFO] finished tweaking git repo https://github.com/Everen-John/rust-aoc [INFO] tweaked toml for git repo https://github.com/Everen-John/rust-aoc written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Everen-John/rust-aoc 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f60f4918cff04f4a5277e83109655dba84661d9e1faef3480da6da7457163f4 [INFO] running `Command { std: "docker" "start" "-a" "3f60f4918cff04f4a5277e83109655dba84661d9e1faef3480da6da7457163f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f60f4918cff04f4a5277e83109655dba84661d9e1faef3480da6da7457163f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f60f4918cff04f4a5277e83109655dba84661d9e1faef3480da6da7457163f4", kill_on_drop: false }` [INFO] [stdout] 3f60f4918cff04f4a5277e83109655dba84661d9e1faef3480da6da7457163f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 502d09b816a4b1134bba6cff0ae996a5aca42c340b6b6128c35147d22130134d [INFO] running `Command { std: "docker" "start" "-a" "502d09b816a4b1134bba6cff0ae996a5aca42c340b6b6128c35147d22130134d", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling regex v1.8.4 [INFO] [stderr] Compiling rust-aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/day_11.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_6.rs:20:51 [INFO] [stdout] | [INFO] [stdout] 20 | protocol_string.chars().enumerate().any(|(i, l)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_6.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | protocol_string.chars().enumerate().any(|(i, l)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monkeys` [INFO] [stdout] --> src/day_11.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut monkeys: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monkeys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/day_11.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut op: Box u32>; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/day_11.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let operator = &operation[..1]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subject` [INFO] [stdout] --> src/day_11.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let subject = &operation[2..]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_11.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut monkeys: Vec = Vec::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: struct `Elf` is never constructed [INFO] [stdout] --> src/day_1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HasFood` is never used [INFO] [stdout] --> src/day_1.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait HasFood { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_1.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_1.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_2.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_3.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_3.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `item_priority_map` is never used [INFO] [stdout] --> src/day_3.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn item_priority_map() -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_4.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_5.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_5.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_5.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_6.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_6.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_6.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_7.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_7.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_cd` is never used [INFO] [stdout] --> src/day_7.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn handle_cd(instruction: &str, directory_stack: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_filesize` is never used [INFO] [stdout] --> src/day_7.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn handle_filesize( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_7.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_8.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_8.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_content` is never used [INFO] [stdout] --> src/day_8.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn process_content(content: &str) -> (usize, usize, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_8.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_10.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/day_10.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/day_10.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day_10.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Instruction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 22 | fn new(start_cycle: i32, instruction_type: InstructionType, value: i32) -> Instruction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_10.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perform_a_cycle` is never used [INFO] [stdout] --> src/day_10.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn perform_a_cycle( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_10.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `q2_perform_a_cycle` is never used [INFO] [stdout] --> src/day_10.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn q2_perform_a_cycle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `items`, `total_items_inspected`, `operation`, and `subject` are never read [INFO] [stdout] --> src/day_11.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Monkey { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | total_items_inspected: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | operation: Box u32>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | subject: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `worry_level` is never read [INFO] [stdout] --> src/day_11.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct Item { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 22 | worry_level: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Item` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.40s [INFO] running `Command { std: "docker" "inspect" "502d09b816a4b1134bba6cff0ae996a5aca42c340b6b6128c35147d22130134d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "502d09b816a4b1134bba6cff0ae996a5aca42c340b6b6128c35147d22130134d", kill_on_drop: false }` [INFO] [stdout] 502d09b816a4b1134bba6cff0ae996a5aca42c340b6b6128c35147d22130134d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 363b1be682d1c5c7cc0250de61bee75c75f81e6c6a58d82286f35de1337c312a [INFO] running `Command { std: "docker" "start" "-a" "363b1be682d1c5c7cc0250de61bee75c75f81e6c6a58d82286f35de1337c312a", kill_on_drop: false }` [INFO] [stderr] Compiling rust-aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `read` [INFO] [stdout] --> src/day_11.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_6.rs:20:51 [INFO] [stdout] | [INFO] [stdout] 20 | protocol_string.chars().enumerate().any(|(i, l)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/day_6.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | protocol_string.chars().enumerate().any(|(i, l)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monkeys` [INFO] [stdout] --> src/day_11.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut monkeys: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monkeys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> src/day_11.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut op: Box u32>; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/day_11.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let operator = &operation[..1]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subject` [INFO] [stdout] --> src/day_11.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let subject = &operation[2..]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_11.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut monkeys: Vec = Vec::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: struct `Elf` is never constructed [INFO] [stdout] --> src/day_1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HasFood` is never used [INFO] [stdout] --> src/day_1.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait HasFood { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_1.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_1.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_2.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_3.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_3.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `item_priority_map` is never used [INFO] [stdout] --> src/day_3.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn item_priority_map() -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_4.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_5.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_5.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_5.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_6.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_6.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_6.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_7.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_7.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_cd` is never used [INFO] [stdout] --> src/day_7.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn handle_cd(instruction: &str, directory_stack: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_filesize` is never used [INFO] [stdout] --> src/day_7.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn handle_filesize( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_7.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_8.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_8.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_content` is never used [INFO] [stdout] --> src/day_8.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn process_content(content: &str) -> (usize, usize, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_8.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/day_10.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_input() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InstructionType` is never used [INFO] [stdout] --> src/day_10.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum InstructionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/day_10.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day_10.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Instruction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 22 | fn new(start_cycle: i32, instruction_type: InstructionType, value: i32) -> Instruction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_one` is never used [INFO] [stdout] --> src/day_10.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn question_one() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `perform_a_cycle` is never used [INFO] [stdout] --> src/day_10.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn perform_a_cycle( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_two` is never used [INFO] [stdout] --> src/day_10.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn question_two() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `q2_perform_a_cycle` is never used [INFO] [stdout] --> src/day_10.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn q2_perform_a_cycle( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `items`, `total_items_inspected`, `operation`, and `subject` are never read [INFO] [stdout] --> src/day_11.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Monkey { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 12 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | total_items_inspected: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | operation: Box u32>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | subject: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `worry_level` is never read [INFO] [stdout] --> src/day_11.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct Item { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 22 | worry_level: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Item` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "363b1be682d1c5c7cc0250de61bee75c75f81e6c6a58d82286f35de1337c312a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "363b1be682d1c5c7cc0250de61bee75c75f81e6c6a58d82286f35de1337c312a", kill_on_drop: false }` [INFO] [stdout] 363b1be682d1c5c7cc0250de61bee75c75f81e6c6a58d82286f35de1337c312a