[INFO] cloning repository https://github.com/Agile-Llama/Rust-Text-Game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Agile-Llama/Rust-Text-Game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgile-Llama%2FRust-Text-Game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgile-Llama%2FRust-Text-Game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84953f74b2ae61d531147c0e75e1c621f4fa742c [INFO] building Agile-Llama/Rust-Text-Game 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%2FAgile-Llama%2FRust-Text-Game" "/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/Agile-Llama/Rust-Text-Game 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/Agile-Llama/Rust-Text-Game [INFO] finished tweaking git repo https://github.com/Agile-Llama/Rust-Text-Game [INFO] tweaked toml for git repo https://github.com/Agile-Llama/Rust-Text-Game written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Agile-Llama/Rust-Text-Game 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-traits v0.1.43 [INFO] [stderr] Downloaded cgmath v0.16.1 [INFO] [stderr] Downloaded approx v0.1.1 [INFO] [stderr] Downloaded rgb v0.8.13 [INFO] [stderr] Downloaded colored v1.8.0 [INFO] [stderr] Downloaded winconsole v0.10.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] dca8e020986df23e55fbe3e32b041149f086359fa7f00dab6d16b00b5b615017 [INFO] running `Command { std: "docker" "start" "-a" "dca8e020986df23e55fbe3e32b041149f086359fa7f00dab6d16b00b5b615017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dca8e020986df23e55fbe3e32b041149f086359fa7f00dab6d16b00b5b615017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dca8e020986df23e55fbe3e32b041149f086359fa7f00dab6d16b00b5b615017", kill_on_drop: false }` [INFO] [stdout] dca8e020986df23e55fbe3e32b041149f086359fa7f00dab6d16b00b5b615017 [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] 1f2fed25f811fdd8265af0d04e4e3e100be10dc64d9df6ab74d3f9c70f30dba4 [INFO] running `Command { std: "docker" "start" "-a" "1f2fed25f811fdd8265af0d04e4e3e100be10dc64d9df6ab74d3f9c70f30dba4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling winapi v0.3.7 [INFO] [stderr] Compiling approx v0.1.1 [INFO] [stderr] Compiling rgb v0.8.13 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling winconsole v0.10.0 [INFO] [stderr] Compiling colored v1.8.0 [INFO] [stderr] Compiling game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::weapons::MeleeWeaponTraits` [INFO] [stdout] --> src/NPC.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::weapons::MeleeWeaponTraits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | for x in 0..dice_to_roll { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opp_initiative` [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let opp_initiative = rng.gen_range(1, 20); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opp_initiative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_initiative` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let player_initiative = rng.gen_range(1, 20); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_initiative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let mut answer = question_answer_function(3); [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/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let mut personal_weapon; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut player = Character::new_player_character(character_name, personal_weapon); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_weapon_taken` [INFO] [stdout] --> src/main.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | let player_weapon_taken = player.weapon; //player original weapon. taken away when entering jail. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_weapon_taken` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `answer` is never read [INFO] [stdout] --> src/main.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | let mut answer = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:384:19 [INFO] [stdout] | [INFO] [stdout] 384 | fn run_away_scene(mut player:Character){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `two_handed`, `throwable`, `damage_type`, and `cost` are never read [INFO] [stdout] --> src/weapons.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MeleeWeapon{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 12 | pub name: String, [INFO] [stdout] 13 | two_handed: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | throwable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | damage_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | cost: i32, //monatary value of the item. in gold pieces. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `NPC` should have a snake case name [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod NPC; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `npc` [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 1.85s [INFO] running `Command { std: "docker" "inspect" "1f2fed25f811fdd8265af0d04e4e3e100be10dc64d9df6ab74d3f9c70f30dba4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f2fed25f811fdd8265af0d04e4e3e100be10dc64d9df6ab74d3f9c70f30dba4", kill_on_drop: false }` [INFO] [stdout] 1f2fed25f811fdd8265af0d04e4e3e100be10dc64d9df6ab74d3f9c70f30dba4 [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] 375972982d8b3dd1e3a9ba8ce04db134393089f4260a715238005ec8a3983e10 [INFO] running `Command { std: "docker" "start" "-a" "375972982d8b3dd1e3a9ba8ce04db134393089f4260a715238005ec8a3983e10", kill_on_drop: false }` [INFO] [stderr] Compiling game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::weapons::MeleeWeaponTraits` [INFO] [stdout] --> src/NPC.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::weapons::MeleeWeaponTraits; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | for x in 0..dice_to_roll { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opp_initiative` [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let opp_initiative = rng.gen_range(1, 20); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opp_initiative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_initiative` [INFO] [stdout] --> src/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let player_initiative = rng.gen_range(1, 20); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_initiative` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let mut answer = question_answer_function(3); [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/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let mut personal_weapon; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut player = Character::new_player_character(character_name, personal_weapon); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_weapon_taken` [INFO] [stdout] --> src/main.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | let player_weapon_taken = player.weapon; //player original weapon. taken away when entering jail. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_weapon_taken` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `answer` is never read [INFO] [stdout] --> src/main.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | let mut answer = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:384:19 [INFO] [stdout] | [INFO] [stdout] 384 | fn run_away_scene(mut player:Character){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `two_handed`, `throwable`, `damage_type`, and `cost` are never read [INFO] [stdout] --> src/weapons.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MeleeWeapon{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 12 | pub name: String, [INFO] [stdout] 13 | two_handed: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | throwable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | damage_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | cost: i32, //monatary value of the item. in gold pieces. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `NPC` should have a snake case name [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub mod NPC; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `npc` [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.12s [INFO] running `Command { std: "docker" "inspect" "375972982d8b3dd1e3a9ba8ce04db134393089f4260a715238005ec8a3983e10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "375972982d8b3dd1e3a9ba8ce04db134393089f4260a715238005ec8a3983e10", kill_on_drop: false }` [INFO] [stdout] 375972982d8b3dd1e3a9ba8ce04db134393089f4260a715238005ec8a3983e10