[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] building promoteAI/rustray against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/promoteAI/rustray on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc2/source/Cargo.toml [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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fd059738ab37f5af1ed89a87beb039fcf78cdd12455589d14fb1dfda4ae71a2 [INFO] running `Command { std: "docker" "start" "-a" "5fd059738ab37f5af1ed89a87beb039fcf78cdd12455589d14fb1dfda4ae71a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fd059738ab37f5af1ed89a87beb039fcf78cdd12455589d14fb1dfda4ae71a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fd059738ab37f5af1ed89a87beb039fcf78cdd12455589d14fb1dfda4ae71a2", kill_on_drop: false }` [INFO] [stdout] 5fd059738ab37f5af1ed89a87beb039fcf78cdd12455589d14fb1dfda4ae71a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bad5ff78286f051113b7831a530a8de5d1103f66e75f635987a9fab36795434 [INFO] running `Command { std: "docker" "start" "-a" "5bad5ff78286f051113b7831a530a8de5d1103f66e75f635987a9fab36795434", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling anyhow v1.0.94 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling cc v1.2.2 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling portable-atomic v1.10.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling portable-atomic v0.3.20 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling metrics v0.20.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling dashmap v5.5.3 [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 tokio v1.42.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling pin-project v1.1.7 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Compiling tonic-build v0.9.2 [INFO] [stderr] Compiling rustray v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling hyper v0.14.31 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling 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)]` 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)]` 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 { [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 `Debug` and `Clone`, 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, [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> { [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, [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, 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 { [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(&self, request: Request) -> std::result::Result, 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] = note: `TaskStatus` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 { [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 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub async fn get_task_result(&self, task_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn notification_manager(&self) -> ¬ification::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 1m 05s [INFO] running `Command { std: "docker" "inspect" "5bad5ff78286f051113b7831a530a8de5d1103f66e75f635987a9fab36795434", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bad5ff78286f051113b7831a530a8de5d1103f66e75f635987a9fab36795434", kill_on_drop: false }` [INFO] [stdout] 5bad5ff78286f051113b7831a530a8de5d1103f66e75f635987a9fab36795434 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90263b17e64bc9039ecafa667c4e290c7c1761605de843ad6f9e25afef95f34d [INFO] running `Command { std: "docker" "start" "-a" "90263b17e64bc9039ecafa667c4e290c7c1761605de843ad6f9e25afef95f34d", kill_on_drop: false }` [INFO] [stderr] Compiling rustray v0.1.0 (/opt/rustwide/workdir) [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)]` 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)]` 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 { [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 `Debug` and `Clone`, 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, [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> { [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, [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, 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 { [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(&self, request: Request) -> std::result::Result, 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] = note: `TaskStatus` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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 { [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 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub async fn get_task_result(&self, task_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn notification_manager(&self) -> ¬ification::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 `test` profile [unoptimized + debuginfo] target(s) in 1.48s [INFO] running `Command { std: "docker" "inspect" "90263b17e64bc9039ecafa667c4e290c7c1761605de843ad6f9e25afef95f34d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90263b17e64bc9039ecafa667c4e290c7c1761605de843ad6f9e25afef95f34d", kill_on_drop: false }` [INFO] [stdout] 90263b17e64bc9039ecafa667c4e290c7c1761605de843ad6f9e25afef95f34d