[INFO] cloning repository https://github.com/fabienjuif/codingame-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fabienjuif/codingame-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabienjuif%2Fcodingame-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffabienjuif%2Fcodingame-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a16292882674f44d99bdac8ca5808d8de31ce54 [INFO] building fabienjuif/codingame-rust 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%2Ffabienjuif%2Fcodingame-rust" "/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/fabienjuif/codingame-rust 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/fabienjuif/codingame-rust [INFO] finished tweaking git repo https://github.com/fabienjuif/codingame-rust [INFO] tweaked toml for git repo https://github.com/fabienjuif/codingame-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fabienjuif/codingame-rust 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] 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] 77b3fea6242d17e6fa41e9b9143968e426704ffdc20ffb54f8b726b4c4520c7b [INFO] running `Command { std: "docker" "start" "-a" "77b3fea6242d17e6fa41e9b9143968e426704ffdc20ffb54f8b726b4c4520c7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77b3fea6242d17e6fa41e9b9143968e426704ffdc20ffb54f8b726b4c4520c7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77b3fea6242d17e6fa41e9b9143968e426704ffdc20ffb54f8b726b4c4520c7b", kill_on_drop: false }` [INFO] [stdout] 77b3fea6242d17e6fa41e9b9143968e426704ffdc20ffb54f8b726b4c4520c7b [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] 4ce15e0bc8edc1a5baaf5249d6504de828dd5812a7dc8f804f82b5c2c4ae7dff [INFO] running `Command { std: "docker" "start" "-a" "4ce15e0bc8edc1a5baaf5249d6504de828dd5812a7dc8f804f82b5c2c4ae7dff", kill_on_drop: false }` [INFO] [stderr] Compiling codinggame_backtocode_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/shadows-of-the-knight-episode-1.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let n = parse_input!(input_line, i32); // maximum number of turns before game over. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_rounds` [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let nb_rounds = parse_input!(inputs[2], i32); // maximum number of rounds [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_rounds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_total_clones` [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let nb_total_clones = parse_input!(inputs[5], i32); // number of generated clones [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_total_clones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_additional_elevators` [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let nb_additional_elevators = parse_input!(inputs[6], i32); // ignore (always zero) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_additional_elevators` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Clone` is never constructed [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum CellType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | Clone, // A robot [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `heigh` is never read [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 36 | pub width: i32, [INFO] [stdout] 37 | pub heigh: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from` and `to` are never read [INFO] [stdout] --> src/bin/code-vs-zombies.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct Distance { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 33 | from: Point, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | to: Point, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Distance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/code-vs-zombies.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Distance { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 39 | pub fn new(from: Point, to: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pos` is never read [INFO] [stdout] --> src/bin/code-vs-zombies.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Cell { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 61 | pos: Point, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/bin/code-vs-zombies.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height` and `width` are never read [INFO] [stdout] --> src/bin/code-vs-zombies.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | struct Grid { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 83 | height: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 84 | width: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grid` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:779:9 [INFO] [stdout] | [INFO] [stdout] 779 | for i in 0..num_all_customers as usize { [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: `customer_item` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:783:13 [INFO] [stdout] | [INFO] [stdout] 783 | let customer_item = inputs[0].trim().to_string(); // the food the customer is waiting for [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_customer_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `customer_award` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:784:13 [INFO] [stdout] | [INFO] [stdout] 784 | let customer_award = parse_input!(inputs[1], i32); // the number of points awarded for delivering the food [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_customer_award` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turns_remaining` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:798:13 [INFO] [stdout] | [INFO] [stdout] 798 | let turns_remaining = parse_input!(input_line, i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turns_remaining` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_squared_distance`, `get_distance`, and `manhattan_distance` are never used [INFO] [stdout] --> src/bin/code-a-la-mode.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_squared_distance(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_distance(&self, pos: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn manhattan_distance(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset` and `is_visitable` are never used [INFO] [stdout] --> src/bin/code-a-la-mode.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_visitable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AStarPoint` is never constructed [INFO] [stdout] --> src/bin/code-a-la-mode.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | struct AStarPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cell_cost`, `reset`, `get_neighbors_points`, and `astar` are never used [INFO] [stdout] --> src/bin/code-a-la-mode.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl Grid { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn get_cell_cost(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_neighbors_points(&self, pos: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn astar(&self, start: &Point, target: &Point, debug: bool) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `award` is never read [INFO] [stdout] --> src/bin/code-a-la-mode.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 393 | struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 396 | award: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_squared_distance` and `get_distance` are never used [INFO] [stdout] --> src/bin/the-labyrinth.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_squared_distance(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_distance(&self, pos: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/bin/the-labyrinth.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/bin/the-labyrinth.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Grid { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alarm` is never read [INFO] [stdout] --> src/bin/the-labyrinth.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 302 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 303 | grid: Grid, [INFO] [stdout] 304 | alarm: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STARTING_SQUARE_WIDTH` is never used [INFO] [stdout] --> src/bin/back-to-the-code.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const STARTING_SQUARE_WIDTH: i32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_at` is never used [INFO] [stdout] --> src/bin/back-to-the-code.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_at(&self, other: &Cell) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.38s [INFO] running `Command { std: "docker" "inspect" "4ce15e0bc8edc1a5baaf5249d6504de828dd5812a7dc8f804f82b5c2c4ae7dff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ce15e0bc8edc1a5baaf5249d6504de828dd5812a7dc8f804f82b5c2c4ae7dff", kill_on_drop: false }` [INFO] [stdout] 4ce15e0bc8edc1a5baaf5249d6504de828dd5812a7dc8f804f82b5c2c4ae7dff [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] 0387272adb19a8ec0c330e432bafc637c58a4f997772f4cf7078cf4a2ba5083e [INFO] running `Command { std: "docker" "start" "-a" "0387272adb19a8ec0c330e432bafc637c58a4f997772f4cf7078cf4a2ba5083e", kill_on_drop: false }` [INFO] [stderr] Compiling codinggame_backtocode_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/shadows-of-the-knight-episode-1.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let n = parse_input!(input_line, i32); // maximum number of turns before game over. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_rounds` [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let nb_rounds = parse_input!(inputs[2], i32); // maximum number of rounds [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_rounds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_total_clones` [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let nb_total_clones = parse_input!(inputs[5], i32); // number of generated clones [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_total_clones` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_additional_elevators` [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let nb_additional_elevators = parse_input!(inputs[6], i32); // ignore (always zero) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_additional_elevators` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from` and `to` are never read [INFO] [stdout] --> src/bin/code-vs-zombies.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct Distance { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 33 | from: Point, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | to: Point, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Distance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/code-vs-zombies.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Distance { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 39 | pub fn new(from: Point, to: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pos` is never read [INFO] [stdout] --> src/bin/code-vs-zombies.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Cell { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 61 | pos: Point, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/bin/code-vs-zombies.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height` and `width` are never read [INFO] [stdout] --> src/bin/code-vs-zombies.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 82 | struct Grid { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 83 | height: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 84 | width: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grid` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Clone` is never constructed [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum CellType { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | Clone, // A robot [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `heigh` is never read [INFO] [stdout] --> src/bin/dont-panic-episode-1.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 36 | pub width: i32, [INFO] [stdout] 37 | pub heigh: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_squared_distance` and `get_distance` are never used [INFO] [stdout] --> src/bin/the-labyrinth.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_squared_distance(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_distance(&self, pos: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/bin/the-labyrinth.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/bin/the-labyrinth.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Grid { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alarm` is never read [INFO] [stdout] --> src/bin/the-labyrinth.rs:304:5 [INFO] [stdout] | [INFO] [stdout] 302 | struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 303 | grid: Grid, [INFO] [stdout] 304 | alarm: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:779:9 [INFO] [stdout] | [INFO] [stdout] 779 | for i in 0..num_all_customers as usize { [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: `customer_item` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:783:13 [INFO] [stdout] | [INFO] [stdout] 783 | let customer_item = inputs[0].trim().to_string(); // the food the customer is waiting for [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_customer_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `customer_award` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:784:13 [INFO] [stdout] | [INFO] [stdout] 784 | let customer_award = parse_input!(inputs[1], i32); // the number of points awarded for delivering the food [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_customer_award` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `turns_remaining` [INFO] [stdout] --> src/bin/code-a-la-mode.rs:798:13 [INFO] [stdout] | [INFO] [stdout] 798 | let turns_remaining = parse_input!(input_line, i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turns_remaining` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STARTING_SQUARE_WIDTH` is never used [INFO] [stdout] --> src/bin/back-to-the-code.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const STARTING_SQUARE_WIDTH: i32 = 18; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_at` is never used [INFO] [stdout] --> src/bin/back-to-the-code.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_at(&self, other: &Cell) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_squared_distance`, `get_distance`, and `manhattan_distance` are never used [INFO] [stdout] --> src/bin/code-a-la-mode.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_squared_distance(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn get_distance(&self, pos: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn manhattan_distance(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset` and `is_visitable` are never used [INFO] [stdout] --> src/bin/code-a-la-mode.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn is_visitable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AStarPoint` is never constructed [INFO] [stdout] --> src/bin/code-a-la-mode.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | struct AStarPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cell_cost`, `reset`, `get_neighbors_points`, and `astar` are never used [INFO] [stdout] --> src/bin/code-a-la-mode.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl Grid { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn get_cell_cost(&self, pos: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn get_neighbors_points(&self, pos: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn astar(&self, start: &Point, target: &Point, debug: bool) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `award` is never read [INFO] [stdout] --> src/bin/code-a-la-mode.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 393 | struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 396 | award: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Command` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "0387272adb19a8ec0c330e432bafc637c58a4f997772f4cf7078cf4a2ba5083e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0387272adb19a8ec0c330e432bafc637c58a4f997772f4cf7078cf4a2ba5083e", kill_on_drop: false }` [INFO] [stdout] 0387272adb19a8ec0c330e432bafc637c58a4f997772f4cf7078cf4a2ba5083e