[INFO] cloning repository https://github.com/kamn/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/kamn/advent_of_code_2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamn%2Fadvent_of_code_2019", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamn%2Fadvent_of_code_2019'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 034a5e360bc8ce4cf08f739da4df6d7384671312
[INFO] checking kamn/advent_of_code_2019 against 79c0559184f27f4433a6fbc260b950d06d4a4889 for pr-162233-crater-rollup
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamn%2Fadvent_of_code_2019" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/kamn/advent_of_code_2019
[INFO] finished tweaking git repo https://github.com/kamn/advent_of_code_2019
[INFO] tweaked toml for git repo https://github.com/kamn/advent_of_code_2019 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kamn/advent_of_code_2019 on toolchain 79c0559184f27f4433a6fbc260b950d06d4a4889
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kamn/advent_of_code_2019 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" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: binary `advent_of_code_2019` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /workspace/builds/worker-3-tc2/source/target/.../advent_of_code_2019
[INFO] [stderr]    |                                                  ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `advent-of-code-2019`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:6:8
[INFO] [stderr]    |
[INFO] [stderr]  6 - name = "advent_of_code_2019"
[INFO] [stderr]  6 + name = "advent-of-code-2019"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `advent-of-code-2019`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:7:19
[INFO] [stderr]    |
[INFO] [stderr]  7 ~ version = "0.1.0"
[INFO] [stderr]  8 + [[bin]]
[INFO] [stderr]  9 + name = "advent-of-code-2019"
[INFO] [stderr] 10 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `advent_of_code_2019` (manifest) generated 1 warning
[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-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751
[INFO] running `Command { std: "docker" "start" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751" "/opt/rustwide/cargo-home/bin/cargo" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751" "/opt/rustwide/cargo-home/bin/cargo" "+79c0559184f27f4433a6fbc260b950d06d4a4889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: binary `advent_of_code_2019` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /opt/rustwide/target/.../advent_of_code_2019
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `advent-of-code-2019`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:6:8
[INFO] [stderr]    |
[INFO] [stderr]  6 - name = "advent_of_code_2019"
[INFO] [stderr]  6 + name = "advent-of-code-2019"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `advent-of-code-2019`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:7:19
[INFO] [stderr]    |
[INFO] [stderr]  7 ~ version = "0.1.0"
[INFO] [stderr]  8 + [[bin]]
[INFO] [stderr]  9 + name = "advent-of-code-2019"
[INFO] [stderr] 10 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `advent_of_code_2019` (manifest) generated 1 warning
[INFO] [stderr]     Checking advent_of_code_2019 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/day10b.rs:80:28
[INFO] [stdout]    |
[INFO] [stdout] 80 |                         if (formula == (-2,-1)) {
[INFO] [stdout]    |                            ^                  ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 80 -                         if (formula == (-2,-1)) {
[INFO] [stdout] 80 +                         if formula == (-2,-1) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/day10b.rs:121:14
[INFO] [stdout]     |
[INFO] [stdout] 121 |     let fx = (x as f32);
[INFO] [stdout]     |              ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 121 -     let fx = (x as f32);
[INFO] [stdout] 121 +     let fx = x as f32;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/day12a.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/day12b.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Rem`
[INFO] [stdout]  --> src/day12b.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Rem;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/day12b.rs:144:12
[INFO] [stdout]     |
[INFO] [stdout] 144 |         if (steps == 2){
[INFO] [stdout]     |            ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 144 -         if (steps == 2){
[INFO] [stdout] 144 +         if steps == 2 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/day12b.rs:149:12
[INFO] [stdout]     |
[INFO] [stdout] 149 |         if (original_a == *moon_a && original_b == *moon_b && original_c == *moon_c && original_d == *moon_d) {
[INFO] [stdout]     |            ^                                                                                                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 149 -         if (original_a == *moon_a && original_b == *moon_b && original_c == *moon_c && original_d == *moon_d) {
[INFO] [stdout] 149 +         if original_a == *moon_a && original_b == *moon_b && original_c == *moon_c && original_d == *moon_d {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/day12b.rs:208:12
[INFO] [stdout]     |
[INFO] [stdout] 208 |         if (originals[0] == moons[0] && originals[1] == moons[1] && originals[2] == moons[2] && originals[3] == moons[3]) {
[INFO] [stdout]     |            ^                                                                                                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 208 -         if (originals[0] == moons[0] && originals[1] == moons[1] && originals[2] == moons[2] && originals[3] == moons[3]) {
[INFO] [stdout] 208 +         if originals[0] == moons[0] && originals[1] == moons[1] && originals[2] == moons[2] && originals[3] == moons[3] {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/day10b.rs:80:28
[INFO] [stdout]    |
[INFO] [stdout] 80 |                         if (formula == (-2,-1)) {
[INFO] [stdout]    |                            ^                  ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 80 -                         if (formula == (-2,-1)) {
[INFO] [stdout] 80 +                         if formula == (-2,-1) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/day10b.rs:121:14
[INFO] [stdout]     |
[INFO] [stdout] 121 |     let fx = (x as f32);
[INFO] [stdout]     |              ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 121 -     let fx = (x as f32);
[INFO] [stdout] 121 +     let fx = x as f32;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/day12a.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/day12b.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Rem`
[INFO] [stdout]  --> src/day12b.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Rem;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/day12b.rs:144:12
[INFO] [stdout]     |
[INFO] [stdout] 144 |         if (steps == 2){
[INFO] [stdout]     |            ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 144 -         if (steps == 2){
[INFO] [stdout] 144 +         if steps == 2 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/day12b.rs:149:12
[INFO] [stdout]     |
[INFO] [stdout] 149 |         if (original_a == *moon_a && original_b == *moon_b && original_c == *moon_c && original_d == *moon_d) {
[INFO] [stdout]     |            ^                                                                                                ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 149 -         if (original_a == *moon_a && original_b == *moon_b && original_c == *moon_c && original_d == *moon_d) {
[INFO] [stdout] 149 +         if original_a == *moon_a && original_b == *moon_b && original_c == *moon_c && original_d == *moon_d {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/day12b.rs:208:12
[INFO] [stdout]     |
[INFO] [stdout] 208 |         if (originals[0] == moons[0] && originals[1] == moons[1] && originals[2] == moons[2] && originals[3] == moons[3]) {
[INFO] [stdout]     |            ^                                                                                                            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 208 -         if (originals[0] == moons[0] && originals[1] == moons[1] && originals[2] == moons[2] && originals[3] == moons[3]) {
[INFO] [stdout] 208 +         if originals[0] == moons[0] && originals[1] == moons[1] && originals[2] == moons[2] && originals[3] == moons[3] {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/day10b.rs:155:9
[INFO] [stdout]     |
[INFO] [stdout] 155 |     let mut non_sorted_vec = get_sorted_formulas(map.clone(), (28, 29));
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/day12a.rs:29:10
[INFO] [stdout]    |
[INFO] [stdout] 29 |     for (i, line) in lines.into_iter().enumerate() {
[INFO] [stdout]    |          ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/day12a.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |     let mut moon_x = &mut moons[0];
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_a`
[INFO] [stdout]   --> src/day12a.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let moon_a =  &mut moons[0];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_b`
[INFO] [stdout]   --> src/day12a.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let moon_b = &mut moons[1];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_c`
[INFO] [stdout]   --> src/day12a.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let moon_c = &mut moons[2];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_d`
[INFO] [stdout]   --> src/day12a.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let moon_d = &mut moons[3];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/day12a.rs:77:17
[INFO] [stdout]    |
[INFO] [stdout] 77 | fn physics_step(mut moons : &mut Vec<Moon>, steps : i32) -> Vec<Moon> {
[INFO] [stdout]    |                 ----^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/day12a.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     for t in 0..steps { 
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/day12b.rs:164:17
[INFO] [stdout]     |
[INFO] [stdout] 164 | fn physics_step(mut moons : &mut Vec<Moon>) -> i64 {
[INFO] [stdout]     |                 ----^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AsteroidInfoScanner` is never constructed
[INFO] [stdout]   --> src/day10a.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct AsteroidInfoScanner {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex2` is never used
[INFO] [stdout]    --> src/day10a.rs:188:4
[INFO] [stdout]     |
[INFO] [stdout] 188 | fn test_day10a_formula_ex2() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex3` is never used
[INFO] [stdout]    --> src/day10a.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn test_day10a_formula_ex3() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex4` is never used
[INFO] [stdout]    --> src/day10a.rs:225:4
[INFO] [stdout]     |
[INFO] [stdout] 225 | fn test_day10a_formula_ex4() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SpaceObject` is never used
[INFO] [stdout]  --> src/day10b.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | enum SpaceObject {
[INFO] [stdout]   |      ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AsteroidInfoScanner` is never constructed
[INFO] [stdout]   --> src/day10b.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct AsteroidInfoScanner {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file` is never used
[INFO] [stdout]   --> src/day10b.rs:19:4
[INFO] [stdout]    |
[INFO] [stdout] 19 | fn read_file() -> String {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_input` is never used
[INFO] [stdout]   --> src/day10b.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn parse_input (input : String) -> HashMap<(i32,i32), SpaceObject> {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]   --> src/day10b.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn gcd(mut a: i32, mut b : i32 ) ->  i32 {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_forumla` is never used
[INFO] [stdout]   --> src/day10b.rs:56:4
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn find_forumla((x2, y2) :(i32, i32), (x1, y1) : (i32, i32)) -> (i32, i32) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_spaces_at_distance` is never used
[INFO] [stdout]   --> src/day10b.rs:71:4
[INFO] [stdout]    |
[INFO] [stdout] 71 | fn check_spaces_at_distance(map: HashMap<(i32,i32), SpaceObject>, (x,y): (i32, i32), distance : i32) -> HashSet<(i32, i32)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_formulas` is never used
[INFO] [stdout]   --> src/day10b.rs:97:4
[INFO] [stdout]    |
[INFO] [stdout] 97 | fn get_all_formulas(map: HashMap<(i32,i32), SpaceObject>, (x,y): (i32, i32)) -> HashSet<(i32, i32)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_sorted_formulas` is never used
[INFO] [stdout]    --> src/day10b.rs:108:4
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn get_sorted_formulas(map: HashMap<(i32,i32), SpaceObject>, (x,y): (i32, i32)) -> Vec<(i32, i32)> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_polar_radian` is never used
[INFO] [stdout]    --> src/day10b.rs:120:4
[INFO] [stdout]     |
[INFO] [stdout] 120 | fn get_polar_radian((x,y): (i32, i32)) -> f32 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sort_by_polar` is never used
[INFO] [stdout]    --> src/day10b.rs:131:4
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn sort_by_polar((x1,y1) :(i32,i32), (x2,y2) :(i32,i32)) -> std::cmp::Ordering {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calc` is never used
[INFO] [stdout]    --> src/day10b.rs:139:8
[INFO] [stdout]     |
[INFO] [stdout] 139 | pub fn calc() -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex0` is never used
[INFO] [stdout]    --> src/day10b.rs:182:4
[INFO] [stdout]     |
[INFO] [stdout] 182 | fn test_day10a_formula_ex0() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_moon_pairs` is never used
[INFO] [stdout]   --> src/day12a.rs:52:4
[INFO] [stdout]    |
[INFO] [stdout] 52 | fn get_moon_pairs(moons : &mut Vec<Moon>) -> Vec<(&mut Moon, &mut Moon)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clamp` is never used
[INFO] [stdout]   --> src/day12b.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn clamp(input: i16, min: i16, max: i16) -> i16 {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `physics_step2` is never used
[INFO] [stdout]   --> src/day12b.rs:80:4
[INFO] [stdout]    |
[INFO] [stdout] 80 | fn physics_step2(moon_a : &mut Moon, moon_b : &mut Moon, moon_c : &mut Moon, moon_d : &mut Moon,) -> i64 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]   --> src/day7b.rs:97:17
[INFO] [stdout]    |
[INFO] [stdout] 97 |                 &mem.insert(-2, idx +2);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 97 |                 let _ = &mem.insert(-2, idx +2);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day7b.rs:132:21
[INFO] [stdout]     |
[INFO] [stdout] 132 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 132 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day7b.rs:134:21
[INFO] [stdout]     |
[INFO] [stdout] 134 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 134 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day7b.rs:155:17
[INFO] [stdout]     |
[INFO] [stdout] 155 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 155 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9a.rs:167:21
[INFO] [stdout]     |
[INFO] [stdout] 167 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 167 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9a.rs:169:21
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9a.rs:199:17
[INFO] [stdout]     |
[INFO] [stdout] 199 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 199 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9b.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9b.rs:170:21
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9b.rs:200:17
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&(i32, i32)` instead of cloning the inner type
[INFO] [stdout]    --> src/day10b.rs:197:25
[INFO] [stdout]     |
[INFO] [stdout] 197 |         sort_by_polar(*a.clone(), *b.clone())
[INFO] [stdout]     |                         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&(i32, i32)` instead of cloning the inner type
[INFO] [stdout]    --> src/day10b.rs:197:37
[INFO] [stdout]     |
[INFO] [stdout] 197 |         sort_by_polar(*a.clone(), *b.clone())
[INFO] [stdout]     |                                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day11b.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day11b.rs:170:21
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day11b.rs:200:17
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/day10b.rs:155:9
[INFO] [stdout]     |
[INFO] [stdout] 155 |     let mut non_sorted_vec = get_sorted_formulas(map.clone(), (28, 29));
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/day12a.rs:29:10
[INFO] [stdout]    |
[INFO] [stdout] 29 |     for (i, line) in lines.into_iter().enumerate() {
[INFO] [stdout]    |          ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/day12a.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |     let mut moon_x = &mut moons[0];
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_a`
[INFO] [stdout]   --> src/day12a.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let moon_a =  &mut moons[0];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_b`
[INFO] [stdout]   --> src/day12a.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let moon_b = &mut moons[1];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_c`
[INFO] [stdout]   --> src/day12a.rs:60:9
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let moon_c = &mut moons[2];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `moon_d`
[INFO] [stdout]   --> src/day12a.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     let moon_d = &mut moons[3];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_moon_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/day12a.rs:77:17
[INFO] [stdout]    |
[INFO] [stdout] 77 | fn physics_step(mut moons : &mut Vec<Moon>, steps : i32) -> Vec<Moon> {
[INFO] [stdout]    |                 ----^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/day12a.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     for t in 0..steps { 
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/day12b.rs:164:17
[INFO] [stdout]     |
[INFO] [stdout] 164 | fn physics_step(mut moons : &mut Vec<Moon>) -> i64 {
[INFO] [stdout]     |                 ----^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AsteroidInfoScanner` is never constructed
[INFO] [stdout]   --> src/day10a.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct AsteroidInfoScanner {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex2` is never used
[INFO] [stdout]    --> src/day10a.rs:188:4
[INFO] [stdout]     |
[INFO] [stdout] 188 | fn test_day10a_formula_ex2() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex3` is never used
[INFO] [stdout]    --> src/day10a.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn test_day10a_formula_ex3() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex4` is never used
[INFO] [stdout]    --> src/day10a.rs:225:4
[INFO] [stdout]     |
[INFO] [stdout] 225 | fn test_day10a_formula_ex4() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SpaceObject` is never used
[INFO] [stdout]  --> src/day10b.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | enum SpaceObject {
[INFO] [stdout]   |      ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AsteroidInfoScanner` is never constructed
[INFO] [stdout]   --> src/day10b.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct AsteroidInfoScanner {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file` is never used
[INFO] [stdout]   --> src/day10b.rs:19:4
[INFO] [stdout]    |
[INFO] [stdout] 19 | fn read_file() -> String {
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_input` is never used
[INFO] [stdout]   --> src/day10b.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn parse_input (input : String) -> HashMap<(i32,i32), SpaceObject> {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gcd` is never used
[INFO] [stdout]   --> src/day10b.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn gcd(mut a: i32, mut b : i32 ) ->  i32 {
[INFO] [stdout]    |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_forumla` is never used
[INFO] [stdout]   --> src/day10b.rs:56:4
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn find_forumla((x2, y2) :(i32, i32), (x1, y1) : (i32, i32)) -> (i32, i32) {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_spaces_at_distance` is never used
[INFO] [stdout]   --> src/day10b.rs:71:4
[INFO] [stdout]    |
[INFO] [stdout] 71 | fn check_spaces_at_distance(map: HashMap<(i32,i32), SpaceObject>, (x,y): (i32, i32), distance : i32) -> HashSet<(i32, i32)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_formulas` is never used
[INFO] [stdout]   --> src/day10b.rs:97:4
[INFO] [stdout]    |
[INFO] [stdout] 97 | fn get_all_formulas(map: HashMap<(i32,i32), SpaceObject>, (x,y): (i32, i32)) -> HashSet<(i32, i32)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_sorted_formulas` is never used
[INFO] [stdout]    --> src/day10b.rs:108:4
[INFO] [stdout]     |
[INFO] [stdout] 108 | fn get_sorted_formulas(map: HashMap<(i32,i32), SpaceObject>, (x,y): (i32, i32)) -> Vec<(i32, i32)> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sort_by_polar` is never used
[INFO] [stdout]    --> src/day10b.rs:131:4
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn sort_by_polar((x1,y1) :(i32,i32), (x2,y2) :(i32,i32)) -> std::cmp::Ordering {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calc` is never used
[INFO] [stdout]    --> src/day10b.rs:139:8
[INFO] [stdout]     |
[INFO] [stdout] 139 | pub fn calc() -> usize {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_day10a_formula_ex0` is never used
[INFO] [stdout]    --> src/day10b.rs:182:4
[INFO] [stdout]     |
[INFO] [stdout] 182 | fn test_day10a_formula_ex0() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_moon_pairs` is never used
[INFO] [stdout]   --> src/day12a.rs:52:4
[INFO] [stdout]    |
[INFO] [stdout] 52 | fn get_moon_pairs(moons : &mut Vec<Moon>) -> Vec<(&mut Moon, &mut Moon)> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clamp` is never used
[INFO] [stdout]   --> src/day12b.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn clamp(input: i16, min: i16, max: i16) -> i16 {
[INFO] [stdout]    |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]   --> src/day7b.rs:97:17
[INFO] [stdout]    |
[INFO] [stdout] 97 |                 &mem.insert(-2, idx +2);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 97 |                 let _ = &mem.insert(-2, idx +2);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day7b.rs:132:21
[INFO] [stdout]     |
[INFO] [stdout] 132 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 132 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day7b.rs:134:21
[INFO] [stdout]     |
[INFO] [stdout] 134 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 134 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day7b.rs:155:17
[INFO] [stdout]     |
[INFO] [stdout] 155 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 155 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9a.rs:167:21
[INFO] [stdout]     |
[INFO] [stdout] 167 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 167 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9a.rs:169:21
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9a.rs:199:17
[INFO] [stdout]     |
[INFO] [stdout] 199 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 199 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9b.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9b.rs:170:21
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day9b.rs:200:17
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&(i32, i32)` instead of cloning the inner type
[INFO] [stdout]    --> src/day10b.rs:197:25
[INFO] [stdout]     |
[INFO] [stdout] 197 |         sort_by_polar(*a.clone(), *b.clone())
[INFO] [stdout]     |                         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(suspicious_double_ref_op)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&(i32, i32)` instead of cloning the inner type
[INFO] [stdout]    --> src/day10b.rs:197:37
[INFO] [stdout]     |
[INFO] [stdout] 197 |         sort_by_polar(*a.clone(), *b.clone())
[INFO] [stdout]     |                                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day11b.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     &mem.insert(location, 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = &mem.insert(location, 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day11b.rs:170:21
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     &mem.insert(location, 0);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 170 |                     let _ = &mem.insert(location, 0);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused borrow that must be used
[INFO] [stdout]    --> src/day11b.rs:200:17
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 &mem.insert(-2, -1);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ the borrow produces a value
[INFO] [stdout]     |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 200 |                 let _ = &mem.insert(-2, -1);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s
[INFO] running `Command { std: "docker" "inspect" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751", kill_on_drop: false }`
[INFO] [stdout] 99df754efec30e258d042261bc56647e4d27db524eaadb27b2d72136ffa97751
