[INFO] cloning repository https://github.com/promoteAI/rustray
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/promoteAI/rustray" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 95f5f7d0ad79a2915a3ff726f75a7ff410e0e11c
[INFO] checking promoteAI/rustray against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray" "/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/promoteAI/rustray
[INFO] finished tweaking git repo https://github.com/promoteAI/rustray
[INFO] tweaked toml for git repo https://github.com/promoteAI/rustray written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/promoteAI/rustray on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/promoteAI/rustray 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded metrics-macros v0.6.0
[INFO] [stderr]   Downloaded portable-atomic v0.3.20
[INFO] [stderr]   Downloaded metrics v0.20.1
[INFO] [stderr]   Downloaded tonic-build v0.9.2
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c40ff95ee7a82cef5dac177ae63595648d4a48d2185b3abf8100c4b799f50867
[INFO] running `Command { std: "docker" "start" "-a" "c40ff95ee7a82cef5dac177ae63595648d4a48d2185b3abf8100c4b799f50867", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c40ff95ee7a82cef5dac177ae63595648d4a48d2185b3abf8100c4b799f50867", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c40ff95ee7a82cef5dac177ae63595648d4a48d2185b3abf8100c4b799f50867", kill_on_drop: false }`
[INFO] [stdout] c40ff95ee7a82cef5dac177ae63595648d4a48d2185b3abf8100c4b799f50867
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2ac45ae61e6be58956362e629de3ded8757e0989bd83f5ca0f84d32bb643d8f3
[INFO] running `Command { std: "docker" "start" "-a" "2ac45ae61e6be58956362e629de3ded8757e0989bd83f5ca0f84d32bb643d8f3", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.167
[INFO] [stderr]    Compiling anyhow v1.0.94
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]    Compiling rustix v0.38.41
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling serde v1.0.215
[INFO] [stderr]    Compiling httparse v1.9.5
[INFO] [stderr]    Compiling bytes v1.9.0
[INFO] [stderr]    Compiling indexmap v2.7.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling fastrand v2.2.0
[INFO] [stderr]    Compiling cc v1.2.2
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling axum-core v0.3.4
[INFO] [stderr]    Compiling portable-atomic v1.10.0
[INFO] [stderr]    Compiling time-macros v0.2.19
[INFO] [stderr]    Compiling axum v0.6.20
[INFO] [stderr]    Compiling portable-atomic v0.3.20
[INFO] [stderr]    Compiling serde_json v1.0.133
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]    Compiling metrics v0.20.1
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]    Compiling petgraph v0.6.5
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking ahash v0.7.8
[INFO] [stderr]     Checking dashmap v5.5.3
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]     Checking time v0.3.37
[INFO] [stderr]    Compiling tempfile v3.14.0
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]    Compiling prettyplease v0.1.25
[INFO] [stderr]    Compiling prost-derive v0.11.9
[INFO] [stderr]    Compiling metrics-macros v0.6.0
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling serde_derive v1.0.215
[INFO] [stderr]    Compiling pin-project-internal v1.1.7
[INFO] [stderr]    Compiling async-trait v0.1.83
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling prost v0.11.9
[INFO] [stderr]     Checking tokio v1.42.0
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]    Compiling prost-types v0.11.9
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking pin-project v1.1.7
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking simple_asn1 v0.6.2
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling prost-build v0.11.9
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling tonic-build v0.9.2
[INFO] [stderr]    Compiling rustray v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking uuid v1.11.0
[INFO] [stderr]     Checking tokio-util v0.7.13
[INFO] [stderr]     Checking tokio-io-timeout v1.2.0
[INFO] [stderr]     Checking tokio-stream v0.1.16
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]     Checking jsonwebtoken v8.3.0
[INFO] [stderr]     Checking hyper v0.14.31
[INFO] [stderr]     Checking hyper-timeout v0.4.1
[INFO] [stderr]     Checking tonic v0.9.2
[INFO] [stdout] warning: unused imports: `NodeInfo`, `TaskResult`, and `TaskSpec`
[INFO] [stdout]  --> src/grpc/mod.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::common::{NodeInfo, TaskSpec, TaskResult};
[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 imports: `NodeInfo`, `TaskResult`, and `TaskSpec`
[INFO] [stdout]  --> src/grpc/mod.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::common::{NodeInfo, TaskSpec, TaskResult};
[INFO] [stdout]   |                     ^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `submit_task` and `get_worker_count` are never used
[INFO] [stdout]    --> src/head/mod.rs:98:18
[INFO] [stdout]     |
[INFO] [stdout]  18 | impl HeadNode {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  98 |     pub async fn submit_task(&self, task: TaskSpec) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub async fn get_worker_count(&self) -> usize {
[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 `TaskScheduler` is never constructed
[INFO] [stdout]  --> src/scheduler/mod.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct TaskScheduler {
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `schedule_task` are never used
[INFO] [stdout]   --> src/scheduler/mod.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl TaskScheduler {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] 14 |     /// 创建新的任务调度器
[INFO] [stdout] 15 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub async fn schedule_task(&self, task: TaskSpec) -> Result<Uuid> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `RoundRobin` and `Random` are never constructed
[INFO] [stdout]   --> src/scheduler/load_balancer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum LoadBalancingStrategy {
[INFO] [stdout]    |          --------------------- variants in this enum
[INFO] [stdout]  9 |     /// 轮询策略
[INFO] [stdout] 10 |     RoundRobin,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 14 |     Random,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LoadBalancingStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `strategy` and `node_loads` are never read
[INFO] [stdout]   --> src/scheduler/load_balancer.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct LoadBalancer {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 19 |     /// 负载均衡策略
[INFO] [stdout] 20 |     strategy: LoadBalancingStrategy,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 21 |     /// 节点负载信息
[INFO] [stdout] 22 |     node_loads: HashMap<Uuid, usize>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `select_node`, `update_node_load`, and `remove_node` are never used
[INFO] [stdout]   --> src/scheduler/load_balancer.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl LoadBalancer {
[INFO] [stdout]    | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn select_node<'a>(&self, available_nodes: &'a [NodeInfo]) -> Result<Option<&'a NodeInfo>> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub fn update_node_load(&mut self, node_id: Uuid, load: usize) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn remove_node(&mut self, node_id: &Uuid) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jwt_secret` is never read
[INFO] [stdout]  --> src/security/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct SecurityConfig {
[INFO] [stdout]   |            -------------- field in this struct
[INFO] [stdout] 6 |     /// JWT密钥
[INFO] [stdout] 7 |     pub jwt_secret: Vec<u8>,
[INFO] [stdout]   |         ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `SecurityConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/security/mod.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl SecurityConfig {
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn new(jwt_secret: Vec<u8>, token_expiration: u64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `decoding_key` is never read
[INFO] [stdout]   --> src/security/auth.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct AuthManager {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 26 |     decoding_key: DecodingKey,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `with_config` and `verify_token` are never used
[INFO] [stdout]   --> src/security/auth.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl AuthManager {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub fn with_config(config: SecurityConfig) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn verify_token(&self, token: &str) -> Result<Claims> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthInterceptor` is never constructed
[INFO] [stdout]   --> src/security/auth.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub struct AuthInterceptor {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `intercept` are never used
[INFO] [stdout]    --> src/security/auth.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout]  98 | impl AuthInterceptor {
[INFO] [stdout]     | -------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn new(auth_manager: AuthManager) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn intercept<T>(&self, request: Request<T>) -> std::result::Result<Request<T>, Status> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TaskStatus` is never used
[INFO] [stdout]   --> src/task/mod.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum TaskStatus {
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TaskManager` is never constructed
[INFO] [stdout]   --> src/task/mod.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct TaskManager {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/task/mod.rs:35:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl TaskManager {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout]  34 |     /// 创建新的任务管理器
[INFO] [stdout]  35 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  47 |     pub async fn submit_task(&self, task: TaskSpec) -> Result<Uuid> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  67 |     pub async fn update_task_status(&self, task_id: Uuid, status: TaskStatus) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn set_task_result(&self, result: TaskResult) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub async fn get_task_status(&self, task_id: Uuid) -> Result<TaskStatus> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub async fn get_task_result(&self, task_id: Uuid) -> Result<Option<TaskResult>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     pub fn notification_manager(&self) -> &notification::NotificationManager {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `buffer_size` is never read
[INFO] [stdout]   --> src/task/notification.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct NotificationManager {
[INFO] [stdout]    |            ------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 11 |     buffer_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NotificationManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `notify`, `subscriber_count`, and `buffer_capacity` are never used
[INFO] [stdout]   --> src/task/notification.rs:31:18
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl NotificationManager {
[INFO] [stdout]    | ------------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub async fn notify(&self, result: TaskResult) -> Result<()> {
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn subscriber_count(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn buffer_capacity(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `submit_task` and `get_worker_count` are never used
[INFO] [stdout]    --> src/head/mod.rs:98:18
[INFO] [stdout]     |
[INFO] [stdout]  18 | impl HeadNode {
[INFO] [stdout]     | ------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  98 |     pub async fn submit_task(&self, task: TaskSpec) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub async fn get_worker_count(&self) -> usize {
[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 `TaskScheduler` is never constructed
[INFO] [stdout]  --> src/scheduler/mod.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct TaskScheduler {
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `schedule_task` are never used
[INFO] [stdout]   --> src/scheduler/mod.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl TaskScheduler {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] 14 |     /// 创建新的任务调度器
[INFO] [stdout] 15 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub async fn schedule_task(&self, task: TaskSpec) -> Result<Uuid> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `RoundRobin` and `Random` are never constructed
[INFO] [stdout]   --> src/scheduler/load_balancer.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub enum LoadBalancingStrategy {
[INFO] [stdout]    |          --------------------- variants in this enum
[INFO] [stdout]  9 |     /// 轮询策略
[INFO] [stdout] 10 |     RoundRobin,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 14 |     Random,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `LoadBalancingStrategy` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `strategy` and `node_loads` are never read
[INFO] [stdout]   --> src/scheduler/load_balancer.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct LoadBalancer {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] 19 |     /// 负载均衡策略
[INFO] [stdout] 20 |     strategy: LoadBalancingStrategy,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 21 |     /// 节点负载信息
[INFO] [stdout] 22 |     node_loads: HashMap<Uuid, usize>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `select_node`, `update_node_load`, and `remove_node` are never used
[INFO] [stdout]   --> src/scheduler/load_balancer.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl LoadBalancer {
[INFO] [stdout]    | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub fn select_node<'a>(&self, available_nodes: &'a [NodeInfo]) -> Result<Option<&'a NodeInfo>> {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub fn update_node_load(&mut self, node_id: Uuid, load: usize) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn remove_node(&mut self, node_id: &Uuid) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jwt_secret` is never read
[INFO] [stdout]  --> src/security/mod.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct SecurityConfig {
[INFO] [stdout]   |            -------------- field in this struct
[INFO] [stdout] 6 |     /// JWT密钥
[INFO] [stdout] 7 |     pub jwt_secret: Vec<u8>,
[INFO] [stdout]   |         ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `SecurityConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/security/mod.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl SecurityConfig {
[INFO] [stdout]    | ------------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn new(jwt_secret: Vec<u8>, token_expiration: u64) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `decoding_key` is never read
[INFO] [stdout]   --> src/security/auth.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct AuthManager {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 26 |     decoding_key: DecodingKey,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `with_config` and `verify_token` are never used
[INFO] [stdout]   --> src/security/auth.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl AuthManager {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub fn with_config(config: SecurityConfig) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn verify_token(&self, token: &str) -> Result<Claims> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthInterceptor` is never constructed
[INFO] [stdout]   --> src/security/auth.rs:93:12
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub struct AuthInterceptor {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `intercept` are never used
[INFO] [stdout]    --> src/security/auth.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout]  98 | impl AuthInterceptor {
[INFO] [stdout]     | -------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 103 |     pub fn new(auth_manager: AuthManager) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn intercept<T>(&self, request: Request<T>) -> std::result::Result<Request<T>, Status> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TaskStatus` is never used
[INFO] [stdout]   --> src/task/mod.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum TaskStatus {
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TaskManager` is never constructed
[INFO] [stdout]   --> src/task/mod.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct TaskManager {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/task/mod.rs:35:12
[INFO] [stdout]     |
[INFO] [stdout]  33 | impl TaskManager {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout]  34 |     /// 创建新的任务管理器
[INFO] [stdout]  35 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  47 |     pub async fn submit_task(&self, task: TaskSpec) -> Result<Uuid> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  67 |     pub async fn update_task_status(&self, task_id: Uuid, status: TaskStatus) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn set_task_result(&self, result: TaskResult) -> Result<()> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 110 |     pub async fn get_task_status(&self, task_id: Uuid) -> Result<TaskStatus> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub async fn get_task_result(&self, task_id: Uuid) -> Result<Option<TaskResult>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     pub fn notification_manager(&self) -> &notification::NotificationManager {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `buffer_size` is never read
[INFO] [stdout]   --> src/task/notification.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct NotificationManager {
[INFO] [stdout]    |            ------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 11 |     buffer_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NotificationManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `notify`, `subscriber_count`, and `buffer_capacity` are never used
[INFO] [stdout]   --> src/task/notification.rs:31:18
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl NotificationManager {
[INFO] [stdout]    | ------------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub async fn notify(&self, result: TaskResult) -> Result<()> {
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn subscriber_count(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn buffer_capacity(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.73s
[INFO] running `Command { std: "docker" "inspect" "2ac45ae61e6be58956362e629de3ded8757e0989bd83f5ca0f84d32bb643d8f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2ac45ae61e6be58956362e629de3ded8757e0989bd83f5ca0f84d32bb643d8f3", kill_on_drop: false }`
[INFO] [stdout] 2ac45ae61e6be58956362e629de3ded8757e0989bd83f5ca0f84d32bb643d8f3
