[INFO] cloning repository https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbdelrahmanAbuReidy%2FRust-Real-Time-Stock-Trading-System", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbdelrahmanAbuReidy%2FRust-Real-Time-Stock-Trading-System'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cdd5ed7c0d284e135a7718322b29701ac868fa12 [INFO] checking AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System against 0cefa27fe3deee26fc98ee44249406358d9f0d26 for pr-164789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbdelrahmanAbuReidy%2FRust-Real-Time-Stock-Trading-System" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System [INFO] finished tweaking git repo https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System [INFO] tweaked toml for git repo https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System on toolchain 0cefa27fe3deee26fc98ee44249406358d9f0d26 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cefa27fe3deee26fc98ee44249406358d9f0d26" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/AbdelrahmanAbuReidy/Rust-Real-Time-Stock-Trading-System 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" "+0cefa27fe3deee26fc98ee44249406358d9f0d26" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linux_proc v0.1.1 [INFO] [stderr] Downloaded perf_monitor v0.2.1 [INFO] [stderr] Downloaded cpu-monitor v0.1.1 [INFO] [stderr] Downloaded thiserror v2.0.9 [INFO] [stderr] Downloaded thiserror-impl v2.0.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0 [INFO] running `Command { std: "docker" "start" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0" "/opt/rustwide/cargo-home/bin/cargo" "+0cefa27fe3deee26fc98ee44249406358d9f0d26" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0" "/opt/rustwide/cargo-home/bin/cargo" "+0cefa27fe3deee26fc98ee44249406358d9f0d26" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling semver v1.0.24 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling cookie-factory v0.2.4 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking crossbeam-channel v0.5.14 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking input_buffer v0.5.0 [INFO] [stderr] Checking linux_proc v0.1.1 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking cpu-time v1.0.0 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking cpu-monitor v0.1.1 [INFO] [stderr] Checking clap_builder v4.5.23 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking oorandom v11.1.4 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking clap v4.5.23 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Compiling snafu-derive v0.7.5 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Checking snafu v0.7.5 [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 serde_derive v1.0.216 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling perf_monitor v0.2.1 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Checking handlebars v1.1.0 [INFO] [stderr] Checking amq-protocol-types v1.2.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking amq-protocol-codegen v1.4.0 [INFO] [stderr] Compiling cargo-lock v8.0.3 [INFO] [stderr] Compiling built v0.5.2 [INFO] [stderr] Compiling amiquip v0.4.2 [INFO] [stderr] Compiling amq-protocol v1.4.0 [INFO] [stderr] Checking rts_assignment v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/stock_inventory.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | for (i,message) in consumer.receiver().iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `percentage_change` [INFO] [stdout] --> src/lib.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let percentage_change = fluctuation * 100.0; // Convert fluctuation to percentage [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_percentage_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/stock_inventory.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | for (i,message) in consumer.receiver().iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `percentage_change` [INFO] [stdout] --> src/lib.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let percentage_change = fluctuation * 100.0; // Convert fluctuation to percentage [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_percentage_change` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client` and `Stock` [INFO] [stdout] --> src/trading/trading.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | use client::{generate_client, Client, Stock}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client` and `Stock` [INFO] [stdout] --> src/trading/trading.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | use client::{generate_client, Client, Stock}; [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: `i` [INFO] [stdout] --> src/stock_inventory.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | for (i,message) in consumer.receiver().iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/trading/broker.rs:258:54 [INFO] [stdout] | [INFO] [stdout] 258 | fn process_buy_order(&mut self, client: &Client, i: usize) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/trading/broker.rs:313:55 [INFO] [stdout] | [INFO] [stdout] 313 | fn process_sell_order(&mut self, client: &Client, i: usize) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/trading/broker.rs:258:54 [INFO] [stdout] | [INFO] [stdout] 258 | fn process_buy_order(&mut self, client: &Client, i: usize) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/trading/broker.rs:313:55 [INFO] [stdout] | [INFO] [stdout] 313 | fn process_sell_order(&mut self, client: &Client, i: usize) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stocks` [INFO] [stdout] --> src/trading/trading.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | if let Ok(Some(stocks)) = broker_locked.receive_orders_from_queue() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stocks` [INFO] [stdout] --> src/trading/trading.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | if let Ok(Some(stocks)) = broker_locked.receive_orders_from_queue() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/stock_inventory.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | for (i,message) in consumer.receiver().iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0", kill_on_drop: false }` [INFO] [stdout] e115a2cf0d1f298a2ed458c9f1e50fa24f8b57694165bdafdece3ba243096ee0