[INFO] cloning repository https://github.com/mrpiguy/rust-battlesnake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mrpiguy/rust-battlesnake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrpiguy%2Frust-battlesnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrpiguy%2Frust-battlesnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b408eb04e38fc22766c782900e24a5b6e674bd4 [INFO] testing mrpiguy/rust-battlesnake against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrpiguy%2Frust-battlesnake" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mrpiguy/rust-battlesnake [INFO] finished tweaking git repo https://github.com/mrpiguy/rust-battlesnake [INFO] tweaked toml for git repo https://github.com/mrpiguy/rust-battlesnake written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mrpiguy/rust-battlesnake on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mrpiguy/rust-battlesnake 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ref-cast-impl v1.0.7 [INFO] [stderr] Downloaded ref-cast v1.0.7 [INFO] [stderr] Downloaded tracing-subscriber v0.3.12 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d7450cc65bbc06dddc72725fe946e31efcfe045433678a4a425a3f49248e920 [INFO] running `Command { std: "docker" "start" "-a" "1d7450cc65bbc06dddc72725fe946e31efcfe045433678a4a425a3f49248e920", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d7450cc65bbc06dddc72725fe946e31efcfe045433678a4a425a3f49248e920", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d7450cc65bbc06dddc72725fe946e31efcfe045433678a4a425a3f49248e920", kill_on_drop: false }` [INFO] [stdout] 1d7450cc65bbc06dddc72725fe946e31efcfe045433678a4a425a3f49248e920 [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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 826a47040c89199ca3b862519383a4f05eb9cc811fe048f37e2b08198716e90e [INFO] running `Command { std: "docker" "start" "-a" "826a47040c89199ca3b862519383a4f05eb9cc811fe048f37e2b08198716e90e", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling ref-cast v1.0.7 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling tracing-core v0.1.28 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling tracing v0.1.35 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling tokio v1.19.2 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling ghash v0.4.4 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling time v0.3.11 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling aes-gcm v0.9.4 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Compiling multer v2.0.2 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling spin v0.9.3 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling hyper v0.14.19 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.7 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Compiling tokio-util v0.7.3 [INFO] [stderr] Compiling tokio-util v0.6.10 [INFO] [stderr] Compiling tokio-stream v0.1.9 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling ubyte v0.10.2 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling rust_snake v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/logic.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | 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 imports: `Battlesnake`, `Board`, and `Game` [INFO] [stdout] --> src/logic.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Battlesnake, Board, Game,GameState,Node}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logic.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut new_gs = gs.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logic.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut new_gs = gs.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gs` [INFO] [stdout] --> src/logic.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snakeid` [INFO] [stdout] --> src/logic.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snakeid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut gamestate = GameState{ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_snake` is never used [INFO] [stdout] --> src/main.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 141 | impl Battlesnake{ [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 181 | fn move_snake(&mut self, direction : String, food: &Vec){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minimax` is never used [INFO] [stdout] --> src/logic.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn minimax(gs:GameState) -> String{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_tree` is never used [INFO] [stdout] --> src/logic.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn build_tree(gs: GameState,max_depth: u32, depth: u32, dir:String, snake:String) -> Node { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getOptimumScore` is never used [INFO] [stdout] --> src/logic.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn getOptimumScore(opt: u32, children:&Vec) -> &Node{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_func` is never used [INFO] [stdout] --> src/logic.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getOptimumScore` should have a snake case name [INFO] [stdout] --> src/logic.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn getOptimumScore(opt: u32, children:&Vec) -> &Node{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_optimum_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "826a47040c89199ca3b862519383a4f05eb9cc811fe048f37e2b08198716e90e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "826a47040c89199ca3b862519383a4f05eb9cc811fe048f37e2b08198716e90e", kill_on_drop: false }` [INFO] [stdout] 826a47040c89199ca3b862519383a4f05eb9cc811fe048f37e2b08198716e90e [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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a2565fe096197f996c7007332b9f189ea5e78e777f68995c0d91210c38b9f6bf [INFO] running `Command { std: "docker" "start" "-a" "a2565fe096197f996c7007332b9f189ea5e78e777f68995c0d91210c38b9f6bf", kill_on_drop: false }` [INFO] [stderr] Compiling rust_snake v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/logic.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | 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 imports: `Battlesnake`, `Board`, and `Game` [INFO] [stdout] --> src/logic.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Battlesnake, Board, Game,GameState,Node}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logic.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut new_gs = gs.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logic.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut new_gs = gs.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gs` [INFO] [stdout] --> src/logic.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_gs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snakeid` [INFO] [stdout] --> src/logic.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snakeid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut gamestate = GameState{ [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_snake` is never used [INFO] [stdout] --> src/main.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 141 | impl Battlesnake{ [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 181 | fn move_snake(&mut self, direction : String, food: &Vec){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minimax` is never used [INFO] [stdout] --> src/logic.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn minimax(gs:GameState) -> String{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_tree` is never used [INFO] [stdout] --> src/logic.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn build_tree(gs: GameState,max_depth: u32, depth: u32, dir:String, snake:String) -> Node { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getOptimumScore` is never used [INFO] [stdout] --> src/logic.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn getOptimumScore(opt: u32, children:&Vec) -> &Node{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_func` is never used [INFO] [stdout] --> src/logic.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getOptimumScore` should have a snake case name [INFO] [stdout] --> src/logic.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn getOptimumScore(opt: u32, children:&Vec) -> &Node{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_optimum_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "a2565fe096197f996c7007332b9f189ea5e78e777f68995c0d91210c38b9f6bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2565fe096197f996c7007332b9f189ea5e78e777f68995c0d91210c38b9f6bf", kill_on_drop: false }` [INFO] [stdout] a2565fe096197f996c7007332b9f189ea5e78e777f68995c0d91210c38b9f6bf [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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] cc2ce522e74c7848a25b6b297f10b88ec113e6c53b7b809eebae0b697192a786 [INFO] running `Command { std: "docker" "start" "-a" "cc2ce522e74c7848a25b6b297f10b88ec113e6c53b7b809eebae0b697192a786", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/logic.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Battlesnake`, `Board`, and `Game` [INFO] [stderr] --> src/logic.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{Battlesnake, Board, Game,GameState,Node}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/logic.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | let mut new_gs = gs.clone(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/logic.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | let mut new_gs = gs.clone(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `gs` [INFO] [stderr] --> src/logic.rs:96:15 [INFO] [stderr] | [INFO] [stderr] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_gs` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `snakeid` [INFO] [stderr] --> src/logic.rs:96:31 [INFO] [stderr] | [INFO] [stderr] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_snakeid` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | let mut gamestate = GameState{ [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: method `move_snake` is never used [INFO] [stderr] --> src/main.rs:181:8 [INFO] [stderr] | [INFO] [stderr] 141 | impl Battlesnake{ [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 181 | fn move_snake(&mut self, direction : String, food: &Vec){ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `minimax` is never used [INFO] [stderr] --> src/logic.rs:38:4 [INFO] [stderr] | [INFO] [stderr] 38 | fn minimax(gs:GameState) -> String{ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_tree` is never used [INFO] [stderr] --> src/logic.rs:46:4 [INFO] [stderr] | [INFO] [stderr] 46 | fn build_tree(gs: GameState,max_depth: u32, depth: u32, dir:String, snake:String) -> Node { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `getOptimumScore` is never used [INFO] [stderr] --> src/logic.rs:75:4 [INFO] [stderr] | [INFO] [stderr] 75 | fn getOptimumScore(opt: u32, children:&Vec) -> &Node{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `score_func` is never used [INFO] [stderr] --> src/logic.rs:96:4 [INFO] [stderr] | [INFO] [stderr] 96 | fn score_func(gs: &GameState, snakeid:&String) -> i32{ [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `getOptimumScore` should have a snake case name [INFO] [stderr] --> src/logic.rs:75:4 [INFO] [stderr] | [INFO] [stderr] 75 | fn getOptimumScore(opt: u32, children:&Vec) -> &Node{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_optimum_score` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust_snake` (bin "rust_snake" test) generated 13 warnings (run `cargo fix --bin "rust_snake" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rust_snake-4d49ecd6e4c0801e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cc2ce522e74c7848a25b6b297f10b88ec113e6c53b7b809eebae0b697192a786", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc2ce522e74c7848a25b6b297f10b88ec113e6c53b7b809eebae0b697192a786", kill_on_drop: false }` [INFO] [stdout] cc2ce522e74c7848a25b6b297f10b88ec113e6c53b7b809eebae0b697192a786