[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#bf5ff6675cf10ce009ac02007b064a7cfc4509ac for pr-140558
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdincau%2Flearning-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/pdincau/learning-rust on toolchain bf5ff6675cf10ce009ac02007b064a7cfc4509ac
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-1-tc2/source/Cargo.toml
[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" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] db4861405858276a98dbab290dfde90c2e7a8e8a0e59465f5ffb43337ad436d9
[INFO] running `Command { std: "docker" "start" "-a" "db4861405858276a98dbab290dfde90c2e7a8e8a0e59465f5ffb43337ad436d9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "db4861405858276a98dbab290dfde90c2e7a8e8a0e59465f5ffb43337ad436d9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "db4861405858276a98dbab290dfde90c2e7a8e8a0e59465f5ffb43337ad436d9", kill_on_drop: false }`
[INFO] [stdout] db4861405858276a98dbab290dfde90c2e7a8e8a0e59465f5ffb43337ad436d9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b9d3b3777cce54f47209fe6daa4c70785dac18dbd9d9fdc3b72a5c221a2ad854
[INFO] running `Command { std: "docker" "start" "-a" "b9d3b3777cce54f47209fe6daa4c70785dac18dbd9d9fdc3b72a5c221a2ad854", 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: fields `id`, `level`, `style`, `state`, and `damage_calculator` are never read
[INFO] [stdout]   --> src/rpg/character.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct Character {
[INFO] [stdout]    |        --------- fields in this struct
[INFO] [stdout] 13 |     id: Uuid,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 14 |     level: u16,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 15 |     style: Style,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 16 |     state: State,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 17 |     damage_calculator: WeightedDamage,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Character` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[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: variant `Dead` is never constructed
[INFO] [stdout]  --> src/rpg/state.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum State {
[INFO] [stdout]   |          ----- variant in this enum
[INFO] [stdout] 3 |     Alive { life: u16 },
[INFO] [stdout] 4 |     Dead,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `State` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Ranged` is never constructed
[INFO] [stdout]  --> src/rpg/style.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum Style {
[INFO] [stdout]   |          ----- variant in this enum
[INFO] [stdout] 3 |     Melee,
[INFO] [stdout] 4 |     Ranged,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Style` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[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: fields `factor` and `level_gap` are never read
[INFO] [stdout]  --> src/rpg/weighted_damage.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct WeightedDamage {
[INFO] [stdout]   |            -------------- fields in this struct
[INFO] [stdout] 3 |     factor: u16,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 4 |     level_gap: u16,
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `WeightedDamage` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[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 1.26s
[INFO] running `Command { std: "docker" "inspect" "b9d3b3777cce54f47209fe6daa4c70785dac18dbd9d9fdc3b72a5c221a2ad854", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b9d3b3777cce54f47209fe6daa4c70785dac18dbd9d9fdc3b72a5c221a2ad854", kill_on_drop: false }`
[INFO] [stdout] b9d3b3777cce54f47209fe6daa4c70785dac18dbd9d9fdc3b72a5c221a2ad854
