[INFO] cloning repository https://github.com/sven-vanh/bullwhip-effect [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sven-vanh/bullwhip-effect" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsven-vanh%2Fbullwhip-effect", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsven-vanh%2Fbullwhip-effect'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1aed785d2af4081e342ddeb92a8a5adc5272599e [INFO] checking sven-vanh/bullwhip-effect against try#349c4bfa6ac87b818f6fd19d4869c0b24790ac6a for pr-152856 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsven-vanh%2Fbullwhip-effect" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sven-vanh/bullwhip-effect [INFO] finished tweaking git repo https://github.com/sven-vanh/bullwhip-effect [INFO] tweaked toml for git repo https://github.com/sven-vanh/bullwhip-effect written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sven-vanh/bullwhip-effect on toolchain 349c4bfa6ac87b818f6fd19d4869c0b24790ac6a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sven-vanh/bullwhip-effect 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" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1e5e1188ad593d19d0b699bf81eed92f0d27a1e1687f2e3e680bc0a4457e72b [INFO] running `Command { std: "docker" "start" "-a" "a1e5e1188ad593d19d0b699bf81eed92f0d27a1e1687f2e3e680bc0a4457e72b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1e5e1188ad593d19d0b699bf81eed92f0d27a1e1687f2e3e680bc0a4457e72b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1e5e1188ad593d19d0b699bf81eed92f0d27a1e1687f2e3e680bc0a4457e72b", kill_on_drop: false }` [INFO] [stdout] a1e5e1188ad593d19d0b699bf81eed92f0d27a1e1687f2e3e680bc0a4457e72b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+349c4bfa6ac87b818f6fd19d4869c0b24790ac6a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86ae73fc3a072d9e459aca4e0cd13901cabc274e3f3131515f7f22b3a245df0f [INFO] running `Command { std: "docker" "start" "-a" "86ae73fc3a072d9e459aca4e0cd13901cabc274e3f3131515f7f22b3a245df0f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking csv-core v0.1.13 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking bullwhip-effect v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `NaivePolicy`, `RandomPolicy`, `SmoothingPolicy`, `StermanHeuristic`, and `VMIPolicy` [INFO] [stdout] --> src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | BaseStockPolicy, NaivePolicy, RandomPolicy, SmoothingPolicy, StermanHeuristic, VMIPolicy, [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::env` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NaivePolicy`, `RandomPolicy`, `SmoothingPolicy`, `StermanHeuristic`, and `VMIPolicy` [INFO] [stdout] --> src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | BaseStockPolicy, NaivePolicy, RandomPolicy, SmoothingPolicy, StermanHeuristic, VMIPolicy, [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::env` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/io/demand.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/io/demand.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_constant_demand` is never used [INFO] [stdout] --> src/io/demand.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_constant_demand(weeks: usize, value: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_normal_demand` is never used [INFO] [stdout] --> src/io/demand.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn generate_normal_demand(weeks: usize, mean: f64, std_dev: f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `delay_length` is never read [INFO] [stdout] --> src/model/queues.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TimeDelayQueue { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 7 | buffer: VecDeque, [INFO] [stdout] 8 | delay_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimeDelayQueue` 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: function `generate_constant_demand` is never used [INFO] [stdout] --> src/io/demand.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_constant_demand(weeks: usize, value: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/model/queues.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TimeDelayQueue { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `total_cost_for_agent` is never used [INFO] [stdout] --> src/simulation/engine.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl ChainSimulation { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn total_cost_for_agent(&self, agent_index: usize) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_normal_demand` is never used [INFO] [stdout] --> src/io/demand.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn generate_normal_demand(weeks: usize, mean: f64, std_dev: f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NaivePolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct NaivePolicy; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/strategy/implementations.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl NaivePolicy { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RandomPolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct RandomPolicy { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/strategy/implementations.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl RandomPolicy { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(min: u32, max: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StermanHeuristic` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct StermanHeuristic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `delay_length` is never read [INFO] [stdout] --> src/model/queues.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct TimeDelayQueue { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 7 | buffer: VecDeque, [INFO] [stdout] 8 | delay_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimeDelayQueue` 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: method `len` is never used [INFO] [stdout] --> src/model/queues.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TimeDelayQueue { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `total_cost_for_agent` is never used [INFO] [stdout] --> src/simulation/engine.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl ChainSimulation { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn total_cost_for_agent(&self, agent_index: usize) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NaivePolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct NaivePolicy; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/strategy/implementations.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl NaivePolicy { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RandomPolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct RandomPolicy { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/strategy/implementations.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl RandomPolicy { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 49 | pub fn new(min: u32, max: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StermanHeuristic` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct StermanHeuristic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_optimal_target` are never used [INFO] [stdout] --> src/strategy/implementations.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl StermanHeuristic { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 158 | /// Creates a typical "Human" agent who ignores the pipeline. [INFO] [stdout] 159 | pub fn new(target_inv: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn with_optimal_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmoothingPolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub struct SmoothingPolicy { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_optimal_target` are never used [INFO] [stdout] --> src/strategy/implementations.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl SmoothingPolicy { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 247 | pub fn new(initial_demand: f32, gamma: f32, target: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn with_optimal_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VMIPolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct VMIPolicy { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_optimal_target` are never used [INFO] [stdout] --> src/strategy/implementations.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 319 | impl VMIPolicy { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 320 | pub fn new(target_stock: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | pub fn with_optimal_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `downstream_inventory`, `downstream_backlog`, and `actual_customer_demand` are never read [INFO] [stdout] --> src/strategy/traits.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct OrderContext { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 8 | /// Downstream agent's inventory level (for VMI policies) [INFO] [stdout] 9 | pub downstream_inventory: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | /// Downstream agent's backlog (for VMI policies) [INFO] [stdout] 11 | pub downstream_backlog: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | /// Actual customer demand (for visibility into real market demand) [INFO] [stdout] 13 | pub actual_customer_demand: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderContext` 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: associated functions `new` and `with_optimal_target` are never used [INFO] [stdout] --> src/strategy/implementations.rs:159:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl StermanHeuristic { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] 158 | /// Creates a typical "Human" agent who ignores the pipeline. [INFO] [stdout] 159 | pub fn new(target_inv: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn with_optimal_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmoothingPolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 240 | pub struct SmoothingPolicy { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_optimal_target` are never used [INFO] [stdout] --> src/strategy/implementations.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl SmoothingPolicy { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 247 | pub fn new(initial_demand: f32, gamma: f32, target: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn with_optimal_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VMIPolicy` is never constructed [INFO] [stdout] --> src/strategy/implementations.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub struct VMIPolicy { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_optimal_target` are never used [INFO] [stdout] --> src/strategy/implementations.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 319 | impl VMIPolicy { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 320 | pub fn new(target_stock: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | pub fn with_optimal_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `downstream_inventory`, `downstream_backlog`, and `actual_customer_demand` are never read [INFO] [stdout] --> src/strategy/traits.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct OrderContext { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 8 | /// Downstream agent's inventory level (for VMI policies) [INFO] [stdout] 9 | pub downstream_inventory: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | /// Downstream agent's backlog (for VMI policies) [INFO] [stdout] 11 | pub downstream_backlog: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | /// Actual customer demand (for visibility into real market demand) [INFO] [stdout] 13 | pub actual_customer_demand: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.00s [INFO] running `Command { std: "docker" "inspect" "86ae73fc3a072d9e459aca4e0cd13901cabc274e3f3131515f7f22b3a245df0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86ae73fc3a072d9e459aca4e0cd13901cabc274e3f3131515f7f22b3a245df0f", kill_on_drop: false }` [INFO] [stdout] 86ae73fc3a072d9e459aca4e0cd13901cabc274e3f3131515f7f22b3a245df0f