[INFO] cloning repository https://github.com/sizzlecar/ferrum-infer-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sizzlecar/ferrum-infer-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizzlecar%2Fferrum-infer-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizzlecar%2Fferrum-infer-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f75155aac1566c204ce002adbb435b56e2f2b8f6 [INFO] building sizzlecar/ferrum-infer-rs against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsizzlecar%2Fferrum-infer-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sizzlecar/ferrum-infer-rs [INFO] finished tweaking git repo https://github.com/sizzlecar/ferrum-infer-rs [INFO] tweaked toml for git repo https://github.com/sizzlecar/ferrum-infer-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sizzlecar/ferrum-infer-rs on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sizzlecar/ferrum-infer-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.18.0 [INFO] [stderr] Downloaded matchers v0.2.0 [INFO] [stderr] Downloaded nu-ansi-term v0.50.1 [INFO] [stderr] Downloaded priority-queue v2.5.0 [INFO] [stderr] Downloaded macro_rules_attribute-proc_macro v0.2.2 [INFO] [stderr] Downloaded onig v6.5.1 [INFO] [stderr] Downloaded rand_xorshift v0.4.0 [INFO] [stderr] Downloaded macro_rules_attribute v0.2.2 [INFO] [stderr] Downloaded monostate v0.1.14 [INFO] [stderr] Downloaded unicode-normalization-alignments v0.1.12 [INFO] [stderr] Downloaded tracing-subscriber v0.3.20 [INFO] [stderr] Downloaded proptest v1.7.0 [INFO] [stderr] Downloaded tokenizers v0.19.1 [INFO] [stderr] Downloaded rayon-cond v0.3.0 [INFO] [stderr] Downloaded esaxx-rs v0.1.10 [INFO] [stderr] Downloaded bytesize v1.3.3 [INFO] [stderr] Downloaded metrics v0.22.4 [INFO] [stderr] Downloaded tracing-serde v0.2.0 [INFO] [stderr] Downloaded monostate-impl v0.1.14 [INFO] [stderr] Downloaded onig_sys v69.9.1 [INFO] [stderr] Downloaded spm_precompiled v0.1.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e7781fa5a329de60cc02ffb56609608c4355efd0dbf5facc62151c61d2348e4 [INFO] running `Command { std: "docker" "start" "-a" "8e7781fa5a329de60cc02ffb56609608c4355efd0dbf5facc62151c61d2348e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e7781fa5a329de60cc02ffb56609608c4355efd0dbf5facc62151c61d2348e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e7781fa5a329de60cc02ffb56609608c4355efd0dbf5facc62151c61d2348e4", kill_on_drop: false }` [INFO] [stdout] 8e7781fa5a329de60cc02ffb56609608c4355efd0dbf5facc62151c61d2348e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca679797f501743ccda0c7e720b2337121f8b6947c1c3700ba1fd527d912ea20 [INFO] running `Command { std: "docker" "start" "-a" "ca679797f501743ccda0c7e720b2337121f8b6947c1c3700ba1fd527d912ea20", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling metrics v0.22.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.2 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling macro_rules_attribute v0.2.2 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling priority-queue v2.5.0 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling unicode-normalization-alignments v0.1.12 [INFO] [stderr] Compiling bytesize v1.3.3 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling rayon-cond v0.3.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling shell-words v1.1.0 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling monostate-impl v0.1.14 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling monostate v0.1.14 [INFO] [stderr] Compiling spm_precompiled v0.1.4 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling onig v6.5.1 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tokenizers v0.19.1 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling ferrum-core v0.2.0 (/opt/rustwide/workdir/crates/ferrum-core) [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling dialoguer v0.11.0 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling ferrum-scheduler v0.2.0 (/opt/rustwide/workdir/crates/ferrum-scheduler) [INFO] [stderr] Compiling ferrum-engine v0.2.0 (/opt/rustwide/workdir/crates/ferrum-engine) [INFO] [stderr] Compiling ferrum-cache v0.2.0 (/opt/rustwide/workdir/crates/ferrum-cache) [INFO] [stderr] Compiling ferrum-runtime v0.2.0 (/opt/rustwide/workdir/crates/ferrum-runtime) [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | Ok(output) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | let mut cpu_block = cpu_pool.blocks.get_mut(&cpu_block_id).unwrap(); [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] --> crates/ferrum-engine/src/cache_manager.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let mut gpu_block = gpu_pool.blocks.get_mut(&gpu_block_id).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let request_id = self.scheduler.schedule_request(request.clone()).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | let (tx, mut rx) = mpsc::channel(1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let request_id = self.scheduler.schedule_request(request).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | let (tx, rx) = mpsc::channel(100); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_size` [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let batch_size = batch.requests.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq_len` [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let seq_len = batch.max_sequence_length; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seq_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling config v0.14.1 [INFO] [stdout] warning: unused variable: `key_cache` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | key_cache: &[Tensor], [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_cache` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | value_cache: &[Tensor], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_tables` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | block_tables: &[Vec], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | key: &Tensor, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | value: &Tensor, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `causal_mask` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | causal_mask: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_causal_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache_manager` is never read [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | cache_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `request` and `position` are never read [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct BatchRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 70 | request_id: RequestId, [INFO] [stdout] 71 | request: InferenceRequest, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | position: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_suitable_batch` is never used [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl ContinuousBatchManager { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | fn find_suitable_batch(&self, request: &InferenceRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu_blocks` and `block_tables` are never read [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct PagedKVCacheManager { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | cpu_blocks: Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | block_tables: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `swaps_in` and `swaps_out` are never read [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct CacheStatsInternal { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | swaps_in: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | swaps_out: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `swap_out` and `swap_in` are never used [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 163 | impl PagedKVCacheManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | async fn swap_out(&self, block_ids: &[BlockId]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | async fn swap_in(&self, block_ids: &[BlockId]) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `handle` and `allocated_at` are never read [INFO] [stdout] --> crates/ferrum-engine/src/memory_manager.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct Allocation { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 57 | handle: MemoryHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | allocated_at: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_heads` and `head_dim` are never read [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct FlashAttention { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 71 | num_heads: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | head_dim: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling ferrum-server v0.2.0 (/opt/rustwide/workdir/crates/ferrum-server) [INFO] [stdout] warning: unused import: `InferenceResponse` [INFO] [stdout] --> crates/ferrum-server/src/traits.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | use ferrum_core::{Result, InferenceRequest, InferenceResponse}; [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: `std::sync::Arc` [INFO] [stdout] --> crates/ferrum-server/src/traits.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelId` [INFO] [stdout] --> crates/ferrum-server/src/types.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use ferrum_core::{RequestId, ModelId}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> crates/ferrum-server/src/openai.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling ferrum-models v0.2.0 (/opt/rustwide/workdir/crates/ferrum-models) [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stdout] warning: field `configs` is never read [INFO] [stdout] --> crates/ferrum-models/src/config.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ConfigManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | /// Cached configurations [INFO] [stdout] 15 | configs: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling ferrum-cli v0.2.0 (/opt/rustwide/workdir/crates/ferrum-cli) [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/ferrum-cli/src/commands/config_cmd.rs:129:38 [INFO] [stdout] | [INFO] [stdout] 129 | async fn get_config_value(key: &str, config: &CliConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> crates/ferrum-cli/src/client.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct FerrumClient { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | config: ClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FerrumClient` 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 16s [INFO] running `Command { std: "docker" "inspect" "ca679797f501743ccda0c7e720b2337121f8b6947c1c3700ba1fd527d912ea20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca679797f501743ccda0c7e720b2337121f8b6947c1c3700ba1fd527d912ea20", kill_on_drop: false }` [INFO] [stdout] ca679797f501743ccda0c7e720b2337121f8b6947c1c3700ba1fd527d912ea20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3437517e725d0f9cea8a4a8de85570e44d5008bf046ca1a8b8f9d6e01ca39be3 [INFO] running `Command { std: "docker" "start" "-a" "3437517e725d0f9cea8a4a8de85570e44d5008bf046ca1a8b8f9d6e01ca39be3", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling dialoguer v0.11.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling ferrum-core v0.2.0 (/opt/rustwide/workdir/crates/ferrum-core) [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling ferrum-scheduler v0.2.0 (/opt/rustwide/workdir/crates/ferrum-scheduler) [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling ferrum-runtime v0.2.0 (/opt/rustwide/workdir/crates/ferrum-runtime) [INFO] [stderr] Compiling ferrum-cache v0.2.0 (/opt/rustwide/workdir/crates/ferrum-cache) [INFO] [stderr] Compiling ferrum-models v0.2.0 (/opt/rustwide/workdir/crates/ferrum-models) [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling ferrum-engine v0.2.0 (/opt/rustwide/workdir/crates/ferrum-engine) [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | Ok(output) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | let mut cpu_block = cpu_pool.blocks.get_mut(&cpu_block_id).unwrap(); [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] --> crates/ferrum-engine/src/cache_manager.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let mut gpu_block = gpu_pool.blocks.get_mut(&gpu_block_id).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `configs` is never read [INFO] [stdout] --> crates/ferrum-models/src/config.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ConfigManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | /// Cached configurations [INFO] [stdout] 15 | configs: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let request_id = self.scheduler.schedule_request(request.clone()).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | let (tx, mut rx) = mpsc::channel(1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let request_id = self.scheduler.schedule_request(request).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | let (tx, rx) = mpsc::channel(100); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_size` [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let batch_size = batch.requests.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq_len` [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let seq_len = batch.max_sequence_length; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seq_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stdout] warning: unused variable: `key_cache` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | key_cache: &[Tensor], [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_cache` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | value_cache: &[Tensor], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_tables` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | block_tables: &[Vec], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | key: &Tensor, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | value: &Tensor, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `causal_mask` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | causal_mask: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_causal_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache_manager` is never read [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | cache_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `request` and `position` are never read [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct BatchRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 70 | request_id: RequestId, [INFO] [stdout] 71 | request: InferenceRequest, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | position: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_suitable_batch` is never used [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl ContinuousBatchManager { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | fn find_suitable_batch(&self, request: &InferenceRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu_blocks` and `block_tables` are never read [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct PagedKVCacheManager { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | cpu_blocks: Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | block_tables: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `swaps_in` and `swaps_out` are never read [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct CacheStatsInternal { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | swaps_in: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | swaps_out: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `swap_out` and `swap_in` are never used [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 163 | impl PagedKVCacheManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | async fn swap_out(&self, block_ids: &[BlockId]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | async fn swap_in(&self, block_ids: &[BlockId]) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `handle` and `allocated_at` are never read [INFO] [stdout] --> crates/ferrum-engine/src/memory_manager.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct Allocation { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 57 | handle: MemoryHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | allocated_at: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_heads` and `head_dim` are never read [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct FlashAttention { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 71 | num_heads: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | head_dim: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ferrum-server v0.2.0 (/opt/rustwide/workdir/crates/ferrum-server) [INFO] [stdout] warning: unused import: `InferenceResponse` [INFO] [stdout] --> crates/ferrum-server/src/traits.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | use ferrum_core::{Result, InferenceRequest, InferenceResponse}; [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: `std::sync::Arc` [INFO] [stdout] --> crates/ferrum-server/src/traits.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelId` [INFO] [stdout] --> crates/ferrum-server/src/types.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use ferrum_core::{RequestId, ModelId}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> crates/ferrum-server/src/openai.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> crates/ferrum-engine/src/executor.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | use super::*; [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 variable: `output` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:200:28 [INFO] [stdout] | [INFO] [stdout] 200 | Ok(output) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | let mut cpu_block = cpu_pool.blocks.get_mut(&cpu_block_id).unwrap(); [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] --> crates/ferrum-engine/src/cache_manager.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let mut gpu_block = gpu_pool.blocks.get_mut(&gpu_block_id).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `configs` is never read [INFO] [stdout] --> crates/ferrum-models/src/config.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ConfigManager { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | /// Cached configurations [INFO] [stdout] 15 | configs: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let request_id = self.scheduler.schedule_request(request.clone()).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | let (tx, mut rx) = mpsc::channel(1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_id` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let request_id = self.scheduler.schedule_request(request).await?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | let (tx, rx) = mpsc::channel(100); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_size` [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | let batch_size = batch.requests.len(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq_len` [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let seq_len = batch.max_sequence_length; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seq_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_cache` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | key_cache: &[Tensor], [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value_cache` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | value_cache: &[Tensor], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_cache` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_tables` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | block_tables: &[Vec], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_tables` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | key: &Tensor, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | value: &Tensor, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `causal_mask` [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | causal_mask: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_causal_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache_manager` is never read [INFO] [stdout] --> crates/ferrum-engine/src/engine.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | cache_manager: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `request` and `position` are never read [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 69 | struct BatchRequest { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 70 | request_id: RequestId, [INFO] [stdout] 71 | request: InferenceRequest, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | position: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_suitable_batch` is never used [INFO] [stdout] --> crates/ferrum-engine/src/batch_manager.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl ContinuousBatchManager { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | fn find_suitable_batch(&self, request: &InferenceRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpu_blocks` and `block_tables` are never read [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct PagedKVCacheManager { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 56 | cpu_blocks: Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | block_tables: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `swaps_in` and `swaps_out` are never read [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct CacheStatsInternal { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | swaps_in: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 75 | swaps_out: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `swap_out` and `swap_in` are never used [INFO] [stdout] --> crates/ferrum-engine/src/cache_manager.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 163 | impl PagedKVCacheManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | async fn swap_out(&self, block_ids: &[BlockId]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | async fn swap_in(&self, block_ids: &[BlockId]) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `handle` and `allocated_at` are never read [INFO] [stdout] --> crates/ferrum-engine/src/memory_manager.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 56 | struct Allocation { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 57 | handle: MemoryHandle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | allocated_at: std::time::Instant, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_heads` and `head_dim` are never read [INFO] [stdout] --> crates/ferrum-engine/src/attention.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct FlashAttention { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 71 | num_heads: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 72 | head_dim: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stdout] warning: unused import: `InferenceResponse` [INFO] [stdout] --> crates/ferrum-server/src/traits.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | use ferrum_core::{Result, InferenceRequest, InferenceResponse}; [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: `std::sync::Arc` [INFO] [stdout] --> crates/ferrum-server/src/traits.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModelId` [INFO] [stdout] --> crates/ferrum-server/src/types.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use ferrum_core::{RequestId, ModelId}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> crates/ferrum-server/src/openai.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling ferrum-cli v0.2.0 (/opt/rustwide/workdir/crates/ferrum-cli) [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> crates/ferrum-cli/src/commands/config_cmd.rs:129:38 [INFO] [stdout] | [INFO] [stdout] 129 | async fn get_config_value(key: &str, config: &CliConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> crates/ferrum-cli/src/client.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct FerrumClient { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | config: ClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FerrumClient` 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: unused variable: `config` [INFO] [stdout] --> crates/ferrum-cli/src/commands/config_cmd.rs:129:38 [INFO] [stdout] | [INFO] [stdout] 129 | async fn get_config_value(key: &str, config: &CliConfig) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> crates/ferrum-cli/src/client.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct FerrumClient { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | config: ClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FerrumClient` 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 46.86s [INFO] running `Command { std: "docker" "inspect" "3437517e725d0f9cea8a4a8de85570e44d5008bf046ca1a8b8f9d6e01ca39be3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3437517e725d0f9cea8a4a8de85570e44d5008bf046ca1a8b8f9d6e01ca39be3", kill_on_drop: false }` [INFO] [stdout] 3437517e725d0f9cea8a4a8de85570e44d5008bf046ca1a8b8f9d6e01ca39be3