[INFO] cloning repository https://github.com/zzzizo/HFT-Bot-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zzzizo/HFT-Bot-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzzzizo%2FHFT-Bot-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzzzizo%2FHFT-Bot-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c0d3a9a8b4d35a5684cbc7deebd2a5bc96cb439 [INFO] checking zzzizo/HFT-Bot-rust against try#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzzzizo%2FHFT-Bot-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 82% (1367/1656) Updating files: 83% (1375/1656) Updating files: 84% (1392/1656) Updating files: 85% (1408/1656) Updating files: 86% (1425/1656) Updating files: 87% (1441/1656) Updating files: 88% (1458/1656) Updating files: 89% (1474/1656) Updating files: 90% (1491/1656) Updating files: 91% (1507/1656) Updating files: 92% (1524/1656) Updating files: 93% (1541/1656) Updating files: 94% (1557/1656) Updating files: 95% (1574/1656) Updating files: 96% (1590/1656) Updating files: 97% (1607/1656) Updating files: 98% (1623/1656) Updating files: 99% (1640/1656) Updating files: 100% (1656/1656) Updating files: 100% (1656/1656), done. [INFO] started tweaking git repo https://github.com/zzzizo/HFT-Bot-rust [INFO] finished tweaking git repo https://github.com/zzzizo/HFT-Bot-rust [INFO] tweaked toml for git repo https://github.com/zzzizo/HFT-Bot-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zzzizo/HFT-Bot-rust on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zzzizo/HFT-Bot-rust 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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking zzzizo/HFT-Bot-rust against try#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzzzizo%2FHFT-Bot-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 82% (1367/1656) Updating files: 83% (1375/1656) Updating files: 84% (1392/1656) Updating files: 85% (1408/1656) Updating files: 86% (1425/1656) Updating files: 87% (1441/1656) Updating files: 88% (1458/1656) Updating files: 89% (1474/1656) Updating files: 90% (1491/1656) Updating files: 91% (1507/1656) Updating files: 92% (1524/1656) Updating files: 93% (1541/1656) Updating files: 94% (1557/1656) Updating files: 95% (1574/1656) Updating files: 96% (1590/1656) Updating files: 97% (1607/1656) Updating files: 98% (1623/1656) Updating files: 99% (1640/1656) Updating files: 100% (1656/1656) Updating files: 100% (1656/1656), done. [INFO] started tweaking git repo https://github.com/zzzizo/HFT-Bot-rust [INFO] finished tweaking git repo https://github.com/zzzizo/HFT-Bot-rust [INFO] tweaked toml for git repo https://github.com/zzzizo/HFT-Bot-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zzzizo/HFT-Bot-rust on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zzzizo/HFT-Bot-rust 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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.2.26 [INFO] [stderr] Downloaded syn v2.0.102 [INFO] [stderr] Downloaded bumpalo v3.18.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f07e532568ae0bd8d85037254341b16627807ee80cc6cfde7c181eb2654c95c0 [INFO] running `Command { std: "docker" "start" "-a" "f07e532568ae0bd8d85037254341b16627807ee80cc6cfde7c181eb2654c95c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f07e532568ae0bd8d85037254341b16627807ee80cc6cfde7c181eb2654c95c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f07e532568ae0bd8d85037254341b16627807ee80cc6cfde7c181eb2654c95c0", kill_on_drop: false }` [INFO] [stdout] f07e532568ae0bd8d85037254341b16627807ee80cc6cfde7c181eb2654c95c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fead640149fabf0d9576f68e78e3ea26497ce359a253a2b745dc199b2d5cb8dc [INFO] running `Command { std: "docker" "start" "-a" "fead640149fabf0d9576f68e78e3ea26497ce359a253a2b745dc199b2d5cb8dc", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking hft_trading_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/main.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [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: `tokio::time` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::time; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/main.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [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: `tokio::time` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::time; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:139:44 [INFO] [stdout] | [INFO] [stdout] 139 | let action = if price_change > 0 { [INFO] [stdout] | ------------ ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 139 | let action = if price_change > 0.0 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:139:44 [INFO] [stdout] | [INFO] [stdout] 139 | let action = if price_change > 0 { [INFO] [stdout] | ------------ ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 139 | let action = if price_change > 0.0 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:195:41 [INFO] [stdout] | [INFO] [stdout] 195 | let action = if deviation > 0 { [INFO] [stdout] | --------- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 195 | let action = if deviation > 0.0 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:195:41 [INFO] [stdout] | [INFO] [stdout] 195 | let action = if deviation > 0 { [INFO] [stdout] | --------- ^ expected `f64`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 195 | let action = if deviation > 0.0 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:420:24 [INFO] [stdout] | [INFO] [stdout] 420 | let task = tokio::spawn(async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 421 | | let market_feed = unsafe { &*market_feed_ptr }; [INFO] [stdout] 422 | | [INFO] [stdout] 423 | | while *is_running.lock().await { [INFO] [stdout] ... | [INFO] [stdout] 439 | | }); [INFO] [stdout] | |______________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:420:37: 420:47}`, the trait `std::marker::Send` is not implemented for `*const MarketDataFeed` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:421:46 [INFO] [stdout] | [INFO] [stdout] 421 | let market_feed = unsafe { &*market_feed_ptr }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ has type `*const MarketDataFeed` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:420:24 [INFO] [stdout] | [INFO] [stdout] 420 | let task = tokio::spawn(async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 421 | | let market_feed = unsafe { &*market_feed_ptr }; [INFO] [stdout] 422 | | [INFO] [stdout] 423 | | while *is_running.lock().await { [INFO] [stdout] ... | [INFO] [stdout] 439 | | }); [INFO] [stdout] | |______________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:420:37: 420:47}`, the trait `std::marker::Send` is not implemented for `*const MarketDataFeed` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:421:46 [INFO] [stdout] | [INFO] [stdout] 421 | let market_feed = unsafe { &*market_feed_ptr }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ has type `*const MarketDataFeed` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const Vec>` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:461:41 [INFO] [stdout] | [INFO] [stdout] 461 | let strategies = unsafe { &*strategies }; [INFO] [stdout] | ^^^^^^^^^^ has type `*const Vec>` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const Vec>` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:461:41 [INFO] [stdout] | [INFO] [stdout] 461 | let strategies = unsafe { &*strategies }; [INFO] [stdout] | ^^^^^^^^^^ has type `*const Vec>` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const RiskManager` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:462:43 [INFO] [stdout] | [INFO] [stdout] 462 | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] | ^^^^^^^^^^^^ has type `*const RiskManager` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const RiskManager` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:462:43 [INFO] [stdout] | [INFO] [stdout] 462 | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] | ^^^^^^^^^^^^ has type `*const RiskManager` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const OrderExecutor` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:463:45 [INFO] [stdout] | [INFO] [stdout] 463 | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] | ^^^^^^^^^^^^^^ has type `*const OrderExecutor` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const OrderExecutor` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:463:45 [INFO] [stdout] | [INFO] [stdout] 463 | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] | ^^^^^^^^^^^^^^ has type `*const OrderExecutor` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const MarketDataFeed` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:464:42 [INFO] [stdout] | [INFO] [stdout] 464 | let market_feed = unsafe { &*market_feed }; [INFO] [stdout] | ^^^^^^^^^^^ has type `*const MarketDataFeed` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | / tokio::spawn(async move { [INFO] [stdout] 461 | | let strategies = unsafe { &*strategies }; [INFO] [stdout] 462 | | let risk_manager = unsafe { &*risk_manager }; [INFO] [stdout] 463 | | let order_executor = unsafe { &*order_executor }; [INFO] [stdout] ... | [INFO] [stdout] 527 | | }) [INFO] [stdout] | |__________^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `{async block@src/main.rs:460:22: 460:32}`, the trait `std::marker::Send` is not implemented for `*const MarketDataFeed` [INFO] [stdout] note: captured value is not `Send` [INFO] [stdout] --> src/main.rs:464:42 [INFO] [stdout] | [INFO] [stdout] 464 | let market_feed = unsafe { &*market_feed }; [INFO] [stdout] | ^^^^^^^^^^^ has type `*const MarketDataFeed` which is not `Send` [INFO] [stdout] note: required by a bound in `tokio::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.45.1/src/task/spawn.rs:168:21 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn spawn(future: F) -> JoinHandle [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] 167 | where [INFO] [stdout] 168 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hft_trading_bot` (bin "hft_trading_bot") due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hft_trading_bot` (bin "hft_trading_bot" test) due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fead640149fabf0d9576f68e78e3ea26497ce359a253a2b745dc199b2d5cb8dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fead640149fabf0d9576f68e78e3ea26497ce359a253a2b745dc199b2d5cb8dc", kill_on_drop: false }` [INFO] [stdout] fead640149fabf0d9576f68e78e3ea26497ce359a253a2b745dc199b2d5cb8dc