[INFO] cloning repository https://github.com/alexlai97/snake-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alexlai97/snake-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexlai97%2Fsnake-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexlai97%2Fsnake-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2a2cbe97eb824aacf2d030d6bc5ee731a1aa102 [INFO] building alexlai97/snake-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%2Falexlai97%2Fsnake-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexlai97/snake-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/alexlai97/snake-rust [INFO] finished tweaking git repo https://github.com/alexlai97/snake-rust [INFO] tweaked toml for git repo https://github.com/alexlai97/snake-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/alexlai97/snake-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] Downloading crates ... [INFO] [stderr] Downloaded ncurses v5.98.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ba92dec8db97503159f89cf0538f52dea08003f0e6c5806cf5322dae2353bc6d [INFO] running `Command { std: "docker" "start" "-a" "ba92dec8db97503159f89cf0538f52dea08003f0e6c5806cf5322dae2353bc6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba92dec8db97503159f89cf0538f52dea08003f0e6c5806cf5322dae2353bc6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba92dec8db97503159f89cf0538f52dea08003f0e6c5806cf5322dae2353bc6d", kill_on_drop: false }` [INFO] [stdout] ba92dec8db97503159f89cf0538f52dea08003f0e6c5806cf5322dae2353bc6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 5acdab8a97fc4bc0f715a3b87ca5f0562e48b6e34dc491ec01eafa1fdd1d47f4 [INFO] running `Command { std: "docker" "start" "-a" "5acdab8a97fc4bc0f715a3b87ca5f0562e48b6e34dc491ec01eafa1fdd1d47f4", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling autocfg v0.1.1 [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Compiling cc v1.0.28 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Compiling ncurses v5.98.0 [INFO] [stderr] Compiling rand_os v0.1.0 [INFO] [stderr] Compiling snake-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/snake.rs:17:63 [INFO] [stdout] | [INFO] [stdout] 16 | impl <'a> Snake<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 17 | pub fn new(curwin: &'a WINDOW, max_y: u32, max_x: u32) -> Snake { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Snake_body` should have an upper camel case name [INFO] [stdout] --> src/game.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Snake_body, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SnakeBody` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body_reversed` is never read [INFO] [stdout] --> src/snake.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Snake<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | body_reversed: Vec<(u32, u32)>, // tail is index 0, head is len - 1 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `difficulty` is never read [INFO] [stdout] --> src/game.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | difficulty: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grid` is never read [INFO] [stdout] --> src/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | grid: Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_cell`, `get_cell`, `is_full`, and `generate_apple` are never used [INFO] [stdout] --> src/game.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | fn set_cell(&mut self, y: u32, x: u32, cell: Cell) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn get_cell(&self, y: u32, x:u32) -> & Cell { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn generate_apple(&mut self) -> Option<(u32, u32)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Snake_body` and `Apple` are never constructed [INFO] [stdout] --> src/game.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 75 | enum Cell { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 76 | Snake_body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 77 | Apple, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` 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: method `update_board_win` is never used [INFO] [stdout] --> src/game.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | fn update_board_win(&self, cell: (u32, u32), ch: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:265:92 [INFO] [stdout] | [INFO] [stdout] 265 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. I DON'T CARE ANYTHING MORE", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:267:115 [INFO] [stdout] | [INFO] [stdout] 267 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. WHEN WILL YOU STOP CHEATING ??? CHEATER ! ! ! ! !", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:269:114 [INFO] [stdout] | [INFO] [stdout] 269 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. Do you wanna play my another game tictactoe-rust", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:271:115 [INFO] [stdout] | [INFO] [stdout] 271 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. HERE: https://github.com/alexlai97/tictactoe-rust", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:273:115 [INFO] [stdout] | [INFO] [stdout] 273 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. WHEN WILL YOU STOP CHEATING ??? CHEATER ! ! ! ! !", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:275:138 [INFO] [stdout] | [INFO] [stdout] 275 | ...GAME (with memory leak to your terminal) ", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.34s [INFO] running `Command { std: "docker" "inspect" "5acdab8a97fc4bc0f715a3b87ca5f0562e48b6e34dc491ec01eafa1fdd1d47f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5acdab8a97fc4bc0f715a3b87ca5f0562e48b6e34dc491ec01eafa1fdd1d47f4", kill_on_drop: false }` [INFO] [stdout] 5acdab8a97fc4bc0f715a3b87ca5f0562e48b6e34dc491ec01eafa1fdd1d47f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] b14a726fdd05886a979c2d7b66a4e6021da6b5c8d61a9b37431c943741e27cf3 [INFO] running `Command { std: "docker" "start" "-a" "b14a726fdd05886a979c2d7b66a4e6021da6b5c8d61a9b37431c943741e27cf3", kill_on_drop: false }` [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/snake.rs:17:63 [INFO] [stdout] | [INFO] [stdout] 16 | impl <'a> Snake<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 17 | pub fn new(curwin: &'a WINDOW, max_y: u32, max_x: u32) -> Snake { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Snake_body` should have an upper camel case name [INFO] [stdout] --> src/game.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Snake_body, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SnakeBody` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body_reversed` is never read [INFO] [stdout] --> src/snake.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Snake<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | body_reversed: Vec<(u32, u32)>, // tail is index 0, head is len - 1 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `difficulty` is never read [INFO] [stdout] --> src/game.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | difficulty: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grid` is never read [INFO] [stdout] --> src/game.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | grid: Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_cell`, `get_cell`, `is_full`, and `generate_apple` are never used [INFO] [stdout] --> src/game.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | fn set_cell(&mut self, y: u32, x: u32, cell: Cell) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn get_cell(&self, y: u32, x:u32) -> & Cell { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn generate_apple(&mut self) -> Option<(u32, u32)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Snake_body` and `Apple` are never constructed [INFO] [stdout] --> src/game.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 75 | enum Cell { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 76 | Snake_body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 77 | Apple, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` 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: method `update_board_win` is never used [INFO] [stdout] --> src/game.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | fn update_board_win(&self, cell: (u32, u32), ch: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:265:92 [INFO] [stdout] | [INFO] [stdout] 265 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. I DON'T CARE ANYTHING MORE", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:267:115 [INFO] [stdout] | [INFO] [stdout] 267 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. WHEN WILL YOU STOP CHEATING ??? CHEATER ! ! ! ! !", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:269:114 [INFO] [stdout] | [INFO] [stdout] 269 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. Do you wanna play my another game tictactoe-rust", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:271:115 [INFO] [stdout] | [INFO] [stdout] 271 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. HERE: https://github.com/alexlai97/tictactoe-rust", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling snake-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:273:115 [INFO] [stdout] | [INFO] [stdout] 273 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. WHEN WILL YOU STOP CHEATING ??? CHEATER ! ! ! ! !", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:275:138 [INFO] [stdout] | [INFO] [stdout] 275 | ...GAME (with memory leak to your terminal) ", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/snake.rs:17:63 [INFO] [stdout] | [INFO] [stdout] 16 | impl <'a> Snake<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 17 | pub fn new(curwin: &'a WINDOW, max_y: u32, max_x: u32) -> Snake { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Snake_body` should have an upper camel case name [INFO] [stdout] --> src/game.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Snake_body, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SnakeBody` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `body_reversed` is never read [INFO] [stdout] --> src/snake.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Snake<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | body_reversed: Vec<(u32, u32)>, // tail is index 0, head is len - 1 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `difficulty` is never read [INFO] [stdout] --> src/game.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | difficulty: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cell`, `is_full`, and `generate_apple` are never used [INFO] [stdout] --> src/game.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | fn get_cell(&self, y: u32, x:u32) -> & Cell { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn is_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn generate_apple(&mut self) -> Option<(u32, u32)>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Snake_body` is never constructed [INFO] [stdout] --> src/game.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 75 | enum Cell { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 76 | Snake_body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` 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: method `update_board_win` is never used [INFO] [stdout] --> src/game.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | fn update_board_win(&self, cell: (u32, u32), ch: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:265:92 [INFO] [stdout] | [INFO] [stdout] 265 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. I DON'T CARE ANYTHING MORE", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:267:115 [INFO] [stdout] | [INFO] [stdout] 267 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. WHEN WILL YOU STOP CHEATING ??? CHEATER ! ! ! ! !", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:269:114 [INFO] [stdout] | [INFO] [stdout] 269 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. Do you wanna play my another game tictactoe-rust", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:271:115 [INFO] [stdout] | [INFO] [stdout] 271 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. HERE: https://github.com/alexlai97/tictactoe-rust", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:273:115 [INFO] [stdout] | [INFO] [stdout] 273 | mvwprintw(*win, 1, 1, format!("CHEATING ATTEMPTS: {}. WHEN WILL YOU STOP CHEATING ??? CHEATER ! ! ! ! !", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/game.rs:275:138 [INFO] [stdout] | [INFO] [stdout] 275 | ...GAME (with memory leak to your terminal) ", CHEAT_COUNT).as_str()); [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "b14a726fdd05886a979c2d7b66a4e6021da6b5c8d61a9b37431c943741e27cf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b14a726fdd05886a979c2d7b66a4e6021da6b5c8d61a9b37431c943741e27cf3", kill_on_drop: false }` [INFO] [stdout] b14a726fdd05886a979c2d7b66a4e6021da6b5c8d61a9b37431c943741e27cf3