[INFO] cloning repository https://github.com/Supersonic2510/rust-minimal-monster-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Supersonic2510/rust-minimal-monster-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSupersonic2510%2Frust-minimal-monster-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSupersonic2510%2Frust-minimal-monster-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9dc50efb4f53491ff589608b96e7b585375cdc05 [INFO] checking Supersonic2510/rust-minimal-monster-game against try#f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 for pr-147834 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSupersonic2510%2Frust-minimal-monster-game" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Supersonic2510/rust-minimal-monster-game [INFO] finished tweaking git repo https://github.com/Supersonic2510/rust-minimal-monster-game [INFO] tweaked toml for git repo https://github.com/Supersonic2510/rust-minimal-monster-game written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Supersonic2510/rust-minimal-monster-game on toolchain f77b5bc6c7c84df104f86b0dd01d9490e3923fa8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Supersonic2510/rust-minimal-monster-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" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "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 libm v0.2.8 [INFO] [stderr] Downloaded syn v2.0.74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a6a34feab417db544d06afcf9b7fde391ed9d9172c35bc30b6e66de46f2eed6 [INFO] running `Command { std: "docker" "start" "-a" "0a6a34feab417db544d06afcf9b7fde391ed9d9172c35bc30b6e66de46f2eed6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a6a34feab417db544d06afcf9b7fde391ed9d9172c35bc30b6e66de46f2eed6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a6a34feab417db544d06afcf9b7fde391ed9d9172c35bc30b6e66de46f2eed6", kill_on_drop: false }` [INFO] [stdout] 0a6a34feab417db544d06afcf9b7fde391ed9d9172c35bc30b6e66de46f2eed6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+f77b5bc6c7c84df104f86b0dd01d9490e3923fa8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f4e7d0fec488c8f250ebfb946485c34c2bfc29026068c6d5a142fc4d9165006 [INFO] running `Command { std: "docker" "start" "-a" "6f4e7d0fec488c8f250ebfb946485c34c2bfc29026068c6d5a142fc4d9165006", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking demotest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `RefCell` and `RefMut` [INFO] [stdout] --> src/monster/goblin.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell` and `RefMut` [INFO] [stdout] --> src/monster/orc.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/monster.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell` and `RefMut` [INFO] [stdout] --> src/weapon/sword.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/weapon.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell` and `RefMut` [INFO] [stdout] --> src/monster/goblin.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell` and `RefMut` [INFO] [stdout] --> src/monster/orc.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/monster.rs:6:21 [INFO] [stdout] | [INFO] [stdout] 6 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefCell` and `RefMut` [INFO] [stdout] --> src/weapon/sword.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/weapon.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | cell::{RefCell, RefMut}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/distributions/damage.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DamageDistribution { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 6 | pub damage_low: i8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | pub damage_center: i8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub damage_high: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | pub crit_low: i8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | pub crit_center: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | pub crit_high: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub crit_rate: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DamageDistribution` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_no_crit` and `get_damage_value` are never used [INFO] [stdout] --> src/distributions/damage.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl DamageDistribution { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn new_no_crit(damage_low: i8, damage_center: i8, damage_high: i8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_damage_value(&self) -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `defend` is never used [INFO] [stdout] --> src/monster.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Monster: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn defend(&self) -> &str; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/distributions/damage.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DamageDistribution { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 6 | pub damage_low: i8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | pub damage_center: i8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub damage_high: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | pub crit_low: i8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | pub crit_center: i8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | pub crit_high: i8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub crit_rate: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DamageDistribution` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Goblin` and `Orc` are never constructed [INFO] [stdout] --> src/monster.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum MonsterFactory { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 27 | Goblin, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | Orc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonsterFactory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name` and `get_damage` are never used [INFO] [stdout] --> src/weapon.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Weapon: Debug { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 13 | fn get_name(&self) -> Rc; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn get_damage(&self) -> i8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_no_crit` and `get_damage_value` are never used [INFO] [stdout] --> src/distributions/damage.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl DamageDistribution { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn new_no_crit(damage_low: i8, damage_center: i8, damage_high: i8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_damage_value(&self) -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `random` is never used [INFO] [stdout] --> src/weapon.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl WeaponFactory { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 24 | pub fn random() -> Rc> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `damage_dist` are never read [INFO] [stdout] --> src/weapon/sword.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Sword { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | name: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | damage_dist: DamageDistribution, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sword` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `defend` is never used [INFO] [stdout] --> src/monster.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Monster: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn defend(&self) -> &str; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Goblin` and `Orc` are never constructed [INFO] [stdout] --> src/monster.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum MonsterFactory { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 27 | Goblin, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | Orc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonsterFactory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name` and `get_damage` are never used [INFO] [stdout] --> src/weapon.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Weapon: Debug { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 13 | fn get_name(&self) -> Rc; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | fn get_damage(&self) -> i8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `random` is never used [INFO] [stdout] --> src/weapon.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl WeaponFactory { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 24 | pub fn random() -> Rc> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `damage_dist` are never read [INFO] [stdout] --> src/weapon/sword.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Sword { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | name: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | damage_dist: DamageDistribution, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sword` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.41s [INFO] running `Command { std: "docker" "inspect" "6f4e7d0fec488c8f250ebfb946485c34c2bfc29026068c6d5a142fc4d9165006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f4e7d0fec488c8f250ebfb946485c34c2bfc29026068c6d5a142fc4d9165006", kill_on_drop: false }` [INFO] [stdout] 6f4e7d0fec488c8f250ebfb946485c34c2bfc29026068c6d5a142fc4d9165006