[INFO] cloning repository https://github.com/fan915/plane [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fan915/plane" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffan915%2Fplane", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffan915%2Fplane'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b63b690754220edec2ee7f07d69a715e52250fc [INFO] building fan915/plane against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffan915%2Fplane" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fan915/plane [INFO] finished tweaking git repo https://github.com/fan915/plane [INFO] tweaked toml for git repo https://github.com/fan915/plane written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fan915/plane on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fan915/plane 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded android_log-sys v0.3.2 [INFO] [stderr] Downloaded libloading v0.8.7 [INFO] [stderr] Downloaded svg_fmt v0.4.5 [INFO] [stderr] Downloaded cc v1.2.23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a45f2223835ea4a589d5ebf279fa473193d635112b129e0b071c3a6dff16b2c5 [INFO] running `Command { std: "docker" "start" "-a" "a45f2223835ea4a589d5ebf279fa473193d635112b129e0b071c3a6dff16b2c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a45f2223835ea4a589d5ebf279fa473193d635112b129e0b071c3a6dff16b2c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a45f2223835ea4a589d5ebf279fa473193d635112b129e0b071c3a6dff16b2c5", kill_on_drop: false }` [INFO] [stdout] a45f2223835ea4a589d5ebf279fa473193d635112b129e0b071c3a6dff16b2c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 887c8c81d6acd2b2ee2541a3379af5e3e9c7695908096098fc180eadadfa8da0 [INFO] running `Command { std: "docker" "start" "-a" "887c8c81d6acd2b2ee2541a3379af5e3e9c7695908096098fc180eadadfa8da0", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling cc v1.2.23 [INFO] [stderr] Compiling pp-rs v0.2.1 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling async-executor v1.13.2 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling bevy_tasks v0.12.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling async-broadcast v0.5.1 [INFO] [stderr] Compiling const_panic v0.2.12 [INFO] [stderr] Compiling radsort v0.1.1 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling xml-rs v0.8.26 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling euclid v0.22.11 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling svg_fmt v0.4.5 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ttf-parser v0.25.1 [INFO] [stderr] Compiling toml_edit v0.20.7 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling inotify v0.10.2 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling gilrs v0.10.10 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling guillotiere v0.6.2 [INFO] [stderr] Compiling sysinfo v0.29.11 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling taffy v0.3.19 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling ab_glyph v0.2.29 [INFO] [stderr] Compiling glyph_brush_layout v0.2.4 [INFO] [stderr] Compiling bevy_macro_utils v0.12.1 [INFO] [stderr] Compiling encase_derive_impl v0.6.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling bytemuck_derive v1.9.3 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling bevy_utils_proc_macros v0.12.1 [INFO] [stderr] Compiling bevy_reflect_derive v0.12.1 [INFO] [stderr] Compiling bevy_ecs_macros v0.12.1 [INFO] [stderr] Compiling bevy_derive v0.12.1 [INFO] [stderr] Compiling thiserror-core-impl v1.0.50 [INFO] [stderr] Compiling bevy_asset_macros v0.12.1 [INFO] [stderr] Compiling bevy_render_macros v0.12.1 [INFO] [stderr] Compiling gltf-derive v1.4.1 [INFO] [stderr] Compiling encase_derive v0.6.1 [INFO] [stderr] Compiling bevy_encase_derive v0.12.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling bytemuck v1.23.0 [INFO] [stderr] Compiling thiserror-core v1.0.50 [INFO] [stderr] Compiling ruzstd v0.4.0 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling accesskit_winit v0.15.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling glam v0.24.2 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling erased-serde v0.3.31 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling naga v0.13.0 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling wgpu-types v0.17.0 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling gpu-alloc v0.6.0 [INFO] [stderr] Compiling bevy_utils v0.12.1 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling gilrs-core v0.5.15 [INFO] [stderr] Compiling gltf-json v1.4.1 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling rodio v0.17.3 [INFO] [stderr] Compiling bevy_math v0.12.1 [INFO] [stderr] Compiling encase v0.6.1 [INFO] [stderr] Compiling bevy_mikktspace v0.12.1 [INFO] [stderr] Compiling hexasphere v9.1.0 [INFO] [stderr] Compiling bevy_reflect v0.12.1 [INFO] [stderr] Compiling gltf v1.4.1 [INFO] [stderr] Compiling wgpu-hal v0.17.2 [INFO] [stderr] Compiling naga_oil v0.10.1 [INFO] [stderr] Compiling bevy_ecs v0.12.1 [INFO] [stderr] Compiling wgpu-core v0.17.1 [INFO] [stderr] Compiling bevy_app v0.12.1 [INFO] [stderr] Compiling bevy_log v0.12.1 [INFO] [stderr] Compiling bevy_core v0.12.1 [INFO] [stderr] Compiling bevy_input v0.12.1 [INFO] [stderr] Compiling bevy_time v0.12.1 [INFO] [stderr] Compiling bevy_a11y v0.12.1 [INFO] [stderr] Compiling bevy_asset v0.12.1 [INFO] [stderr] Compiling wgpu v0.17.2 [INFO] [stderr] Compiling bevy_hierarchy v0.12.1 [INFO] [stderr] Compiling bevy_diagnostic v0.12.1 [INFO] [stderr] Compiling bevy_transform v0.12.1 [INFO] [stderr] Compiling bevy_window v0.12.1 [INFO] [stderr] Compiling bevy_gilrs v0.12.1 [INFO] [stderr] Compiling bevy_audio v0.12.1 [INFO] [stderr] Compiling bevy_render v0.12.1 [INFO] [stderr] Compiling bevy_winit v0.12.1 [INFO] [stderr] Compiling bevy_core_pipeline v0.12.1 [INFO] [stderr] Compiling bevy_scene v0.12.1 [INFO] [stderr] Compiling bevy_animation v0.12.1 [INFO] [stderr] Compiling bevy_sprite v0.12.1 [INFO] [stderr] Compiling bevy_pbr v0.12.1 [INFO] [stderr] Compiling bevy_text v0.12.1 [INFO] [stderr] Compiling bevy_ui v0.12.1 [INFO] [stderr] Compiling bevy_gltf v0.12.1 [INFO] [stderr] Compiling bevy_gizmos v0.12.1 [INFO] [stderr] Compiling bevy_internal v0.12.1 [INFO] [stderr] Compiling bevy v0.12.1 [INFO] [stderr] Compiling plane_battle v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::collision::PlayerHitEvent` [INFO] [stdout] --> src/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::collision::PlayerHitEvent; [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 import: `crate::game_state::GameState` [INFO] [stdout] --> src/bullet.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game_state::GameState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PLAYER_MAX_HEALTH`, `Player1`, and `Player2` [INFO] [stdout] --> src/collision.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::player::{Player, Player1, Player2, PLAYER_MAX_HEALTH}; // 引入正确的组件 [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:188:29 [INFO] [stdout] | [INFO] [stdout] 188 | for (entity, transform, mut player) in &mut players { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player_id`, `new_health`, and `is_dead` are never read [INFO] [stdout] --> src/player.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PlayerHealthEvent { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 21 | pub player_id: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub new_health: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub is_dead: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_to_menu` is never used [INFO] [stdout] --> src/menu.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn return_to_menu( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menu_interaction` is never used [INFO] [stdout] --> src/menu.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn menu_interaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `frame_size` is never read [INFO] [stdout] --> src/explosion.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ExplosionAnimation { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub frame_size: Vec2, // 单帧尺寸 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bullet_entity` and `hit_position` are never read [INFO] [stdout] --> src/collision.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct PlayerHitEvent { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | pub player_entity: Entity, [INFO] [stdout] 10 | pub bullet_entity: Entity, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub hit_position: Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 12s [INFO] running `Command { std: "docker" "inspect" "887c8c81d6acd2b2ee2541a3379af5e3e9c7695908096098fc180eadadfa8da0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "887c8c81d6acd2b2ee2541a3379af5e3e9c7695908096098fc180eadadfa8da0", kill_on_drop: false }` [INFO] [stdout] 887c8c81d6acd2b2ee2541a3379af5e3e9c7695908096098fc180eadadfa8da0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f477571481a3c3c12a6f655a07c99146938095394511be6c4944c9bfe308203c [INFO] running `Command { std: "docker" "start" "-a" "f477571481a3c3c12a6f655a07c99146938095394511be6c4944c9bfe308203c", kill_on_drop: false }` [INFO] [stderr] Compiling plane_battle v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::collision::PlayerHitEvent` [INFO] [stdout] --> src/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::collision::PlayerHitEvent; [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 import: `crate::game_state::GameState` [INFO] [stdout] --> src/bullet.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game_state::GameState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PLAYER_MAX_HEALTH`, `Player1`, and `Player2` [INFO] [stdout] --> src/collision.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::player::{Player, Player1, Player2, PLAYER_MAX_HEALTH}; // 引入正确的组件 [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player.rs:188:29 [INFO] [stdout] | [INFO] [stdout] 188 | for (entity, transform, mut player) in &mut players { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `player_id`, `new_health`, and `is_dead` are never read [INFO] [stdout] --> src/player.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PlayerHealthEvent { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 21 | pub player_id: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | pub new_health: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | pub is_dead: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_to_menu` is never used [INFO] [stdout] --> src/menu.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn return_to_menu( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menu_interaction` is never used [INFO] [stdout] --> src/menu.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn menu_interaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `frame_size` is never read [INFO] [stdout] --> src/explosion.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ExplosionAnimation { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub frame_size: Vec2, // 单帧尺寸 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bullet_entity` and `hit_position` are never read [INFO] [stdout] --> src/collision.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct PlayerHitEvent { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 9 | pub player_entity: Entity, [INFO] [stdout] 10 | pub bullet_entity: Entity, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub hit_position: Vec3, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.29s [INFO] running `Command { std: "docker" "inspect" "f477571481a3c3c12a6f655a07c99146938095394511be6c4944c9bfe308203c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f477571481a3c3c12a6f655a07c99146938095394511be6c4944c9bfe308203c", kill_on_drop: false }` [INFO] [stdout] f477571481a3c3c12a6f655a07c99146938095394511be6c4944c9bfe308203c