[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamn%2Fadvent_of_code_2019" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kamn/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/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-12/source/Cargo.toml [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: "/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-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] dc0a93f26f6b2800c5e65bd6639e0d5c72427d3d4d8219f55bc03c6e8fdb6b4f [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" "dc0a93f26f6b2800c5e65bd6639e0d5c72427d3d4d8219f55bc03c6e8fdb6b4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc0a93f26f6b2800c5e65bd6639e0d5c72427d3d4d8219f55bc03c6e8fdb6b4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc0a93f26f6b2800c5e65bd6639e0d5c72427d3d4d8219f55bc03c6e8fdb6b4f", kill_on_drop: false }` [INFO] [stdout] dc0a93f26f6b2800c5e65bd6639e0d5c72427d3d4d8219f55bc03c6e8fdb6b4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] fb1f727b745d4d92cecfd64c30ecbb709950c00340ae3316fbed0fffb1e71cd8 [INFO] running `Command { std: "docker" "start" "-a" "fb1f727b745d4d92cecfd64c30ecbb709950c00340ae3316fbed0fffb1e71cd8", kill_on_drop: false }` [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] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^ help: remove these parentheses [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)]` 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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [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] | ^^^^^^^^^^ help: remove these parentheses [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)]` 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] | ^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [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)]` on by default [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: 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/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)]` on by default [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, steps : i32) -> 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/day12b.rs:164:17 [INFO] [stdout] | [INFO] [stdout] 164 | fn physics_step(mut moons : &mut Vec) -> i64 { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_day10a_formula_ex2` [INFO] [stdout] --> src/day10a.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 188 | fn test_day10a_formula_ex2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_day10a_formula_ex3` [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 is never used: `test_day10a_formula_ex4` [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: variant is never constructed: `Nothing` [INFO] [stdout] --> src/day10b.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Asteroid` [INFO] [stdout] --> src/day10b.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Asteroid [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_file` [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 is never used: `parse_input` [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 is never used: `gcd` [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 is never used: `find_forumla` [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 is never used: `check_spaces_at_distance` [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 is never used: `get_all_formulas` [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 is never used: `get_sorted_formulas` [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 is never used: `get_polar_radian` [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 is never used: `sort_by_polar` [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 is never used: `calc` [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 is never used: `test_day10a_formula_ex0` [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 is never used: `get_moon_pairs` [INFO] [stdout] --> src/day12a.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_moon_pairs(moons : &mut Vec) -> Vec<(&mut Moon, &mut Moon)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp` [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 is never used: `physics_step2` [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: 36 warnings emitted [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)]` on by default [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: 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/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)]` on by default [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, steps : i32) -> 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/day12b.rs:164:17 [INFO] [stdout] | [INFO] [stdout] 164 | fn physics_step(mut moons : &mut Vec) -> i64 { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_day10a_formula_ex2` [INFO] [stdout] --> src/day10a.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 188 | fn test_day10a_formula_ex2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_day10a_formula_ex3` [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 is never used: `test_day10a_formula_ex4` [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: variant is never constructed: `Nothing` [INFO] [stdout] --> src/day10b.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Nothing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Asteroid` [INFO] [stdout] --> src/day10b.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Asteroid [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_file` [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 is never used: `parse_input` [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 is never used: `gcd` [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 is never used: `find_forumla` [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 is never used: `check_spaces_at_distance` [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 is never used: `get_all_formulas` [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 is never used: `get_sorted_formulas` [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 is never used: `sort_by_polar` [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 is never used: `calc` [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 is never used: `test_day10a_formula_ex0` [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 is never used: `get_moon_pairs` [INFO] [stdout] --> src/day12a.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_moon_pairs(moons : &mut Vec) -> Vec<(&mut Moon, &mut Moon)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `clamp` [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: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.51s [INFO] running `Command { std: "docker" "inspect" "fb1f727b745d4d92cecfd64c30ecbb709950c00340ae3316fbed0fffb1e71cd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb1f727b745d4d92cecfd64c30ecbb709950c00340ae3316fbed0fffb1e71cd8", kill_on_drop: false }` [INFO] [stdout] fb1f727b745d4d92cecfd64c30ecbb709950c00340ae3316fbed0fffb1e71cd8