[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] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe754b15155d27037e73073cad05249dbc71c20b [INFO] checking pdincau/learning-rust against master#ea6ab1bd845790fb31ba790d2c7aec898f89fe62 for pr-99880 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpdincau%2Flearning-rust" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pdincau/learning-rust on toolchain ea6ab1bd845790fb31ba790d2c7aec898f89fe62 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "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-2/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: "/workspace/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 295ac4c7fa8f1c01bfde1c8d63ecc6417bd400ee2afe9114a74b8ea940566d81 [INFO] running `Command { std: "docker" "start" "-a" "295ac4c7fa8f1c01bfde1c8d63ecc6417bd400ee2afe9114a74b8ea940566d81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "295ac4c7fa8f1c01bfde1c8d63ecc6417bd400ee2afe9114a74b8ea940566d81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "295ac4c7fa8f1c01bfde1c8d63ecc6417bd400ee2afe9114a74b8ea940566d81", kill_on_drop: false }` [INFO] [stdout] 295ac4c7fa8f1c01bfde1c8d63ecc6417bd400ee2afe9114a74b8ea940566d81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+ea6ab1bd845790fb31ba790d2c7aec898f89fe62" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a1508a291dca38e52df40876f6294f9131144512117464101ddfed8d888739c [INFO] running `Command { std: "docker" "start" "-a" "7a1508a291dca38e52df40876f6294f9131144512117464101ddfed8d888739c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [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: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Character` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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: associated function `new` is never used [INFO] [stdout] --> src/rpg/character.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(style: Style) -> Character { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `health` is never used [INFO] [stdout] --> src/rpg/character.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn health(self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `level` is never used [INFO] [stdout] --> src/rpg/character.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn level(self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `status` is never used [INFO] [stdout] --> src/rpg/character.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn status(self) -> State { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `attack` is never used [INFO] [stdout] --> src/rpg/character.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn attack(self, character: &mut Character, damage: Damage) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `heal` is never used [INFO] [stdout] --> src/rpg/character.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn heal(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `range` is never used [INFO] [stdout] --> src/rpg/character.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn range(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decrease_life` is never used [INFO] [stdout] --> src/rpg/character.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn decrease_life(&mut self, amount: u16) { [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: associated function `range` is never used [INFO] [stdout] --> src/rpg/style.rs:11:12 [INFO] [stdout] | [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: associated function `compute` is never used [INFO] [stdout] --> src/rpg/weighted_damage.rs:17:12 [INFO] [stdout] | [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: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.93s [INFO] running `Command { std: "docker" "inspect" "7a1508a291dca38e52df40876f6294f9131144512117464101ddfed8d888739c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a1508a291dca38e52df40876f6294f9131144512117464101ddfed8d888739c", kill_on_drop: false }` [INFO] [stdout] 7a1508a291dca38e52df40876f6294f9131144512117464101ddfed8d888739c