[INFO] cloning repository https://github.com/Amaras/hphb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Amaras/hphb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmaras%2Fhphb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmaras%2Fhphb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69fd8832b43b07bafa21dc3ab0f9326dab428002 [INFO] building Amaras/hphb against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAmaras%2Fhphb" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Amaras/hphb on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Amaras/hphb [INFO] finished tweaking git repo https://github.com/Amaras/hphb [INFO] tweaked toml for git repo https://github.com/Amaras/hphb written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Amaras/hphb 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.70 [INFO] [stderr] Downloaded libc v0.2.140 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 146ddc994cf29a38241d029f7fd503af69f8996aa29f26618bfd00766c4d9399 [INFO] running `Command { std: "docker" "start" "-a" "146ddc994cf29a38241d029f7fd503af69f8996aa29f26618bfd00766c4d9399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "146ddc994cf29a38241d029f7fd503af69f8996aa29f26618bfd00766c4d9399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "146ddc994cf29a38241d029f7fd503af69f8996aa29f26618bfd00766c4d9399", kill_on_drop: false }` [INFO] [stdout] 146ddc994cf29a38241d029f7fd503af69f8996aa29f26618bfd00766c4d9399 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7a34ba76bc27fa466752895f4b0448f3f1eeecfab118a8352f84724e1dad0da [INFO] running `Command { std: "docker" "start" "-a" "c7a34ba76bc27fa466752895f4b0448f3f1eeecfab118a8352f84724e1dad0da", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling anyhow v1.0.70 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hphb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::character::Character` [INFO] [stdout] --> src/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::character::Character; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `card_type`, `cost`, `play_effects`, `discard_effects`, and `target` are never read [INFO] [stdout] --> src/card.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct HogwartsCard { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 20 | card_type: CardType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | cost: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | id: usize, [INFO] [stdout] 23 | play_effects: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | discard_effects: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | target: Target, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HogwartsCard` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `play` and `discard` are never used [INFO] [stdout] --> src/card.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl HogwartsCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 35 | fn play(&mut self, targets: &mut [&mut Target]) -> Result<(), ()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn discard(&mut self, targets: &mut [&mut Target]) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coins`, `power`, and `special_power` are never read [INFO] [stdout] --> src/character.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Hero { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | health: u8, [INFO] [stdout] 11 | coins: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | power: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | special_power: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hero` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health`, `current_damage`, `effect`, and `reward` are never read [INFO] [stdout] --> src/character.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct Villain { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 107 | health: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | current_damage: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 109 | effect: Effect, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | reward: Effect, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Villain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LocationControl`, `VillainDamage`, `PowerGain`, `HeroHealth`, `InfluenceGain`, and `Cards` are never constructed [INFO] [stdout] --> src/effect.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) enum Effect { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 6 | // Villains may control (+) and heroes may heal (-) [INFO] [stdout] 7 | LocationControl { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | // Villains may get healed (-) and heroes may damage villains (+) [INFO] [stdout] 9 | VillainDamage { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | // Heroes may gain power (+) or use/discard some for effects (-) [INFO] [stdout] 11 | PowerGain { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | // Heroes may heal (+) or get damaged (-) [INFO] [stdout] 13 | HeroHealth { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | // Heroes may gain influence (+) and use/discard some for effects (-) [INFO] [stdout] 15 | InfluenceGain { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | // Heroes may draw cards (+) or discard some (-) [INFO] [stdout] 17 | Cards { amount: i8 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Effect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply` is never used [INFO] [stdout] --> src/effect.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Effect { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 21 | pub fn apply(&self, _target: &mut Target) -> Result<(), ()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.44s [INFO] running `Command { std: "docker" "inspect" "c7a34ba76bc27fa466752895f4b0448f3f1eeecfab118a8352f84724e1dad0da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7a34ba76bc27fa466752895f4b0448f3f1eeecfab118a8352f84724e1dad0da", kill_on_drop: false }` [INFO] [stdout] c7a34ba76bc27fa466752895f4b0448f3f1eeecfab118a8352f84724e1dad0da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1432ba852a20c604a76dce9e64233da94ac5394d50952f0889a446346a0a592 [INFO] running `Command { std: "docker" "start" "-a" "f1432ba852a20c604a76dce9e64233da94ac5394d50952f0889a446346a0a592", kill_on_drop: false }` [INFO] [stderr] Compiling hphb v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::character::Character` [INFO] [stdout] --> src/card.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::character::Character; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `card_type`, `cost`, `play_effects`, `discard_effects`, and `target` are never read [INFO] [stdout] --> src/card.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct HogwartsCard { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 20 | card_type: CardType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | cost: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | id: usize, [INFO] [stdout] 23 | play_effects: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | discard_effects: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | target: Target, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HogwartsCard` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `play` and `discard` are never used [INFO] [stdout] --> src/card.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl HogwartsCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 35 | fn play(&mut self, targets: &mut [&mut Target]) -> Result<(), ()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn discard(&mut self, targets: &mut [&mut Target]) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coins`, `power`, and `special_power` are never read [INFO] [stdout] --> src/character.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Hero { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | health: u8, [INFO] [stdout] 11 | coins: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | power: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | special_power: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hero` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `health`, `current_damage`, `effect`, and `reward` are never read [INFO] [stdout] --> src/character.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct Villain { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 107 | health: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 108 | current_damage: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 109 | effect: Effect, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | reward: Effect, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Villain` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LocationControl`, `VillainDamage`, `PowerGain`, `HeroHealth`, `InfluenceGain`, and `Cards` are never constructed [INFO] [stdout] --> src/effect.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) enum Effect { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 6 | // Villains may control (+) and heroes may heal (-) [INFO] [stdout] 7 | LocationControl { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | // Villains may get healed (-) and heroes may damage villains (+) [INFO] [stdout] 9 | VillainDamage { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | // Heroes may gain power (+) or use/discard some for effects (-) [INFO] [stdout] 11 | PowerGain { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | // Heroes may heal (+) or get damaged (-) [INFO] [stdout] 13 | HeroHealth { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | // Heroes may gain influence (+) and use/discard some for effects (-) [INFO] [stdout] 15 | InfluenceGain { amount: i8 }, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | // Heroes may draw cards (+) or discard some (-) [INFO] [stdout] 17 | Cards { amount: i8 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Effect` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply` is never used [INFO] [stdout] --> src/effect.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Effect { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 21 | pub fn apply(&self, _target: &mut Target) -> Result<(), ()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "f1432ba852a20c604a76dce9e64233da94ac5394d50952f0889a446346a0a592", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1432ba852a20c604a76dce9e64233da94ac5394d50952f0889a446346a0a592", kill_on_drop: false }` [INFO] [stdout] f1432ba852a20c604a76dce9e64233da94ac5394d50952f0889a446346a0a592