[INFO] cloning repository https://github.com/minogb/Rust_Pyramid [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/minogb/Rust_Pyramid" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminogb%2FRust_Pyramid", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminogb%2FRust_Pyramid'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a4273d8906df73be6ae252e677d54e1ca950034 [INFO] checking minogb/Rust_Pyramid against try#3c75d5844aa65b4aa19243ac44ceda49fe4e61ca for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminogb%2FRust_Pyramid" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/minogb/Rust_Pyramid [INFO] finished tweaking git repo https://github.com/minogb/Rust_Pyramid [INFO] tweaked toml for git repo https://github.com/minogb/Rust_Pyramid written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/minogb/Rust_Pyramid on toolchain 3c75d5844aa65b4aa19243ac44ceda49fe4e61ca [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/minogb/Rust_Pyramid 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" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e34c76d940fe5afc3f3ff810cfe7098a94fe06fa0c0d059348b627c4d903a19d [INFO] running `Command { std: "docker" "start" "-a" "e34c76d940fe5afc3f3ff810cfe7098a94fe06fa0c0d059348b627c4d903a19d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e34c76d940fe5afc3f3ff810cfe7098a94fe06fa0c0d059348b627c4d903a19d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e34c76d940fe5afc3f3ff810cfe7098a94fe06fa0c0d059348b627c4d903a19d", kill_on_drop: false }` [INFO] [stdout] e34c76d940fe5afc3f3ff810cfe7098a94fe06fa0c0d059348b627c4d903a19d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1147ce930a18088081c2a5497a21db646fc20fee9b64217ea7cf21a2decec0e [INFO] running `Command { std: "docker" "start" "-a" "a1147ce930a18088081c2a5497a21db646fc20fee9b64217ea7cf21a2decec0e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking uuid v1.16.0 [INFO] [stderr] Checking InversePyramid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/entity/entity.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/entity/player.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Team` [INFO] [stdout] --> src/entity/player.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::statistics::{Alive, Team}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/entity/player.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::world::{World, WorldState}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/entity/other.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::entity::Entity` [INFO] [stdout] --> src/world.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::entity::Entity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `UnsafeCell` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Cell, RefCell, UnsafeCell}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `stdin`, and `stdout` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{stdin, stdout, Write}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `LockResult`, and `Mutex` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{LockResult, Mutex, Arc}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::other::Other` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::entity::other::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::player::Player` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::entity::player::Player; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alive` and `Statistics` [INFO] [stdout] --> src/main.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::entity::statistics::{Alive, Statistics}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/entity/entity.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/entity/player.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Team` [INFO] [stdout] --> src/entity/player.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::entity::statistics::{Alive, Team}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `World` [INFO] [stdout] --> src/entity/player.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::world::{World, WorldState}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::world::World` [INFO] [stdout] --> src/entity/other.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::entity::Entity` [INFO] [stdout] --> src/world.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::entity::entity::Entity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `UnsafeCell` [INFO] [stdout] --> src/main.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::{Cell, RefCell, UnsafeCell}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `stdin`, and `stdout` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{stdin, stdout, Write}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `LockResult`, and `Mutex` [INFO] [stdout] --> src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::{LockResult, Mutex, Arc}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::other::Other` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::entity::other::Other; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::player::Player` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::entity::player::Player; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alive` and `Statistics` [INFO] [stdout] --> src/main.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::entity::statistics::{Alive, Statistics}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | WORLD.with_borrow_mut(|w| {w.player.act()}); [INFO] [stdout] 21 | | WORLD.with(|w| { [INFO] [stdout] 22 | | match w.borrow().state { [INFO] [stdout] ... | [INFO] [stdout] 29 | | }); [INFO] [stdout] 30 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 31 | } [INFO] [stdout] 32 | println!("Thanks for playing"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entity::Entity` [INFO] [stdout] --> src/entity/player.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::entity::{statistics::Statistics,entity::Entity}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::entity::Entity` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::entity::entity::Entity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/entity/statistics.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(id:Uuid) -> Statistics { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/entity/player.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | other =>"Sorry I don't know what this command is." [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/entity/player.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | input=> ()//todo [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Team` is never used [INFO] [stdout] --> src/entity/statistics.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Team{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Entity` is never used [INFO] [stdout] --> src/entity/entity.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Entity{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_help` is never used [INFO] [stdout] --> src/entity/player.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_help(&self,action:&str)->String{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 19 | / loop { [INFO] [stdout] 20 | | WORLD.with_borrow_mut(|w| {w.player.act()}); [INFO] [stdout] 21 | | WORLD.with(|w| { [INFO] [stdout] 22 | | match w.borrow().state { [INFO] [stdout] ... | [INFO] [stdout] 29 | | }); [INFO] [stdout] 30 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 31 | } [INFO] [stdout] 32 | println!("Thanks for playing"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entity::Entity` [INFO] [stdout] --> src/entity/player.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::entity::{statistics::Statistics,entity::Entity}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::entity::entity::Entity` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::entity::entity::Entity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/entity/statistics.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(id:Uuid) -> Statistics { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/entity/player.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | other =>"Sorry I don't know what this command is." [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/entity/player.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | input=> ()//todo [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Team` is never used [INFO] [stdout] --> src/entity/statistics.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Team{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Entity` is never used [INFO] [stdout] --> src/entity/entity.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Entity{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_help` is never used [INFO] [stdout] --> src/entity/player.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_help(&self,action:&str)->String{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.02s [INFO] running `Command { std: "docker" "inspect" "a1147ce930a18088081c2a5497a21db646fc20fee9b64217ea7cf21a2decec0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1147ce930a18088081c2a5497a21db646fc20fee9b64217ea7cf21a2decec0e", kill_on_drop: false }` [INFO] [stdout] a1147ce930a18088081c2a5497a21db646fc20fee9b64217ea7cf21a2decec0e