[INFO] cloning repository https://github.com/pdincau/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pdincau/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdincau%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdincau%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe754b15155d27037e73073cad05249dbc71c20b [INFO] checking pdincau/learning-rust against try#5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db for pr-143717 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdincau%2Flearning-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pdincau/learning-rust [INFO] finished tweaking git repo https://github.com/pdincau/learning-rust [INFO] tweaked toml for git repo https://github.com/pdincau/learning-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pdincau/learning-rust on toolchain 5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pdincau/learning-rust 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" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0e6fd93d1a32676e0b7b12f69eca5e6db144114d4cb3ff409c743f703006df72 [INFO] running `Command { std: "docker" "start" "-a" "0e6fd93d1a32676e0b7b12f69eca5e6db144114d4cb3ff409c743f703006df72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0e6fd93d1a32676e0b7b12f69eca5e6db144114d4cb3ff409c743f703006df72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e6fd93d1a32676e0b7b12f69eca5e6db144114d4cb3ff409c743f703006df72", kill_on_drop: false }` [INFO] [stdout] 0e6fd93d1a32676e0b7b12f69eca5e6db144114d4cb3ff409c743f703006df72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+5ef65a4ed75279dc1b7a26cedc27293a9f4ca8db" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb9a0ef9d271ed148bbf3063239936e86d29808d9c75447e3b226304d0573768 [INFO] running `Command { std: "docker" "start" "-a" "fb9a0ef9d271ed148bbf3063239936e86d29808d9c75447e3b226304d0573768", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking learning-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `MAX_LIFE` is never used [INFO] [stdout] --> src/rpg/character.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MAX_LIFE: u16 = 1000; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Character` is never constructed [INFO] [stdout] --> src/rpg/character.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Character { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rpg/character.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Character { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new(style: Style) -> Character { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn health(self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn level(self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn status(self) -> State { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn attack(self, character: &mut Character, damage: Damage) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn heal(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn range(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn decrease_life(&mut self, amount: u16) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Damage` is never constructed [INFO] [stdout] --> src/rpg/character.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | struct Damage { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/rpg/state.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Style` is never used [INFO] [stdout] --> src/rpg/style.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Style { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MELEE_MAX_DISTANCE` is never used [INFO] [stdout] --> src/rpg/style.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MELEE_MAX_DISTANCE: u16 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RANGED_MAX_DISTANCE` is never used [INFO] [stdout] --> src/rpg/style.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const RANGED_MAX_DISTANCE: u16 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `range` is never used [INFO] [stdout] --> src/rpg/style.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Style { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 11 | pub fn range(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WeightedDamage` is never constructed [INFO] [stdout] --> src/rpg/weighted_damage.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct WeightedDamage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute` is never used [INFO] [stdout] --> src/rpg/weighted_damage.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl WeightedDamage { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 17 | pub fn compute(&self, attacker_level: u16, attackee_level: u16, amount: u16) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/structs/person.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 2 | pub name: String, [INFO] [stdout] 3 | pub age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/structs/person.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Person2 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | pub name: String, [INFO] [stdout] 9 | pub age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/structs/person.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 2 | pub name: String, [INFO] [stdout] 3 | pub age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/structs/person.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Person2 { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | pub name: String, [INFO] [stdout] 9 | pub age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person2` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "fb9a0ef9d271ed148bbf3063239936e86d29808d9c75447e3b226304d0573768", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb9a0ef9d271ed148bbf3063239936e86d29808d9c75447e3b226304d0573768", kill_on_drop: false }` [INFO] [stdout] fb9a0ef9d271ed148bbf3063239936e86d29808d9c75447e3b226304d0573768