[INFO] cloning repository https://github.com/xiaoyuzju/sc2_copilot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xiaoyuzju/sc2_copilot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaoyuzju%2Fsc2_copilot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaoyuzju%2Fsc2_copilot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecfb4b02214b370eed0e8a41405a244b3e00bfee [INFO] checking xiaoyuzju/sc2_copilot against 1ed2df61a19042f231709eb05d032ae9e2cb2084 for pr-160235 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaoyuzju%2Fsc2_copilot" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xiaoyuzju/sc2_copilot [INFO] finished tweaking git repo https://github.com/xiaoyuzju/sc2_copilot [INFO] tweaked toml for git repo https://github.com/xiaoyuzju/sc2_copilot written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xiaoyuzju/sc2_copilot on toolchain 1ed2df61a19042f231709eb05d032ae9e2cb2084 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xiaoyuzju/sc2_copilot 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" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded muda v0.19.3 [INFO] [stderr] Downloaded tray-icon v0.24.1 [INFO] [stderr] Downloaded wide v1.5.0 [INFO] [stderr] Downloaded global-hotkey v0.8.0 [INFO] [stderr] Downloaded zbus_xml v5.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769 [INFO] running `Command { std: "docker" "start" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769" "/opt/rustwide/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769" "/opt/rustwide/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.107 [INFO] [stderr] Compiling quote v1.0.47 [INFO] [stderr] Compiling serde_core v1.0.229 [INFO] [stderr] Compiling wayland-sys v0.31.11 [INFO] [stderr] Compiling toml_parser v1.1.2+spec-1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.22 [INFO] [stderr] Compiling cc v1.3.0 [INFO] [stderr] Compiling cfg_aliases v0.2.2 [INFO] [stderr] Checking futures-io v0.3.33 [INFO] [stderr] Compiling zerocopy v0.8.55 [INFO] [stderr] Checking fastrand v2.5.0 [INFO] [stderr] Checking arrayvec v0.7.8 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling toml_edit v0.25.13+spec-1.1.0 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Compiling syn v2.0.119 [INFO] [stderr] Compiling syn v3.0.2 [INFO] [stderr] Compiling wayland-scanner v0.31.10 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Compiling wayland-backend v0.3.15 [INFO] [stderr] Checking hashbrown v0.17.1 [INFO] [stderr] Checking uuid v1.24.0 [INFO] [stderr] Checking serde_json v1.0.151 [INFO] [stderr] Checking async-io v2.6.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking wayland-client v0.31.14 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking futures-sink v0.3.33 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking async-signal v0.2.14 [INFO] [stderr] Checking piper v0.2.5 [INFO] [stderr] Checking async-lock v3.4.2 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Checking async-executor v1.14.0 [INFO] [stderr] Checking async-broadcast v0.7.2 [INFO] [stderr] Checking polycool v0.4.0 [INFO] [stderr] Compiling naga v29.0.4 [INFO] [stderr] Checking ordered-stream v0.2.0 [INFO] [stderr] Checking profiling v1.0.18 [INFO] [stderr] Checking async-process v2.5.0 [INFO] [stderr] Checking moxcms v0.8.1 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking kurbo v0.13.1 [INFO] [stderr] Checking png v0.18.1 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Checking wayland-protocols v0.32.13 [INFO] [stderr] Checking wayland-cursor v0.31.14 [INFO] [stderr] Checking accesskit v0.24.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking euclid v0.22.14 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling phf_generator v0.13.1 [INFO] [stderr] Compiling wgpu-hal v29.0.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking guillotiere v0.7.0 [INFO] [stderr] Compiling serde_derive v1.0.229 [INFO] [stderr] Compiling thiserror-impl v2.0.19 [INFO] [stderr] Compiling async-trait v0.1.91 [INFO] [stderr] Compiling serde_repr v0.1.21 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking gpu-descriptor-types v0.2.0 [INFO] [stderr] Checking thiserror v2.0.19 [INFO] [stderr] Compiling matrixmultiply v0.3.11 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Compiling unicode-general-category v1.1.0 [INFO] [stderr] Checking as-raw-xcb-connection v1.0.1 [INFO] [stderr] Checking presser v0.3.1 [INFO] [stderr] Checking fearless_simd v0.4.1 [INFO] [stderr] Compiling bytemuck_derive v1.11.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Checking bytemuck v1.25.2 [INFO] [stderr] Compiling zerocopy-derive v0.8.55 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Checking zerofrom v0.1.8 [INFO] [stderr] Checking yoke v0.8.3 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling displaydoc v0.2.6 [INFO] [stderr] Compiling futures-macro v0.3.33 [INFO] [stderr] Checking serde v1.0.229 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Checking zerotrie v0.2.4 [INFO] [stderr] Checking zvariant_utils v3.5.0 [INFO] [stderr] Checking enumflags2 v0.7.12 [INFO] [stderr] Checking sc2-copilot-core v0.1.0 (/opt/rustwide/workdir/crates/sc2-copilot-core) [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Compiling zvariant_derive v5.13.1 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.12 [INFO] [stderr] Checking futures-util v0.3.33 [INFO] [stderr] Checking color v0.3.3 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking font-types v0.11.3 [INFO] [stderr] Checking peniko v0.6.1 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Compiling zvariant v5.13.1 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking read-fonts v0.39.2 [INFO] [stderr] Checking wgpu-types v29.0.4 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking image v0.25.10 [INFO] [stderr] Checking safe_arch v1.1.0 [INFO] [stderr] Checking zbus_names v4.3.4 [INFO] [stderr] Checking http v1.4.2 [INFO] [stderr] Checking wide v1.5.0 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking zbus_xml v5.2.1 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling zbus_macros v5.18.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking zbus-lockstep v0.5.2 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking vello_common v0.0.9 [INFO] [stderr] Checking emath v0.35.0 [INFO] [stderr] Compiling phf_macros v0.13.1 [INFO] [stderr] Compiling zbus-lockstep-macros v0.5.2 [INFO] [stderr] Checking gpu-allocator v0.28.0 [INFO] [stderr] Checking gpu-descriptor v0.3.2 [INFO] [stderr] Checking khronos-egl v6.0.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling winit v0.30.13 [INFO] [stderr] Checking ordered-float v5.3.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking mio v1.2.2 [INFO] [stderr] Checking glow v0.17.0 [INFO] [stderr] Checking tokio v1.53.1 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking phf v0.13.1 [INFO] [stderr] Checking simba v0.10.0 [INFO] [stderr] Checking harfrust v0.7.0 [INFO] [stderr] Checking zbus v5.18.0 [INFO] [stderr] Checking skrifa v0.42.1 [INFO] [stderr] Checking rand v0.10.2 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking vello_cpu v0.0.9 [INFO] [stderr] Checking ecolor v0.35.0 [INFO] [stderr] Checking http-body v1.1.0 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.12 [INFO] [stderr] Checking calloop v0.14.4 [INFO] [stderr] Checking accesskit_consumer v0.36.0 [INFO] [stderr] Checking num-iter v0.1.46 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling wgpu-core v29.0.4 [INFO] [stderr] Checking self_cell v1.3.0 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Compiling smithay-client-toolkit v0.20.0 [INFO] [stderr] Checking epaint_default_fonts v0.35.0 [INFO] [stderr] Checking dpi v0.1.2 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking calloop-wayland-source v0.4.1 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking epaint v0.35.0 [INFO] [stderr] Checking rand_distr v0.6.0 [INFO] [stderr] Checking wayland-protocols-experimental v20250721.0.1 [INFO] [stderr] Checking wayland-protocols-misc v0.3.12 [INFO] [stderr] Compiling zmij v1.0.23 [INFO] [stderr] Compiling wgpu v29.0.4 [INFO] [stderr] Checking futures-channel v0.3.33 [INFO] [stderr] Checking egui v0.35.0 [INFO] [stderr] Checking nalgebra v0.35.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking web-time v1.1.0 [INFO] [stderr] Checking rustc-hash v2.1.3 [INFO] [stderr] Checking type-map v0.5.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking smithay-clipboard v0.7.3 [INFO] [stderr] Checking hyper v1.11.0 [INFO] [stderr] Checking arboard v3.6.1 [INFO] [stderr] Checking webbrowser v1.2.1 [INFO] [stderr] Checking wgpu-naga-bridge v29.0.4 [INFO] [stderr] Checking tower-http v0.6.11 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking http-body-util v0.1.4 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking atspi-common v0.13.0 [INFO] [stderr] Compiling sc2-copilot-app v0.1.0 (/opt/rustwide/workdir/crates/sc2-copilot-app) [INFO] [stderr] Checking schedule-data v0.1.0 (/opt/rustwide/workdir/tools/schedule-data) [INFO] [stderr] Checking reqwest v0.13.4 [INFO] [stderr] Checking wgpu-core-deps-windows-linux-android v29.0.4 [INFO] [stderr] Checking atspi-proxies v0.13.0 [INFO] [stderr] Checking accesskit_atspi_common v0.18.1 [INFO] [stderr] Checking imageproc v0.27.0 [INFO] [stderr] Checking atspi v0.29.0 [INFO] [stderr] Checking accesskit_unix v0.21.1 [INFO] [stderr] Checking sc2-copilot-vision v0.1.0 (/opt/rustwide/workdir/crates/sc2-copilot-vision) [INFO] [stderr] Checking accesskit_winit v0.32.2 [INFO] [stderr] Checking egui-winit v0.35.0 [INFO] [stderr] Checking egui-wgpu v0.35.0 [INFO] [stderr] Checking eframe v0.35.0 [INFO] [stdout] warning: constant `REFERENCE_WIDTH` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const REFERENCE_WIDTH: u32 = 1920; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFERENCE_HEIGHT` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const REFERENCE_HEIGHT: u32 = 1080; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFERENCE_MINIMAP_LEFT` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const REFERENCE_MINIMAP_LEFT: u32 = 27; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFERENCE_MINIMAP_TOP` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const REFERENCE_MINIMAP_TOP: u32 = 807; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFERENCE_MINIMAP_WIDTH` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const REFERENCE_MINIMAP_WIDTH: u32 = 264; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFERENCE_MINIMAP_HEIGHT` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const REFERENCE_MINIMAP_HEIGHT: u32 = 259; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MINIMAP_WIDTH` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) const MINIMAP_WIDTH: u32 = REFERENCE_MINIMAP_WIDTH; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MINIMAP_HEIGHT` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const MINIMAP_HEIGHT: u32 = REFERENCE_MINIMAP_HEIGHT; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) enum CaptureError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 15 | #[error("未找到 SC2 游戏窗口")] [INFO] [stdout] 16 | WindowNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("SC2 不在前台")] [INFO] [stdout] 18 | WindowNotForeground, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | #[error("SC2 窗口已最小化")] [INFO] [stdout] 20 | WindowMinimized, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | #[error("当前 SC2 客户区不是已支持的 16:9 布局")] [INFO] [stdout] 22 | UnsupportedLayout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | #[error("当前显示器旋转方向尚不支持")] [INFO] [stdout] 24 | UnsupportedRotation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | #[error("小地图区域缺少可验证的游戏画面内容")] [INFO] [stdout] 26 | InvalidMinimap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Backend(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CaptureError` 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 `MinimapLayout` is never constructed [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct MinimapLayout { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `for_client` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl MinimapLayout { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 66 | fn for_client(width: u32, height: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scale` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn scale(value: u32, actual: u32, reference: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_plausible_minimap_content` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn has_plausible_minimap_content(image: &RgbImage) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ShowSettings`, `ToggleInteraction`, and `Quit` are never constructed [INFO] [stdout] --> crates/sc2-copilot-app/src/platform.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PlatformAction { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 3 | ShowSettings, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | ToggleInteraction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlatformAction` 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: multiple variants are never constructed [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) enum CaptureError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 15 | #[error("未找到 SC2 游戏窗口")] [INFO] [stdout] 16 | WindowNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[error("SC2 不在前台")] [INFO] [stdout] 18 | WindowNotForeground, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | #[error("SC2 窗口已最小化")] [INFO] [stdout] 20 | WindowMinimized, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | #[error("当前 SC2 客户区不是已支持的 16:9 布局")] [INFO] [stdout] 22 | UnsupportedLayout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | #[error("当前显示器旋转方向尚不支持")] [INFO] [stdout] 24 | UnsupportedRotation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | #[error("小地图区域缺少可验证的游戏画面内容")] [INFO] [stdout] 26 | InvalidMinimap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Backend(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CaptureError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expected_live_variant` is never used [INFO] [stdout] --> crates/sc2-copilot-app/src/capture.rs:898:8 [INFO] [stdout] | [INFO] [stdout] 898 | fn expected_live_variant(map_id: &str, ping_present: bool) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ShowSettings`, `ToggleInteraction`, and `Quit` are never constructed [INFO] [stdout] --> crates/sc2-copilot-app/src/platform.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PlatformAction { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 3 | ShowSettings, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 4 | ToggleInteraction, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlatformAction` 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 4m 00s [INFO] running `Command { std: "docker" "inspect" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769", kill_on_drop: false }` [INFO] [stdout] 5c7d9f076f4e6ef12270fbd3b95b70588859ab7e490c76e4dbf5770f8619e769