[INFO] fetching crate slurmone 0.1.2... [INFO] checking slurmone-0.1.2 against master#cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 for pr-135841 [INFO] extracting crate slurmone 0.1.2 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate slurmone 0.1.2 on toolchain cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate slurmone 0.1.2 [INFO] finished tweaking crates.io crate slurmone 0.1.2 [INFO] tweaked toml for crates.io crate slurmone 0.1.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate slurmone 0.1.2 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" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded vergen v9.0.2 [INFO] [stderr] Downloaded vergen-gix v1.0.3 [INFO] [stderr] Downloaded vergen-lib v0.1.5 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 012bd3115b10a8b0e15a6de2e526f2012b50e99ac0e728653ae78757b42da079 [INFO] running `Command { std: "docker" "start" "-a" "012bd3115b10a8b0e15a6de2e526f2012b50e99ac0e728653ae78757b42da079", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "012bd3115b10a8b0e15a6de2e526f2012b50e99ac0e728653ae78757b42da079", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "012bd3115b10a8b0e15a6de2e526f2012b50e99ac0e728653ae78757b42da079", kill_on_drop: false }` [INFO] [stdout] 012bd3115b10a8b0e15a6de2e526f2012b50e99ac0e728653ae78757b42da079 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f8796cbccc4184c8a5873ed578437ca9618e8f7f85f35bc6dce058029608094 [INFO] running `Command { std: "docker" "start" "-a" "0f8796cbccc4184c8a5873ed578437ca9618e8f7f85f35bc6dce058029608094", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling thiserror v2.0.6 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling gix-trace v0.1.11 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling jiff v0.1.15 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling gix-utils v0.1.13 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling prodash v29.0.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling anyhow v1.0.94 [INFO] [stderr] Compiling vergen-lib v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling gix-sec v0.10.10 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling clru v0.6.2 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling vergen v9.0.2 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling unicode-bom v2.0.3 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling vergen-gix v1.0.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking libloading v0.8.6 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking nvml-wrapper-sys v0.8.0 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking clap_builder v4.5.23 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking shellexpand v3.1.0 [INFO] [stderr] Checking daemonize v0.5.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling thiserror-impl v2.0.6 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Compiling bstr v1.11.0 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling gix-chunk v0.4.10 [INFO] [stderr] Compiling gix-bitmap v0.2.13 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking clap v4.5.23 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling gix-date v0.9.2 [INFO] [stderr] Compiling gix-validate v0.9.2 [INFO] [stderr] Compiling gix-path v0.10.13 [INFO] [stderr] Compiling gix-quote v0.4.14 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling wrapcenum-derive v0.4.1 [INFO] [stderr] Compiling gix-config-value v0.14.10 [INFO] [stderr] Compiling gix-actor v0.33.1 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Checking nvml-wrapper v0.10.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling faster-hex v0.9.0 [INFO] [stderr] Compiling cargo-platform v0.1.9 [INFO] [stderr] Compiling gix-hash v0.15.1 [INFO] [stderr] Compiling gix-features v0.39.1 [INFO] [stderr] Compiling gix-hashtable v0.6.0 [INFO] [stderr] Compiling gix-object v0.46.0 [INFO] [stderr] Compiling gix-fs v0.12.0 [INFO] [stderr] Compiling gix-commitgraph v0.25.1 [INFO] [stderr] Compiling gix-glob v0.17.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling gix-tempfile v15.0.0 [INFO] [stderr] Compiling gix-lock v15.0.1 [INFO] [stderr] Compiling cargo_metadata v0.19.1 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Compiling gix-revwalk v0.17.0 [INFO] [stderr] Compiling gix-ref v0.49.0 [INFO] [stderr] Compiling gix-pack v0.55.0 [INFO] [stderr] Compiling gix-diff v0.48.0 [INFO] [stderr] Compiling gix-url v0.28.1 [INFO] [stderr] Compiling gix-traverse v0.43.0 [INFO] [stderr] Compiling gix-revision v0.31.0 [INFO] [stderr] Compiling gix-refspec v0.27.0 [INFO] [stderr] Compiling gix-index v0.37.0 [INFO] [stderr] Compiling gix-odb v0.65.0 [INFO] [stderr] Compiling gix-config v0.42.0 [INFO] [stderr] Compiling gix-discover v0.37.0 [INFO] [stderr] Compiling gix v0.68.0 [INFO] [stderr] Compiling slurmone v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] warning: slurmone@0.1.2: Could not find a git repository in '/opt/rustwide/workdir' or in any of its parents within device limits below '/opt/rustwide' [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_BRANCH set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_COMMIT_AUTHOR_EMAIL set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_COMMIT_AUTHOR_NAME set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_COMMIT_COUNT set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_COMMIT_DATE set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_COMMIT_MESSAGE set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_COMMIT_TIMESTAMP set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_DESCRIBE set to default [INFO] [stderr] warning: slurmone@0.1.2: VERGEN_GIT_SHA set to default [INFO] [stdout] warning: fields `id`, `command`, `resources_required`, and `status` are never read [INFO] [stdout] --> slurmone/common/jobs.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 3 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 4 | pub command: String, // 要执行的命令 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | pub resources_required: ResourceRequirements, // 所需资源(如 CPU、内存) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | pub status: JobStatus, // 任务的当前状态(等待、运行中、完成等) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> slurmone/common/jobs.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Job { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 10 | pub fn execute(&mut self, _gpu_ids: Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpus`, `gpus`, and `gpu_memory` are never read [INFO] [stdout] --> slurmone/common/jobs.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ResourceRequirements { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 18 | pub cpus: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub gpus: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | pub gpu_memory: usize, // in GB per GPU [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceRequirements` 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 `id`, `total_memory`, `available_memory`, and `is_busy` are never read [INFO] [stdout] --> slurmone/common/jobs.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Gpu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 25 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 26 | pub total_memory: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | pub available_memory: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub is_busy: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gpu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GPUManager` is never constructed [INFO] [stdout] --> slurmone/common/jobs.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct GPUManager {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending`, `Running`, `Completed`, `Failed`, and `Canceled` are never constructed [INFO] [stdout] --> slurmone/common/jobs.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum JobStatus { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 35 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | Running, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | Failed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | Canceled, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobStatus` 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 `available_cpus` and `available_gpus` are never read [INFO] [stdout] --> slurmone/slurm.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResourceManager { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 11 | available_cpus: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | available_gpus: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceManager` 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 `refresh_gpus`, `can_allocate`, `allocate`, and `release` are never used [INFO] [stdout] --> slurmone/slurm.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl ResourceManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | fn refresh_gpus(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn can_allocate(&mut self, resources: &Job) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn allocate(&mut self, resources: &Job) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn release(&mut self, resources: &Job) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `job_queue` and `resource_manager` are never read [INFO] [stdout] --> slurmone/slurm.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Slurm { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 105 | job_queue: Arc<(Mutex>, Condvar)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | resource_manager: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start`, `submit`, `cancel`, and `list` are never used [INFO] [stdout] --> slurmone/slurm.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Slurm { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn submit(&mut self, job: Job) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cancel(&mut self, job_id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn list(&self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `command`, `resources_required`, and `status` are never read [INFO] [stdout] --> slurmone/common/jobs.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Job { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 3 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 4 | pub command: String, // 要执行的命令 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | pub resources_required: ResourceRequirements, // 所需资源(如 CPU、内存) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | pub status: JobStatus, // 任务的当前状态(等待、运行中、完成等) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Job` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> slurmone/common/jobs.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Job { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 10 | pub fn execute(&mut self, _gpu_ids: Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cpus`, `gpus`, and `gpu_memory` are never read [INFO] [stdout] --> slurmone/common/jobs.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ResourceRequirements { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 18 | pub cpus: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub gpus: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | pub gpu_memory: usize, // in GB per GPU [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceRequirements` 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 `id`, `total_memory`, `available_memory`, and `is_busy` are never read [INFO] [stdout] --> slurmone/common/jobs.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Gpu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 25 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] 26 | pub total_memory: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 27 | pub available_memory: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub is_busy: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gpu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GPUManager` is never constructed [INFO] [stdout] --> slurmone/common/jobs.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct GPUManager {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending`, `Running`, `Completed`, `Failed`, and `Canceled` are never constructed [INFO] [stdout] --> slurmone/common/jobs.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum JobStatus { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 35 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 36 | Running, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | Failed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | Canceled, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobStatus` 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 `available_cpus` and `available_gpus` are never read [INFO] [stdout] --> slurmone/slurm.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResourceManager { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 11 | available_cpus: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | available_gpus: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ResourceManager` 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 `refresh_gpus`, `can_allocate`, `allocate`, and `release` are never used [INFO] [stdout] --> slurmone/slurm.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl ResourceManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | fn refresh_gpus(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn can_allocate(&mut self, resources: &Job) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn allocate(&mut self, resources: &Job) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn release(&mut self, resources: &Job) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `job_queue` and `resource_manager` are never read [INFO] [stdout] --> slurmone/slurm.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Slurm { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 105 | job_queue: Arc<(Mutex>, Condvar)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | resource_manager: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start`, `submit`, `cancel`, and `list` are never used [INFO] [stdout] --> slurmone/slurm.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Slurm { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn submit(&mut self, job: Job) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn cancel(&mut self, job_id: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn list(&self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "0f8796cbccc4184c8a5873ed578437ca9618e8f7f85f35bc6dce058029608094", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f8796cbccc4184c8a5873ed578437ca9618e8f7f85f35bc6dce058029608094", kill_on_drop: false }` [INFO] [stdout] 0f8796cbccc4184c8a5873ed578437ca9618e8f7f85f35bc6dce058029608094