[INFO] cloning repository https://github.com/peterolson/make-the-cows-come-home-solver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peterolson/make-the-cows-come-home-solver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeterolson%2Fmake-the-cows-come-home-solver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeterolson%2Fmake-the-cows-come-home-solver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e98fd1528fb46be1347ee041ead0cf3dbdb5565 [INFO] building peterolson/make-the-cows-come-home-solver against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeterolson%2Fmake-the-cows-come-home-solver" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/peterolson/make-the-cows-come-home-solver on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/peterolson/make-the-cows-come-home-solver [INFO] finished tweaking git repo https://github.com/peterolson/make-the-cows-come-home-solver [INFO] tweaked toml for git repo https://github.com/peterolson/make-the-cows-come-home-solver written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/peterolson/make-the-cows-come-home-solver already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a14f0d3923cdbc35793560ca535e2fdc859075594d31241335e955ab43e31d4e [INFO] running `Command { std: "docker" "start" "-a" "a14f0d3923cdbc35793560ca535e2fdc859075594d31241335e955ab43e31d4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a14f0d3923cdbc35793560ca535e2fdc859075594d31241335e955ab43e31d4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a14f0d3923cdbc35793560ca535e2fdc859075594d31241335e955ab43e31d4e", kill_on_drop: false }` [INFO] [stdout] a14f0d3923cdbc35793560ca535e2fdc859075594d31241335e955ab43e31d4e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38212be4fc18d904a54ca0b3b44ba418ba7f91176aa6406c0640adae5b18b2f9 [INFO] running `Command { std: "docker" "start" "-a" "38212be4fc18d904a54ca0b3b44ba418ba7f91176aa6406c0640adae5b18b2f9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling solver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | 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: `collections::HashMap` [INFO] [stdout] --> src/combine.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fs, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::Board` [INFO] [stdout] --> src/combine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::board::Board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty_span` [INFO] [stdout] --> src/combine.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let difficulty_span = max_difficulty - min_difficulty; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty_span` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Cow`, `Person`, `House`, `Barn`, `Empty`, and `Blank` are never constructed [INFO] [stdout] --> src/board.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 8 | Cow, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | Person, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | House, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Barn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Blank, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 24 | fn new(width: u8, height: u8) -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn set(&mut self, x: u8, y: u8, piece: Piece) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn set_index(&mut self, index: usize, piece: Piece) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_moves_from(&self, index: u8) -> Vec<(u8, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_reverse_moves(&self, index: u8) -> Vec<(u8, u8, u8, Piece)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | fn check_reverse_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | pub fn get_possible_moves(&self) -> Vec<(Board, u8, u8, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub fn get_possible_previous_boards(&self) -> Vec<(Board, u8, u8, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 502 | pub fn is_solved(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 520 | pub fn from_string(s: &str) -> Board { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 548 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 570 | fn rotate(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 584 | fn flip_horizontal(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 596 | fn switch_cow_person(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 609 | pub fn get_symmetric_variants(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 632 | pub fn count_piece(&self, piece: Piece) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_move` is never used [INFO] [stdout] --> src/board.rs:643:4 [INFO] [stdout] | [INFO] [stdout] 643 | fn check_move( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRECTORY` is never used [INFO] [stdout] --> src/generate.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const DIRECTORY: &str = if HEXAGONAL_MODE { "hex" } else { "rect" }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_puzzles` is never used [INFO] [stdout] --> src/generate.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn generate_puzzles(width: u8, height: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_initial_boards` is never used [INFO] [stdout] --> src/generate.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_initial_boards(width: u8, height: u8, barn_count : u8, house_count: u8, empty_count: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_boards` is never used [INFO] [stdout] --> src/generate.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn generate_boards( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_with_prefix` is never used [INFO] [stdout] --> src/generate.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn generate_with_prefix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_sample` is never used [INFO] [stdout] --> src/generate.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn random_sample(v: Vec, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReverseSolution` is never constructed [INFO] [stdout] --> src/reverse_solver.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ReverseSolution { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReverseSolution` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_solve` is never used [INFO] [stdout] --> src/reverse_solver.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn reverse_solve( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_people_locations` is never used [INFO] [stdout] --> src/reverse_solver.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn choose_people_locations(board: &Board, max_person_count: u8, board_queue: &mut VecDeque<(Board, ReverseSolution)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_combinations` is never used [INFO] [stdout] --> src/reverse_solver.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn get_combinations(combinations: &mut Vec>, blank_indices: &Vec, max_count: usize, index: usize, current_combination: Vec src/solve.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/solve.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Solution { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Solution` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/solve.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn solve(board : Board, solution_map : &mut HashMap) -> Solution { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_internal` is never used [INFO] [stdout] --> src/solve.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn solve_internal(board : Board, solution_map : &mut HashMap, encountered_boards : &mut HashSet) -> Solution { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `uses_all_pieces`, `uses_all_rows_columns`, and `is_elegant` are never used [INFO] [stdout] --> src/solve.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Solution { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 85 | pub fn uses_all_pieces(&self, board: &Board) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn uses_all_rows_columns(&self, board: &Board) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn is_elegant(&self, board: &Board) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.28s [INFO] running `Command { std: "docker" "inspect" "38212be4fc18d904a54ca0b3b44ba418ba7f91176aa6406c0640adae5b18b2f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38212be4fc18d904a54ca0b3b44ba418ba7f91176aa6406c0640adae5b18b2f9", kill_on_drop: false }` [INFO] [stdout] 38212be4fc18d904a54ca0b3b44ba418ba7f91176aa6406c0640adae5b18b2f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a553f2cd37a69c0a66133f4201a02416f7ea9bdb9c6dcaa059be5f0a27f85a8 [INFO] running `Command { std: "docker" "start" "-a" "2a553f2cd37a69c0a66133f4201a02416f7ea9bdb9c6dcaa059be5f0a27f85a8", kill_on_drop: false }` [INFO] [stderr] Compiling solver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | 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: `collections::HashMap` [INFO] [stdout] --> src/combine.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fs, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::Board` [INFO] [stdout] --> src/combine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::board::Board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty_span` [INFO] [stdout] --> src/combine.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let difficulty_span = max_difficulty - min_difficulty; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty_span` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Cow`, `Person`, `House`, `Barn`, `Empty`, and `Blank` are never constructed [INFO] [stdout] --> src/board.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 8 | Cow, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | Person, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | House, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Barn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Blank, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 24 | fn new(width: u8, height: u8) -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn set(&mut self, x: u8, y: u8, piece: Piece) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn set_index(&mut self, index: usize, piece: Piece) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_moves_from(&self, index: u8) -> Vec<(u8, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_reverse_moves(&self, index: u8) -> Vec<(u8, u8, u8, Piece)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | fn check_reverse_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 465 | pub fn get_possible_moves(&self) -> Vec<(Board, u8, u8, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub fn get_possible_previous_boards(&self) -> Vec<(Board, u8, u8, u8)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 502 | pub fn is_solved(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 520 | pub fn from_string(s: &str) -> Board { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 548 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 570 | fn rotate(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 584 | fn flip_horizontal(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 596 | fn switch_cow_person(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 609 | pub fn get_symmetric_variants(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 632 | pub fn count_piece(&self, piece: Piece) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_move` is never used [INFO] [stdout] --> src/board.rs:643:4 [INFO] [stdout] | [INFO] [stdout] 643 | fn check_move( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIRECTORY` is never used [INFO] [stdout] --> src/generate.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const DIRECTORY: &str = if HEXAGONAL_MODE { "hex" } else { "rect" }; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_puzzles` is never used [INFO] [stdout] --> src/generate.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn generate_puzzles(width: u8, height: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_initial_boards` is never used [INFO] [stdout] --> src/generate.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_initial_boards(width: u8, height: u8, barn_count : u8, house_count: u8, empty_count: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_boards` is never used [INFO] [stdout] --> src/generate.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn generate_boards( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_with_prefix` is never used [INFO] [stdout] --> src/generate.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn generate_with_prefix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_sample` is never used [INFO] [stdout] --> src/generate.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn random_sample(v: Vec, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReverseSolution` is never constructed [INFO] [stdout] --> src/reverse_solver.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ReverseSolution { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReverseSolution` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_solve` is never used [INFO] [stdout] --> src/reverse_solver.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn reverse_solve( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `choose_people_locations` is never used [INFO] [stdout] --> src/reverse_solver.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn choose_people_locations(board: &Board, max_person_count: u8, board_queue: &mut VecDeque<(Board, ReverseSolution)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_combinations` is never used [INFO] [stdout] --> src/reverse_solver.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn get_combinations(combinations: &mut Vec>, blank_indices: &Vec, max_count: usize, index: usize, current_combination: Vec src/solve.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/solve.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Solution { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Solution` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/solve.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn solve(board : Board, solution_map : &mut HashMap) -> Solution { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_internal` is never used [INFO] [stdout] --> src/solve.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn solve_internal(board : Board, solution_map : &mut HashMap, encountered_boards : &mut HashSet) -> Solution { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `uses_all_pieces`, `uses_all_rows_columns`, and `is_elegant` are never used [INFO] [stdout] --> src/solve.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Solution { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 85 | pub fn uses_all_pieces(&self, board: &Board) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn uses_all_rows_columns(&self, board: &Board) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn is_elegant(&self, board: &Board) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "2a553f2cd37a69c0a66133f4201a02416f7ea9bdb9c6dcaa059be5f0a27f85a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a553f2cd37a69c0a66133f4201a02416f7ea9bdb9c6dcaa059be5f0a27f85a8", kill_on_drop: false }` [INFO] [stdout] 2a553f2cd37a69c0a66133f4201a02416f7ea9bdb9c6dcaa059be5f0a27f85a8