[INFO] cloning repository https://github.com/kooryan/Advent-of-code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kooryan/Advent-of-code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkooryan%2FAdvent-of-code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkooryan%2FAdvent-of-code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c64191aa5d636399f513daee600f67f21a7aa34 [INFO] checking kooryan/Advent-of-code-2019 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkooryan%2FAdvent-of-code-2019" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kooryan/Advent-of-code-2019 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kooryan/Advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/kooryan/Advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/kooryan/Advent-of-code-2019 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/kooryan/Advent-of-code-2019 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a39399e7b3301bb03a4f94b9627b6b0ef6376ca60fcb51c4082a023e26cf4b48 [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" "a39399e7b3301bb03a4f94b9627b6b0ef6376ca60fcb51c4082a023e26cf4b48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a39399e7b3301bb03a4f94b9627b6b0ef6376ca60fcb51c4082a023e26cf4b48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a39399e7b3301bb03a4f94b9627b6b0ef6376ca60fcb51c4082a023e26cf4b48", kill_on_drop: false }` [INFO] [stdout] a39399e7b3301bb03a4f94b9627b6b0ef6376ca60fcb51c4082a023e26cf4b48 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86b8d33b6a4328786a7f1e92bf032045aa870b6046afb4183531e5f720affabc [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" "86b8d33b6a4328786a7f1e92bf032045aa870b6046afb4183531e5f720affabc", 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] Checking Advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/Day1/day1.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{File, read_to_string}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/Day3/day3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitAnd`, `Sub` [INFO] [stdout] --> src/Day4/day4.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Sub, BitAnd}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{SystemTime, UNIX_EPOCH, Instant}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/Day1/day1.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{File, read_to_string}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/Day3/day3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitAnd`, `Sub` [INFO] [stdout] --> src/Day4/day4.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::{Sub, BitAnd}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::time::{SystemTime, UNIX_EPOCH, Instant}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/Day2/day2.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut result: u32 = 0; [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: `wire1` [INFO] [stdout] --> src/Day3/day3.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut wire1: Vec = wires[0].split(",").map(|s| s.parse().unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wire2` [INFO] [stdout] --> src/Day3/day3.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut wire2: Vec = wires[1].split(",").map(|s| s.parse().unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `closestDistance` [INFO] [stdout] --> src/Day3/day3.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut closestDistance = std::u32::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closestDistance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wire1` [INFO] [stdout] --> src/Day3/day3.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wire2` [INFO] [stdout] --> src/Day3/day3.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/Day4/day4.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> src/Day2/day2.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let mut result: u32 = 0; [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: `wire1` [INFO] [stdout] --> src/Day3/day3.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut wire1: Vec = wires[0].split(",").map(|s| s.parse().unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wire2` [INFO] [stdout] --> src/Day3/day3.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut wire2: Vec = wires[1].split(",").map(|s| s.parse().unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `closestDistance` [INFO] [stdout] --> src/Day3/day3.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut closestDistance = std::u32::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closestDistance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wire1` [INFO] [stdout] --> src/Day3/day3.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wire2` [INFO] [stdout] --> src/Day3/day3.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wire2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day2/day2.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut intcode: Vec = file [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: `count` [INFO] [stdout] --> src/Day4/day4.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day2/day2.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | fn instructions(mut memory: Vec) -> u32 { [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/Day2/day2.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut intcode: Vec = file [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/Day3/day3.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut wires: Vec = file [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/Day3/day3.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut wire1: Vec = wires[0].split(",").map(|s| s.parse().unwrap()).collect(); [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/Day3/day3.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut wire2: Vec = wires[1].split(",").map(|s| s.parse().unwrap()).collect(); [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/Day3/day3.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [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/Day3/day3.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [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/Day3/day3.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut closestDistance = std::u32::MAX; [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/Day2/day2.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | fn instructions(mut memory: Vec) -> u32 { [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/Day4/day4.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut pass_range: Vec = file [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/Day4/day4.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | fn repeated_twice(mut num: Vec) -> bool { [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/Day4/day4.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut count = 0; [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/Day4/day4.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | fn constrained_combinations (mut range: Vec) -> u32 { [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/Day4/day4.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut number = split_number(x); [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/Day4/day4.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 51 | fn calculate_combinations(mut range: Vec) -> u32 { [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/Day4/day4.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut number = split_number(x); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/Day1/day1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_module` [INFO] [stdout] --> src/Day1/day1.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn parse_module(line: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/Day2/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `execute_program` [INFO] [stdout] --> src/Day2/day2.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn execute_program(mut code: Vec, noun: u32, verb: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `instructions` [INFO] [stdout] --> src/Day2/day2.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn instructions(mut memory: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_distance` [INFO] [stdout] --> src/Day3/day3.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/Day4/day4.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_number` [INFO] [stdout] --> src/Day4/day4.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn split_number(n: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day3/day3.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let mut wires: Vec = file [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `repeated_twice` [INFO] [stdout] --> src/Day4/day4.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn repeated_twice(mut num: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day3/day3.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut wire1: Vec = wires[0].split(",").map(|s| s.parse().unwrap()).collect(); [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/Day3/day3.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut wire2: Vec = wires[1].split(",").map(|s| s.parse().unwrap()).collect(); [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/Day3/day3.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [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/Day3/day3.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [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/Day3/day3.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut closestDistance = std::u32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `constrained_combinations` [INFO] [stdout] --> src/Day4/day4.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn constrained_combinations (mut range: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_combinations` [INFO] [stdout] --> src/Day4/day4.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn calculate_combinations(mut range: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day4/day4.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut pass_range: Vec = file [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_repeating` [INFO] [stdout] --> src/Day4/day4.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn is_repeating(num: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_increasing` [INFO] [stdout] --> src/Day4/day4.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn is_increasing(num: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Advent_of_code_2019` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `advent_of_code_2019` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day1` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Day1 { pub mod day1; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day2` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Day2 { pub mod day2; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day3` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Day3 { pub mod day3; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day4` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Day4 { pub mod day4; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `closestDistance` should have a snake case name [INFO] [stdout] --> src/Day3/day3.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut closestDistance = std::u32::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `closest_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day4/day4.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | fn repeated_twice(mut num: Vec) -> bool { [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/Day4/day4.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut count = 0; [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/Day4/day4.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | fn constrained_combinations (mut range: Vec) -> u32 { [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/Day4/day4.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | let mut number = split_number(x); [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/Day4/day4.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 51 | fn calculate_combinations(mut range: Vec) -> u32 { [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/Day4/day4.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut number = split_number(x); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/Day1/day1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_module` [INFO] [stdout] --> src/Day1/day1.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn parse_module(line: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/Day2/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `execute_program` [INFO] [stdout] --> src/Day2/day2.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn execute_program(mut code: Vec, noun: u32, verb: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `instructions` [INFO] [stdout] --> src/Day2/day2.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn instructions(mut memory: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_distance` [INFO] [stdout] --> src/Day3/day3.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn calculate_distance(mut wire1: Vec, mut wire2: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/Day4/day4.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_number` [INFO] [stdout] --> src/Day4/day4.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn split_number(n: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `repeated_twice` [INFO] [stdout] --> src/Day4/day4.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn repeated_twice(mut num: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `constrained_combinations` [INFO] [stdout] --> src/Day4/day4.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn constrained_combinations (mut range: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_combinations` [INFO] [stdout] --> src/Day4/day4.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn calculate_combinations(mut range: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_repeating` [INFO] [stdout] --> src/Day4/day4.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn is_repeating(num: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_increasing` [INFO] [stdout] --> src/Day4/day4.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn is_increasing(num: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Advent_of_code_2019` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `advent_of_code_2019` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day1` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Day1 { pub mod day1; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day2` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Day2 { pub mod day2; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day3` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Day3 { pub mod day3; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day4` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Day4 { pub mod day4; } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `closestDistance` should have a snake case name [INFO] [stdout] --> src/Day3/day3.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut closestDistance = std::u32::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `closest_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "86b8d33b6a4328786a7f1e92bf032045aa870b6046afb4183531e5f720affabc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86b8d33b6a4328786a7f1e92bf032045aa870b6046afb4183531e5f720affabc", kill_on_drop: false }` [INFO] [stdout] 86b8d33b6a4328786a7f1e92bf032045aa870b6046afb4183531e5f720affabc