[INFO] cloning repository https://github.com/Lolchek/rust-advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lolchek/rust-advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLolchek%2Frust-advent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLolchek%2Frust-advent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 946c619926f2d0ee64cb4b7eea3e5cb22a548241 [INFO] checking Lolchek/rust-advent-of-code against master#01af5040fdada6ef8f1b749cda798d80a8590b2c for pr-84022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLolchek%2Frust-advent-of-code" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lolchek/rust-advent-of-code on toolchain 01af5040fdada6ef8f1b749cda798d80a8590b2c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+01af5040fdada6ef8f1b749cda798d80a8590b2c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Lolchek/rust-advent-of-code [INFO] finished tweaking git repo https://github.com/Lolchek/rust-advent-of-code [INFO] tweaked toml for git repo https://github.com/Lolchek/rust-advent-of-code written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Lolchek/rust-advent-of-code already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+01af5040fdada6ef8f1b749cda798d80a8590b2c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+01af5040fdada6ef8f1b749cda798d80a8590b2c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b3f20a6c46110502f3f993d0b9bd42ccef843f0515364eb7036f0d3279aa1cf [INFO] running `Command { std: "docker" "start" "-a" "0b3f20a6c46110502f3f993d0b9bd42ccef843f0515364eb7036f0d3279aa1cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b3f20a6c46110502f3f993d0b9bd42ccef843f0515364eb7036f0d3279aa1cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b3f20a6c46110502f3f993d0b9bd42ccef843f0515364eb7036f0d3279aa1cf", kill_on_drop: false }` [INFO] [stdout] 0b3f20a6c46110502f3f993d0b9bd42ccef843f0515364eb7036f0d3279aa1cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+01af5040fdada6ef8f1b749cda798d80a8590b2c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c2f76ba1e835856456ba8efc9670edc654dab1f9c819b2001cc2b1143a20c9b [INFO] running `Command { std: "docker" "start" "-a" "9c2f76ba1e835856456ba8efc9670edc654dab1f9c819b2001cc2b1143a20c9b", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/day5/src.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn day5(filepath: &str){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let filepath = "src/day6/data/input.txt"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task1` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn task1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/day5/src.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn day5(filepath: &str){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filepath` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let filepath = "src/day6/data/input.txt"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filepath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task2` is never used [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn task2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task3` is never used [INFO] [stdout] --> src/main.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn task3(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task4` is never used [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn task4(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task5` is never used [INFO] [stdout] --> src/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn task5(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task6` is never used [INFO] [stdout] --> src/main.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn task6(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map`, `len_row` and `len_col` are never read [INFO] [stdout] --> src/day3/day3code.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct TreeMap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | map: Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | len_row: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | len_col: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_map_from_file` is never used [INFO] [stdout] --> src/day3/day3code.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn build_map_from_file(filename: &str) -> TreeMap{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_with_steps` is never used [INFO] [stdout] --> src/day3/day3code.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn run_with_steps(map: &TreeMap, right: i32, down: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `day3` is never used [INFO] [stdout] --> src/day3/day3code.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn day3(filename: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_point` is never used [INFO] [stdout] --> src/day3/day3code.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_point(&self, row: i32, column: i32) -> char{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_end` is never used [INFO] [stdout] --> src/day3/day3code.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn is_end(&self, row: i32) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_tree` is never used [INFO] [stdout] --> src/day3/day3code.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_tree(character: char) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/day4/src.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Passport { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | byr: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | iyr: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | eyr: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | hgt: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | hcl: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | ecl: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pid: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | cid: String [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Passport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_passports_from_file` is never used [INFO] [stdout] --> src/day4/src.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn load_passports_from_file(filename: &str) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `day4` is never used [INFO] [stdout] --> src/day4/src.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn day4(filepath: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid` is never used [INFO] [stdout] --> src/day4/src.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_valid(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `day5` is never used [INFO] [stdout] --> src/day5/src.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn day5(filepath: &str){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task1` is never used [INFO] [stdout] --> src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn task1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task2` is never used [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn task2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task3` is never used [INFO] [stdout] --> src/main.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn task3(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task4` is never used [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn task4(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task5` is never used [INFO] [stdout] --> src/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn task5(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task6` is never used [INFO] [stdout] --> src/main.rs:112:4 [INFO] [stdout] | [INFO] [stdout] 112 | fn task6(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `map`, `len_row` and `len_col` are never read [INFO] [stdout] --> src/day3/day3code.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct TreeMap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | map: Vec>, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | len_row: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | len_col: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_map_from_file` is never used [INFO] [stdout] --> src/day3/day3code.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn build_map_from_file(filename: &str) -> TreeMap{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_with_steps` is never used [INFO] [stdout] --> src/day3/day3code.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn run_with_steps(map: &TreeMap, right: i32, down: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `day3` is never used [INFO] [stdout] --> src/day3/day3code.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn day3(filename: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_point` is never used [INFO] [stdout] --> src/day3/day3code.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_point(&self, row: i32, column: i32) -> char{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_end` is never used [INFO] [stdout] --> src/day3/day3code.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn is_end(&self, row: i32) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_tree` is never used [INFO] [stdout] --> src/day3/day3code.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_tree(character: char) -> bool{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/day4/src.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Passport { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 6 | byr: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | iyr: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | eyr: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | hgt: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | hcl: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | ecl: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pid: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | cid: String [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Passport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_passports_from_file` is never used [INFO] [stdout] --> src/day4/src.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn load_passports_from_file(filename: &str) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `day4` is never used [INFO] [stdout] --> src/day4/src.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn day4(filepath: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid` is never used [INFO] [stdout] --> src/day4/src.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_valid(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `day5` is never used [INFO] [stdout] --> src/day5/src.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn day5(filepath: &str){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.77s [INFO] running `Command { std: "docker" "inspect" "9c2f76ba1e835856456ba8efc9670edc654dab1f9c819b2001cc2b1143a20c9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c2f76ba1e835856456ba8efc9670edc654dab1f9c819b2001cc2b1143a20c9b", kill_on_drop: false }` [INFO] [stdout] 9c2f76ba1e835856456ba8efc9670edc654dab1f9c819b2001cc2b1143a20c9b