[INFO] cloning repository https://github.com/mablin7/dies-behavior-trees-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mablin7/dies-behavior-trees-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmablin7%2Fdies-behavior-trees-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmablin7%2Fdies-behavior-trees-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c2d42be670246206e74a6c12aefd235737d0f0d [INFO] testing mablin7/dies-behavior-trees-demo against master#e9385f9eea0221ef295a188d49d16f8f5189abf1 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmablin7%2Fdies-behavior-trees-demo" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mablin7/dies-behavior-trees-demo [INFO] finished tweaking git repo https://github.com/mablin7/dies-behavior-trees-demo [INFO] tweaked toml for git repo https://github.com/mablin7/dies-behavior-trees-demo written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mablin7/dies-behavior-trees-demo on toolchain e9385f9eea0221ef295a188d49d16f8f5189abf1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mablin7/dies-behavior-trees-demo 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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wgpu-types v0.16.1 [INFO] [stderr] Downloaded mint v0.5.9 [INFO] [stderr] Downloaded crevice-derive v0.10.0 [INFO] [stderr] Downloaded crevice v0.13.0 [INFO] [stderr] Downloaded glyph_brush_layout v0.2.4 [INFO] [stderr] Downloaded smart-default v0.7.1 [INFO] [stderr] Downloaded twox-hash v2.1.0 [INFO] [stderr] Downloaded gilrs-core v0.5.15 [INFO] [stderr] Downloaded lyon_algorithms v1.0.5 [INFO] [stderr] Downloaded uuid v1.12.0 [INFO] [stderr] Downloaded cc v1.2.9 [INFO] [stderr] Downloaded glyph_brush v0.7.11 [INFO] [stderr] Downloaded glyph_brush_draw_cache v0.1.6 [INFO] [stderr] Downloaded wgpu-hal v0.16.2 [INFO] [stderr] Downloaded gilrs v0.10.10 [INFO] [stderr] Downloaded lyon_tessellation v1.0.15 [INFO] [stderr] Downloaded wgpu-core v0.16.1 [INFO] [stderr] Downloaded d3d12 v0.6.0 [INFO] [stderr] Downloaded wgpu v0.16.3 [INFO] [stderr] Downloaded float_next_after v1.0.0 [INFO] [stderr] Downloaded ggez v0.9.3 [INFO] [stderr] Downloaded lyon_geom v1.0.6 [INFO] [stderr] Downloaded lyon_path v1.0.6 [INFO] [stderr] Downloaded gpu-alloc v0.5.4 [INFO] [stderr] Downloaded lyon v1.0.1 [INFO] [stderr] Downloaded gpu-alloc-types v0.2.0 [INFO] [stderr] Downloaded naga v0.12.3 [INFO] [stderr] Downloaded metal v0.24.0 [INFO] [stderr] Downloaded rustix v0.38.43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab7833fe16fb102032b7e5751054c92f83bea9124297ca99d6d2f9baa359d383 [INFO] running `Command { std: "docker" "start" "-a" "ab7833fe16fb102032b7e5751054c92f83bea9124297ca99d6d2f9baa359d383", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab7833fe16fb102032b7e5751054c92f83bea9124297ca99d6d2f9baa359d383", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab7833fe16fb102032b7e5751054c92f83bea9124297ca99d6d2f9baa359d383", kill_on_drop: false }` [INFO] [stdout] ab7833fe16fb102032b7e5751054c92f83bea9124297ca99d6d2f9baa359d383 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 162ff39289d50050d941623a8a1e0bd751e25de5f0351df5d2ea4e3554419cc2 [INFO] running `Command { std: "docker" "start" "-a" "162ff39289d50050d941623a8a1e0bd751e25de5f0351df5d2ea4e3554419cc2", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling xml-rs v0.8.25 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling cc v1.2.9 [INFO] [stderr] Compiling miniz_oxide v0.8.3 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling rustix v0.38.43 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling semver v1.0.24 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling euclid v0.22.11 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling lyon_geom v1.0.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling bytemuck_derive v1.8.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling bytemuck v1.21.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling tempfile v3.15.0 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling naga v0.12.3 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling gpu-alloc v0.5.4 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling lyon_path v1.0.6 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling wgpu-types v0.16.1 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling cargo-platform v0.1.9 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling inotify v0.10.2 [INFO] [stderr] Compiling wgpu-hal v0.16.2 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling uuid v1.12.0 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling gilrs v0.10.10 [INFO] [stderr] Compiling float_next_after v1.0.0 [INFO] [stderr] Compiling mint v0.5.9 [INFO] [stderr] Compiling lyon_tessellation v1.0.15 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.6 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling glyph_brush_layout v0.2.4 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling gilrs-core v0.5.15 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Compiling wgpu-core v0.16.1 [INFO] [stderr] Compiling twox-hash v2.1.0 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling lyon_algorithms v1.0.5 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling rodio v0.17.3 [INFO] [stderr] Compiling glyph_brush v0.7.11 [INFO] [stderr] Compiling lyon v1.0.1 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling directories v5.0.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling crevice v0.13.0 [INFO] [stderr] Compiling glam v0.24.2 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling wgpu v0.16.3 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling soccer-strategy-sandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `WorldState` [INFO] [stdout] --> src/strategy/situation.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::{PlayerId, Team, WorldState}; [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: `Team` [INFO] [stdout] --> src/strategy/plays.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::{PlayerId, Team}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `behavior::*` [INFO] [stdout] --> src/strategy/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use behavior::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `robot_control::RobotControl` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use robot_control::RobotControl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/strategy/plays.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn create_striker(player_id: PlayerId) -> impl BehaviorNode { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/strategy/plays.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn create_support_attacker(player_id: PlayerId) -> impl BehaviorNode { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | let (mut ctx, event_loop) = ContextBuilder::new("soccer-strategy-sandbox", "author") [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut game = GameEngine::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_robot_velocity`, `set_robot_rotation`, and `get_robot_position` are never used [INFO] [stdout] --> src/game_engine.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl GameEngine { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn set_robot_velocity(&mut self, id: PlayerId, velocity: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn set_robot_rotation(&mut self, id: PlayerId, rotation: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn get_robot_position(&self, id: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RobotControl` is never constructed [INFO] [stdout] --> src/robot_control.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RobotControl<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_team_robots`, `set_robot_velocity`, `set_robot_rotation`, and `move_robot_to` are never used [INFO] [stdout] --> src/robot_control.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> RobotControl<'a> { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(engine: &'a mut GameEngine) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get_team_robots(&self, team: Team) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set_robot_velocity(&mut self, id: PlayerId, velocity: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_robot_rotation(&mut self, id: PlayerId, rotation: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn move_robot_to(&mut self, id: PlayerId, target: Vec2, max_speed: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `robot_id` is never read [INFO] [stdout] --> src/strategy/behavior.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct BehaviorContext { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 20 | pub robot_id: PlayerId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BehaviorBuilder` is never constructed [INFO] [stdout] --> src/strategy/behavior.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct BehaviorBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `velocity`, `has_ball`, `team`, `is_marked`, `teammates_positions`, and `opponents_positions` are never read [INFO] [stdout] --> src/strategy/situation.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RobotSituation { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 6 | pub position: Vec2, [INFO] [stdout] 7 | pub velocity: Vec2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub team: Team, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub shot_quality: f32, [INFO] [stdout] 11 | pub is_marked: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub teammates_positions: Vec<(PlayerId, Vec2)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub opponents_positions: Vec<(PlayerId, Vec2)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RobotSituation` 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: struct `Situation` is never constructed [INFO] [stdout] --> src/strategy/situation.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Situation [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DebugVisualization` is never used [INFO] [stdout] --> src/strategy/situation.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum DebugVisualization { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebugColor` is never constructed [INFO] [stdout] --> src/strategy/situation.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct DebugColor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_visualization`, `evaluate`, `and`, and `or` are never used [INFO] [stdout] --> src/strategy/situation.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 52 | / impl Situation [INFO] [stdout] 53 | | where [INFO] [stdout] 54 | | F: Fn(&RobotSituation) -> bool, [INFO] [stdout] | |___________________________________- associated items in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(condition: F, description: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn with_visualization(mut self, vis: DebugVisualization) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn evaluate(&self, situation: &RobotSituation) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn and(self, other: Situation) -> Situation bool> [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn or(self, other: Situation) -> Situation bool> [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_ball` is never used [INFO] [stdout] --> src/strategy/plays.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn has_ball() -> Situation bool> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `good_shot_opportunity` is never used [INFO] [stdout] --> src/strategy/plays.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn good_shot_opportunity() -> Situation bool> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `teammate_has_ball` is never used [INFO] [stdout] --> src/strategy/plays.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn teammate_has_ball() -> Situation bool> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rotation` and `has_ball` are never read [INFO] [stdout] --> src/types.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Robot { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub rotation: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | pub team: Team, [INFO] [stdout] 14 | pub has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Robot` 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: field `goal_width` is never read [INFO] [stdout] --> src/types.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Field { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub goal_width: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.52s [INFO] running `Command { std: "docker" "inspect" "162ff39289d50050d941623a8a1e0bd751e25de5f0351df5d2ea4e3554419cc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "162ff39289d50050d941623a8a1e0bd751e25de5f0351df5d2ea4e3554419cc2", kill_on_drop: false }` [INFO] [stdout] 162ff39289d50050d941623a8a1e0bd751e25de5f0351df5d2ea4e3554419cc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78e1bc8d0ac7695a24bf53f7165a2c730c9c94975007b3151b707f654e280db6 [INFO] running `Command { std: "docker" "start" "-a" "78e1bc8d0ac7695a24bf53f7165a2c730c9c94975007b3151b707f654e280db6", kill_on_drop: false }` [INFO] [stderr] Compiling soccer-strategy-sandbox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `WorldState` [INFO] [stdout] --> src/strategy/situation.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::types::{PlayerId, Team, WorldState}; [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: `Team` [INFO] [stdout] --> src/strategy/plays.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::types::{PlayerId, Team}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `behavior::*` [INFO] [stdout] --> src/strategy/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use behavior::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `robot_control::RobotControl` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use robot_control::RobotControl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/strategy/plays.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn create_striker(player_id: PlayerId) -> impl BehaviorNode { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_id` [INFO] [stdout] --> src/strategy/plays.rs:65:32 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn create_support_attacker(player_id: PlayerId) -> impl BehaviorNode { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | let (mut ctx, event_loop) = ContextBuilder::new("soccer-strategy-sandbox", "author") [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut game = GameEngine::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_robot_velocity`, `set_robot_rotation`, and `get_robot_position` are never used [INFO] [stdout] --> src/game_engine.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl GameEngine { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn set_robot_velocity(&mut self, id: PlayerId, velocity: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn set_robot_rotation(&mut self, id: PlayerId, rotation: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | pub fn get_robot_position(&self, id: PlayerId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RobotControl` is never constructed [INFO] [stdout] --> src/robot_control.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RobotControl<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_team_robots`, `set_robot_velocity`, `set_robot_rotation`, and `move_robot_to` are never used [INFO] [stdout] --> src/robot_control.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'a> RobotControl<'a> { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(engine: &'a mut GameEngine) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get_team_robots(&self, team: Team) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set_robot_velocity(&mut self, id: PlayerId, velocity: Vec2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_robot_rotation(&mut self, id: PlayerId, rotation: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn move_robot_to(&mut self, id: PlayerId, target: Vec2, max_speed: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `robot_id` is never read [INFO] [stdout] --> src/strategy/behavior.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct BehaviorContext { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 20 | pub robot_id: PlayerId, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BehaviorBuilder` is never constructed [INFO] [stdout] --> src/strategy/behavior.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct BehaviorBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `velocity`, `has_ball`, `team`, `is_marked`, `teammates_positions`, and `opponents_positions` are never read [INFO] [stdout] --> src/strategy/situation.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RobotSituation { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 6 | pub position: Vec2, [INFO] [stdout] 7 | pub velocity: Vec2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub team: Team, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub shot_quality: f32, [INFO] [stdout] 11 | pub is_marked: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub teammates_positions: Vec<(PlayerId, Vec2)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub opponents_positions: Vec<(PlayerId, Vec2)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RobotSituation` 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: struct `Situation` is never constructed [INFO] [stdout] --> src/strategy/situation.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Situation [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DebugVisualization` is never used [INFO] [stdout] --> src/strategy/situation.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum DebugVisualization { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebugColor` is never constructed [INFO] [stdout] --> src/strategy/situation.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct DebugColor { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_visualization`, `evaluate`, `and`, and `or` are never used [INFO] [stdout] --> src/strategy/situation.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 52 | / impl Situation [INFO] [stdout] 53 | | where [INFO] [stdout] 54 | | F: Fn(&RobotSituation) -> bool, [INFO] [stdout] | |___________________________________- associated items in this implementation [INFO] [stdout] 55 | { [INFO] [stdout] 56 | pub fn new(condition: F, description: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn with_visualization(mut self, vis: DebugVisualization) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn evaluate(&self, situation: &RobotSituation) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn and(self, other: Situation) -> Situation bool> [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn or(self, other: Situation) -> Situation bool> [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_ball` is never used [INFO] [stdout] --> src/strategy/plays.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn has_ball() -> Situation bool> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `good_shot_opportunity` is never used [INFO] [stdout] --> src/strategy/plays.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn good_shot_opportunity() -> Situation bool> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `teammate_has_ball` is never used [INFO] [stdout] --> src/strategy/plays.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn teammate_has_ball() -> Situation bool> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rotation` and `has_ball` are never read [INFO] [stdout] --> src/types.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Robot { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | pub rotation: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | pub team: Team, [INFO] [stdout] 14 | pub has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Robot` 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: field `goal_width` is never read [INFO] [stdout] --> src/types.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Field { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub goal_width: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "78e1bc8d0ac7695a24bf53f7165a2c730c9c94975007b3151b707f654e280db6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78e1bc8d0ac7695a24bf53f7165a2c730c9c94975007b3151b707f654e280db6", kill_on_drop: false }` [INFO] [stdout] 78e1bc8d0ac7695a24bf53f7165a2c730c9c94975007b3151b707f654e280db6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+e9385f9eea0221ef295a188d49d16f8f5189abf1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d0c1a72d15e6109d17f5b0ad3ac795ac2560c14da4a1dc6f4028eefe451f9b01 [INFO] running `Command { std: "docker" "start" "-a" "d0c1a72d15e6109d17f5b0ad3ac795ac2560c14da4a1dc6f4028eefe451f9b01", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `WorldState` [INFO] [stderr] --> src/strategy/situation.rs:1:36 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::types::{PlayerId, Team, WorldState}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Team` [INFO] [stderr] --> src/strategy/plays.rs:3:30 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::types::{PlayerId, Team}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `behavior::*` [INFO] [stderr] --> src/strategy/mod.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub use behavior::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `robot_control::RobotControl` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use robot_control::RobotControl; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player_id` [INFO] [stderr] --> src/strategy/plays.rs:35:23 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn create_striker(player_id: PlayerId) -> impl BehaviorNode { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player_id` [INFO] [stderr] --> src/strategy/plays.rs:65:32 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn create_support_attacker(player_id: PlayerId) -> impl BehaviorNode { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_id` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | let (mut ctx, event_loop) = ContextBuilder::new("soccer-strategy-sandbox", "author") [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | let mut game = GameEngine::new(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: methods `set_robot_velocity`, `set_robot_rotation`, and `get_robot_position` are never used [INFO] [stderr] --> src/game_engine.rs:84:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl GameEngine { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 84 | pub fn set_robot_velocity(&mut self, id: PlayerId, velocity: Vec2) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 90 | pub fn set_robot_rotation(&mut self, id: PlayerId, rotation: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 192 | pub fn get_robot_position(&self, id: PlayerId) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `RobotControl` is never constructed [INFO] [stderr] --> src/robot_control.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct RobotControl<'a> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `get_team_robots`, `set_robot_velocity`, `set_robot_rotation`, and `move_robot_to` are never used [INFO] [stderr] --> src/robot_control.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl<'a> RobotControl<'a> { [INFO] [stderr] | ------------------------- associated items in this implementation [INFO] [stderr] 10 | pub fn new(engine: &'a mut GameEngine) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | pub fn get_team_robots(&self, team: Team) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | pub fn set_robot_velocity(&mut self, id: PlayerId, velocity: Vec2) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn set_robot_rotation(&mut self, id: PlayerId, rotation: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn move_robot_to(&mut self, id: PlayerId, target: Vec2, max_speed: f32) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `robot_id` is never read [INFO] [stderr] --> src/strategy/behavior.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct BehaviorContext { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] 20 | pub robot_id: PlayerId, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BehaviorBuilder` is never constructed [INFO] [stderr] --> src/strategy/behavior.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct BehaviorBuilder { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `velocity`, `has_ball`, `team`, `is_marked`, `teammates_positions`, and `opponents_positions` are never read [INFO] [stderr] --> src/strategy/situation.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct RobotSituation { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 6 | pub position: Vec2, [INFO] [stderr] 7 | pub velocity: Vec2, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 8 | pub has_ball: bool, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 9 | pub team: Team, [INFO] [stderr] | ^^^^ [INFO] [stderr] 10 | pub shot_quality: f32, [INFO] [stderr] 11 | pub is_marked: bool, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 12 | pub teammates_positions: Vec<(PlayerId, Vec2)>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | pub opponents_positions: Vec<(PlayerId, Vec2)>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RobotSituation` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `Situation` is never constructed [INFO] [stderr] --> src/strategy/situation.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Situation [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `DebugVisualization` is never used [INFO] [stderr] --> src/strategy/situation.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | pub enum DebugVisualization { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DebugColor` is never constructed [INFO] [stderr] --> src/strategy/situation.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub struct DebugColor { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `with_visualization`, `evaluate`, `and`, and `or` are never used [INFO] [stderr] --> src/strategy/situation.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 52 | / impl Situation [INFO] [stderr] 53 | | where [INFO] [stderr] 54 | | F: Fn(&RobotSituation) -> bool, [INFO] [stderr] | |___________________________________- associated items in this implementation [INFO] [stderr] 55 | { [INFO] [stderr] 56 | pub fn new(condition: F, description: impl Into) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | pub fn with_visualization(mut self, vis: DebugVisualization) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn evaluate(&self, situation: &RobotSituation) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub fn and(self, other: Situation) -> Situation bool> [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | pub fn or(self, other: Situation) -> Situation bool> [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function `has_ball` is never used [INFO] [stderr] --> src/strategy/plays.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn has_ball() -> Situation bool> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `good_shot_opportunity` is never used [INFO] [stderr] --> src/strategy/plays.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn good_shot_opportunity() -> Situation bool> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `teammate_has_ball` is never used [INFO] [stderr] --> src/strategy/plays.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn teammate_has_ball() -> Situation bool> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `rotation` and `has_ball` are never read [INFO] [stderr] --> src/types.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct Robot { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | pub rotation: f32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 13 | pub team: Team, [INFO] [stderr] 14 | pub has_ball: bool, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Robot` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `goal_width` is never read [INFO] [stderr] --> src/types.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 37 | pub struct Field { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] ... [INFO] [stderr] 40 | pub goal_width: f32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `soccer-strategy-sandbox` (bin "soccer-strategy-sandbox" test) generated 23 warnings (run `cargo fix --bin "soccer-strategy-sandbox" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/soccer_strategy_sandbox-09e4780a8e95e5a2) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d0c1a72d15e6109d17f5b0ad3ac795ac2560c14da4a1dc6f4028eefe451f9b01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0c1a72d15e6109d17f5b0ad3ac795ac2560c14da4a1dc6f4028eefe451f9b01", kill_on_drop: false }` [INFO] [stdout] d0c1a72d15e6109d17f5b0ad3ac795ac2560c14da4a1dc6f4028eefe451f9b01