[INFO] cloning repository https://github.com/KawaiiRem/pvz_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KawaiiRem/pvz_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKawaiiRem%2Fpvz_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKawaiiRem%2Fpvz_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 832bb42160f889db5f97f0ecccffd28ea66c7cf6 [INFO] building KawaiiRem/pvz_rust against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKawaiiRem%2Fpvz_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KawaiiRem/pvz_rust [INFO] finished tweaking git repo https://github.com/KawaiiRem/pvz_rust [INFO] tweaked toml for git repo https://github.com/KawaiiRem/pvz_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KawaiiRem/pvz_rust on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KawaiiRem/pvz_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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytemuck v1.23.2 [INFO] [stderr] Downloaded objc-rs v0.2.8 [INFO] [stderr] Downloaded quad-rand v0.2.3 [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded ttf-parser v0.21.1 [INFO] [stderr] Downloaded miniquad v0.4.8 [INFO] [stderr] Downloaded fontdue v0.9.3 [INFO] [stderr] Downloaded macroquad v0.4.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3df0cb7af795b1cfa3b113da88911337860fb14583cff7240b63e7fc4d9ac7e8 [INFO] running `Command { std: "docker" "start" "-a" "3df0cb7af795b1cfa3b113da88911337860fb14583cff7240b63e7fc4d9ac7e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3df0cb7af795b1cfa3b113da88911337860fb14583cff7240b63e7fc4d9ac7e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3df0cb7af795b1cfa3b113da88911337860fb14583cff7240b63e7fc4d9ac7e8", kill_on_drop: false }` [INFO] [stdout] 3df0cb7af795b1cfa3b113da88911337860fb14583cff7240b63e7fc4d9ac7e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 4fe3ee9a8ab68ef74c57fbe426bc85234307c7b01941a347a1635c2cac0365ea [INFO] running `Command { std: "docker" "start" "-a" "4fe3ee9a8ab68ef74c57fbe426bc85234307c7b01941a347a1635c2cac0365ea", kill_on_drop: false }` [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling miniquad v0.4.8 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling ttf-parser v0.21.1 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling quad-rand v0.2.3 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling fontdue v0.9.3 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling macroquad v0.4.14 [INFO] [stderr] Compiling pvz_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/zombie/pole_zombie.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [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 variable: `zombies` [INFO] [stdout] --> src/plant/cherry_bomb.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(&mut self, dt: f32, zombies: &[Box]) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_zombies` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/plant/wallnut.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn update(&mut self, dt: f32, zombies: &[Box]) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zombies` [INFO] [stdout] --> src/plant/wallnut.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | fn update(&mut self, dt: f32, zombies: &[Box]) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_zombies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tier` [INFO] [stdout] --> src/zombie/basic_zombie.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | fn is_instakill(&mut self, tier: Instakill) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_WIDTH` is never used [INFO] [stdout] --> src/constants.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const TILE_WIDTH: f32 = TILE_SIZE; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `col` are never read [INFO] [stdout] --> src/grid.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Tile { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | pub row: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` 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 `High` is never constructed [INFO] [stdout] --> src/projectile/projectile.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Instakill { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | High, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instakill` 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 `hp_fraction` is never used [INFO] [stdout] --> src/projectile/projectile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Instakill { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 12 | // if zombie resists instakill, it loses this fraction of its max health instead [INFO] [stdout] 13 | pub fn hp_fraction(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/sun.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Sun { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub source: SunSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sun` 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 `health` is never used [INFO] [stdout] --> src/zombie/zombie.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Zombie { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn health(&self) -> i32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.64s [INFO] running `Command { std: "docker" "inspect" "4fe3ee9a8ab68ef74c57fbe426bc85234307c7b01941a347a1635c2cac0365ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fe3ee9a8ab68ef74c57fbe426bc85234307c7b01941a347a1635c2cac0365ea", kill_on_drop: false }` [INFO] [stdout] 4fe3ee9a8ab68ef74c57fbe426bc85234307c7b01941a347a1635c2cac0365ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 9dc4ff7d8a93c78988cc8425355845fc3e758fd343f6dcc8b7db04bd60f19b21 [INFO] running `Command { std: "docker" "start" "-a" "9dc4ff7d8a93c78988cc8425355845fc3e758fd343f6dcc8b7db04bd60f19b21", kill_on_drop: false }` [INFO] [stderr] Compiling pvz_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/zombie/pole_zombie.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::clone; [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 variable: `zombies` [INFO] [stdout] --> src/plant/cherry_bomb.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(&mut self, dt: f32, zombies: &[Box]) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_zombies` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/plant/wallnut.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | fn update(&mut self, dt: f32, zombies: &[Box]) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zombies` [INFO] [stdout] --> src/plant/wallnut.rs:41:35 [INFO] [stdout] | [INFO] [stdout] 41 | fn update(&mut self, dt: f32, zombies: &[Box]) -> Option { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_zombies` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tier` [INFO] [stdout] --> src/zombie/basic_zombie.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | fn is_instakill(&mut self, tier: Instakill) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_WIDTH` is never used [INFO] [stdout] --> src/constants.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const TILE_WIDTH: f32 = TILE_SIZE; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `col` are never read [INFO] [stdout] --> src/grid.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Tile { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | pub row: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tile` 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 `High` is never constructed [INFO] [stdout] --> src/projectile/projectile.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Instakill { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 8 | High, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instakill` 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 `hp_fraction` is never used [INFO] [stdout] --> src/projectile/projectile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Instakill { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 12 | // if zombie resists instakill, it loses this fraction of its max health instead [INFO] [stdout] 13 | pub fn hp_fraction(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/sun.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Sun { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub source: SunSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sun` 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 `health` is never used [INFO] [stdout] --> src/zombie/zombie.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Zombie { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn health(&self) -> i32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `Command { std: "docker" "inspect" "9dc4ff7d8a93c78988cc8425355845fc3e758fd343f6dcc8b7db04bd60f19b21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dc4ff7d8a93c78988cc8425355845fc3e758fd343f6dcc8b7db04bd60f19b21", kill_on_drop: false }` [INFO] [stdout] 9dc4ff7d8a93c78988cc8425355845fc3e758fd343f6dcc8b7db04bd60f19b21