[INFO] cloning repository https://github.com/mattbr1ght/rust_origin_shifter_maze [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mattbr1ght/rust_origin_shifter_maze" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmattbr1ght%2Frust_origin_shifter_maze", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmattbr1ght%2Frust_origin_shifter_maze'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0378915a0e533195abb3b5369d024e4c448bb8a1 [INFO] checking mattbr1ght/rust_origin_shifter_maze against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmattbr1ght%2Frust_origin_shifter_maze" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mattbr1ght/rust_origin_shifter_maze [INFO] finished tweaking git repo https://github.com/mattbr1ght/rust_origin_shifter_maze [INFO] tweaked toml for git repo https://github.com/mattbr1ght/rust_origin_shifter_maze written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mattbr1ght/rust_origin_shifter_maze on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mattbr1ght/rust_origin_shifter_maze 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap v4.5.31 [INFO] [stderr] Downloaded clap_builder v4.5.31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1aa4f144b6a25842d71466028becceed57ab45c6032d9716ea3d4b8ef5f4fc1d [INFO] running `Command { std: "docker" "start" "-a" "1aa4f144b6a25842d71466028becceed57ab45c6032d9716ea3d4b8ef5f4fc1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1aa4f144b6a25842d71466028becceed57ab45c6032d9716ea3d4b8ef5f4fc1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1aa4f144b6a25842d71466028becceed57ab45c6032d9716ea3d4b8ef5f4fc1d", kill_on_drop: false }` [INFO] [stdout] 1aa4f144b6a25842d71466028becceed57ab45c6032d9716ea3d4b8ef5f4fc1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37dd3fe8c2060c80a164e7ae6588ef1d1fafdf94e7c08fc9150422887253f163 [INFO] running `Command { std: "docker" "start" "-a" "37dd3fe8c2060c80a164e7ae6588ef1d1fafdf94e7c08fc9150422887253f163", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking clap_builder v4.5.31 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking clap v4.5.31 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking origin_shifter v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `PATH_COLOR` [INFO] [stdout] --> src/main.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | let PATH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PATH_COLOR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PLAYER_COLOR` [INFO] [stdout] --> src/main.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | let PLAYER_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PLAYER_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `FINISH_COLOR` [INFO] [stdout] --> src/main.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | let FINISH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_FINISH_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ORIGIN_COLOR` [INFO] [stdout] --> src/main.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 401 | let ORIGIN_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ORIGIN_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ENABLE_SHADOW_MEMORY` is never used [INFO] [stdout] --> src/main.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static mut ENABLE_SHADOW_MEMORY : bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 138 | for n in PATH.iter() { [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 [INFO] [stdout] --> src/main.rs:168:89 [INFO] [stdout] | [INFO] [stdout] 168 | Ok(elapsed) => print!(" {:?} | Moves made: {}/{} (legal/illegal)", elapsed, MOVES_MADE, TOTAL_MOVES_MADE), [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 [INFO] [stdout] --> src/main.rs:168:101 [INFO] [stdout] | [INFO] [stdout] 168 | Ok(elapsed) => print!(" {:?} | Moves made: {}/{} (legal/illegal)", elapsed, MOVES_MADE, TOTAL_MOVES_MADE), [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 [INFO] [stdout] --> src/main.rs:172:44 [INFO] [stdout] | [INFO] [stdout] 172 | print!(" | Shortest path: {}", SHORTEST_PATH); [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 mutable reference to mutable static [INFO] [stdout] --> src/main.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | OPATH.push(a); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:199:50 [INFO] [stdout] | [INFO] [stdout] 199 | if !dfs(a-1) {PATH[a-1] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:203:66 [INFO] [stdout] | [INFO] [stdout] 203 | if !dfs(a-MAP_WIDTH) {PATH[a-MAP_WIDTH] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:207:50 [INFO] [stdout] | [INFO] [stdout] 207 | if !dfs(a+1) {PATH[a+1] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:211:66 [INFO] [stdout] | [INFO] [stdout] 211 | if !dfs(a+MAP_WIDTH) {PATH[a+MAP_WIDTH] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:293:37 [INFO] [stdout] | [INFO] [stdout] 293 | initialize((MAP[0].len()-1)/2, (MAP.len()-1)/2); [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 [INFO] [stdout] --> src/main.rs:375:41 [INFO] [stdout] | [INFO] [stdout] 375 | println!("Shifts per move: {}", SHIFTS); [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 [INFO] [stdout] --> src/main.rs:376:40 [INFO] [stdout] | [INFO] [stdout] 376 | println!("Shifts enabled: {}", ENABLE_SHIFTS); [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 [INFO] [stdout] --> src/main.rs:377:50 [INFO] [stdout] | [INFO] [stdout] 377 | println!("Shift only on legal move: {}", SHIFT_ONLY_ON_MOVE); [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: variable `WALL_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | let WALL_COLOR = "\x1b[41m"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `wall_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RESET_SEQ` should have a snake case name [INFO] [stdout] --> src/main.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | let RESET_SEQ = "\x1b[0m"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `reset_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PATH_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | let PATH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `path_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PLAYER_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | let PLAYER_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `player_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FINISH_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | let FINISH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `finish_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ORIGIN_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 401 | let ORIGIN_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `origin_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SHADOW_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | let SHADOW_COLOR = "\x1b[48;5;240m"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `shadow_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PATH_COLOR` [INFO] [stdout] --> src/main.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | let PATH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PATH_COLOR` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PLAYER_COLOR` [INFO] [stdout] --> src/main.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | let PLAYER_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_PLAYER_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `FINISH_COLOR` [INFO] [stdout] --> src/main.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | let FINISH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_FINISH_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ORIGIN_COLOR` [INFO] [stdout] --> src/main.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 401 | let ORIGIN_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ORIGIN_COLOR` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ENABLE_SHADOW_MEMORY` is never used [INFO] [stdout] --> src/main.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static mut ENABLE_SHADOW_MEMORY : bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:138:22 [INFO] [stdout] | [INFO] [stdout] 138 | for n in PATH.iter() { [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 [INFO] [stdout] --> src/main.rs:168:89 [INFO] [stdout] | [INFO] [stdout] 168 | Ok(elapsed) => print!(" {:?} | Moves made: {}/{} (legal/illegal)", elapsed, MOVES_MADE, TOTAL_MOVES_MADE), [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 [INFO] [stdout] --> src/main.rs:168:101 [INFO] [stdout] | [INFO] [stdout] 168 | Ok(elapsed) => print!(" {:?} | Moves made: {}/{} (legal/illegal)", elapsed, MOVES_MADE, TOTAL_MOVES_MADE), [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 [INFO] [stdout] --> src/main.rs:172:44 [INFO] [stdout] | [INFO] [stdout] 172 | print!(" | Shortest path: {}", SHORTEST_PATH); [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 mutable reference to mutable static [INFO] [stdout] --> src/main.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | OPATH.push(a); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:199:50 [INFO] [stdout] | [INFO] [stdout] 199 | if !dfs(a-1) {PATH[a-1] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:203:66 [INFO] [stdout] | [INFO] [stdout] 203 | if !dfs(a-MAP_WIDTH) {PATH[a-MAP_WIDTH] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:207:50 [INFO] [stdout] | [INFO] [stdout] 207 | if !dfs(a+1) {PATH[a+1] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:211:66 [INFO] [stdout] | [INFO] [stdout] 211 | if !dfs(a+MAP_WIDTH) {PATH[a+MAP_WIDTH] = false; OPATH.pop();} else {return true;} [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:293:37 [INFO] [stdout] | [INFO] [stdout] 293 | initialize((MAP[0].len()-1)/2, (MAP.len()-1)/2); [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 [INFO] [stdout] --> src/main.rs:375:41 [INFO] [stdout] | [INFO] [stdout] 375 | println!("Shifts per move: {}", SHIFTS); [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 [INFO] [stdout] --> src/main.rs:376:40 [INFO] [stdout] | [INFO] [stdout] 376 | println!("Shifts enabled: {}", ENABLE_SHIFTS); [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 [INFO] [stdout] --> src/main.rs:377:50 [INFO] [stdout] | [INFO] [stdout] 377 | println!("Shift only on legal move: {}", SHIFT_ONLY_ON_MOVE); [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: variable `WALL_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:396:9 [INFO] [stdout] | [INFO] [stdout] 396 | let WALL_COLOR = "\x1b[41m"; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `wall_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RESET_SEQ` should have a snake case name [INFO] [stdout] --> src/main.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | let RESET_SEQ = "\x1b[0m"; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `reset_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PATH_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | let PATH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `path_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PLAYER_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:399:9 [INFO] [stdout] | [INFO] [stdout] 399 | let PLAYER_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `player_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `FINISH_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | let FINISH_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `finish_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ORIGIN_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 401 | let ORIGIN_COLOR = ""; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `origin_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SHADOW_COLOR` should have a snake case name [INFO] [stdout] --> src/main.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | let SHADOW_COLOR = "\x1b[48;5;240m"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `shadow_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.46s [INFO] running `Command { std: "docker" "inspect" "37dd3fe8c2060c80a164e7ae6588ef1d1fafdf94e7c08fc9150422887253f163", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37dd3fe8c2060c80a164e7ae6588ef1d1fafdf94e7c08fc9150422887253f163", kill_on_drop: false }` [INFO] [stdout] 37dd3fe8c2060c80a164e7ae6588ef1d1fafdf94e7c08fc9150422887253f163