[INFO] cloning repository https://github.com/tesssun/mm_userdata_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tesssun/mm_userdata_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftesssun%2Fmm_userdata_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftesssun%2Fmm_userdata_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1f62161882535143df24f296b68297418090d29 [INFO] testing tesssun/mm_userdata_test against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftesssun%2Fmm_userdata_test" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tesssun/mm_userdata_test [INFO] finished tweaking git repo https://github.com/tesssun/mm_userdata_test [INFO] tweaked toml for git repo https://github.com/tesssun/mm_userdata_test written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tesssun/mm_userdata_test on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tesssun/mm_userdata_test 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65d2efbce058395ee25c2a9e4aee359d071747aa538b20f1d70cf243b7c017a7 [INFO] running `Command { std: "docker" "start" "-a" "65d2efbce058395ee25c2a9e4aee359d071747aa538b20f1d70cf243b7c017a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65d2efbce058395ee25c2a9e4aee359d071747aa538b20f1d70cf243b7c017a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65d2efbce058395ee25c2a9e4aee359d071747aa538b20f1d70cf243b7c017a7", kill_on_drop: false }` [INFO] [stdout] 65d2efbce058395ee25c2a9e4aee359d071747aa538b20f1d70cf243b7c017a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82cdbb9db249e7c5f8e44c755d4a2ef214e71fd562907496035ca42e9814359d [INFO] running `Command { std: "docker" "start" "-a" "82cdbb9db249e7c5f8e44c755d4a2ef214e71fd562907496035ca42e9814359d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling rust_decimal v1.38.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling binance-sdk v21.0.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling fast-float v0.2.0 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling rust_decimal_macros v1.38.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Compiling derive_builder_core v0.10.2 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling derive_builder_macro v0.10.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling derive_builder v0.10.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling reqwest-middleware v0.3.3 [INFO] [stderr] Compiling mm_userdata_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ExecutionReport` [INFO] [stdout] --> src/main.rs:9:60 [INFO] [stdout] | [INFO] [stdout] 9 | websocket_api::{UserDataStreamSubscribeSignatureParams,ExecutionReport,OrderPlaceParams,OrderCancelParams, OrderPlaceSideEnum, Or... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/alpha.rs:112:26 [INFO] [stdout] | [INFO] [stdout] 112 | let fair_price = (mid + 1.6 * alpha); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - let fair_price = (mid + 1.6 * alpha); [INFO] [stdout] 112 + let fair_price = mid + 1.6 * alpha; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:224:30 [INFO] [stdout] | [INFO] [stdout] 224 | let prelim_bid = (reservation_price - half_spread); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 224 - let prelim_bid = (reservation_price - half_spread); [INFO] [stdout] 224 + let prelim_bid = reservation_price - half_spread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:225:30 [INFO] [stdout] | [INFO] [stdout] 225 | let prelim_ask = (reservation_price + half_spread); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - let prelim_ask = (reservation_price + half_spread); [INFO] [stdout] 225 + let prelim_ask = reservation_price + half_spread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/alpha.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let mut best_bid = d.bids.as_ref() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/alpha.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut best_ask = d.asks.as_ref() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bid_from_tick` [INFO] [stdout] --> src/alpha.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let bid_from_tick = best_bid_tick.min(self.cfg.roi_ub_tick); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bid_from_tick` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ask_from_tick` [INFO] [stdout] --> src/alpha.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let ask_from_tick = best_ask_tick.max(self.cfg.roi_lb_tick); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ask_from_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alpha` [INFO] [stdout] --> src/main.rs:216:35 [INFO] [stdout] | [INFO] [stdout] 216 | let (mid, fair_price, alpha, best_bid, best_ask) = obi_alpha.compute_alpha(&msg); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/main.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | let duration = Instant::now().duration_since(start); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let symbol = &CONFIG.symbol; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lot_size` [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let lot_size = CONFIG.lot_size; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lot_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_qty_dollar` [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let order_qty_dollar = CONFIG.order_qty_dollar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_qty_dollar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len` and `clear` are never used [INFO] [stdout] --> src/alpha.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 15 | impl RollingWindow { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | #[inline] pub fn len(&self) -> usize { self.len } [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_warm` and `clear` are never used [INFO] [stdout] --> src/alpha.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 93 | impl ObiAlpha { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | #[inline] pub fn is_warm(&self) -> bool { self.rw.len() >= self.cfg.window } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 100 | #[inline] pub fn clear(&mut self) { self.rw.clear(); } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "82cdbb9db249e7c5f8e44c755d4a2ef214e71fd562907496035ca42e9814359d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82cdbb9db249e7c5f8e44c755d4a2ef214e71fd562907496035ca42e9814359d", kill_on_drop: false }` [INFO] [stdout] 82cdbb9db249e7c5f8e44c755d4a2ef214e71fd562907496035ca42e9814359d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37f4dffc2cea42474b208d98cbfccb8092e936e82c426a9b1b034105ac54852c [INFO] running `Command { std: "docker" "start" "-a" "37f4dffc2cea42474b208d98cbfccb8092e936e82c426a9b1b034105ac54852c", kill_on_drop: false }` [INFO] [stderr] Compiling mm_userdata_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ExecutionReport` [INFO] [stdout] --> src/main.rs:9:60 [INFO] [stdout] | [INFO] [stdout] 9 | websocket_api::{UserDataStreamSubscribeSignatureParams,ExecutionReport,OrderPlaceParams,OrderCancelParams, OrderPlaceSideEnum, Or... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/alpha.rs:112:26 [INFO] [stdout] | [INFO] [stdout] 112 | let fair_price = (mid + 1.6 * alpha); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - let fair_price = (mid + 1.6 * alpha); [INFO] [stdout] 112 + let fair_price = mid + 1.6 * alpha; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:224:30 [INFO] [stdout] | [INFO] [stdout] 224 | let prelim_bid = (reservation_price - half_spread); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 224 - let prelim_bid = (reservation_price - half_spread); [INFO] [stdout] 224 + let prelim_bid = reservation_price - half_spread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:225:30 [INFO] [stdout] | [INFO] [stdout] 225 | let prelim_ask = (reservation_price + half_spread); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - let prelim_ask = (reservation_price + half_spread); [INFO] [stdout] 225 + let prelim_ask = reservation_price + half_spread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/alpha.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let mut best_bid = d.bids.as_ref() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/alpha.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut best_ask = d.asks.as_ref() [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bid_from_tick` [INFO] [stdout] --> src/alpha.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let bid_from_tick = best_bid_tick.min(self.cfg.roi_ub_tick); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bid_from_tick` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ask_from_tick` [INFO] [stdout] --> src/alpha.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let ask_from_tick = best_ask_tick.max(self.cfg.roi_lb_tick); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ask_from_tick` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alpha` [INFO] [stdout] --> src/main.rs:216:35 [INFO] [stdout] | [INFO] [stdout] 216 | let (mid, fair_price, alpha, best_bid, best_ask) = obi_alpha.compute_alpha(&msg); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/main.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | let duration = Instant::now().duration_since(start); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let symbol = &CONFIG.symbol; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lot_size` [INFO] [stdout] --> src/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let lot_size = CONFIG.lot_size; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lot_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_qty_dollar` [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let order_qty_dollar = CONFIG.order_qty_dollar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_qty_dollar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len` and `clear` are never used [INFO] [stdout] --> src/alpha.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 15 | impl RollingWindow { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | #[inline] pub fn len(&self) -> usize { self.len } [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_warm` and `clear` are never used [INFO] [stdout] --> src/alpha.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 93 | impl ObiAlpha { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | #[inline] pub fn is_warm(&self) -> bool { self.rw.len() >= self.cfg.window } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 100 | #[inline] pub fn clear(&mut self) { self.rw.clear(); } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.78s [INFO] running `Command { std: "docker" "inspect" "37f4dffc2cea42474b208d98cbfccb8092e936e82c426a9b1b034105ac54852c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37f4dffc2cea42474b208d98cbfccb8092e936e82c426a9b1b034105ac54852c", kill_on_drop: false }` [INFO] [stdout] 37f4dffc2cea42474b208d98cbfccb8092e936e82c426a9b1b034105ac54852c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 38234e5257896881ec416468e53fefd7264820d7ed1cbb36f8be09ddc18c5cfa [INFO] running `Command { std: "docker" "start" "-a" "38234e5257896881ec416468e53fefd7264820d7ed1cbb36f8be09ddc18c5cfa", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ExecutionReport` [INFO] [stderr] --> src/main.rs:9:60 [INFO] [stderr] | [INFO] [stderr] 9 | websocket_api::{UserDataStreamSubscribeSignatureParams,ExecutionReport,OrderPlaceParams,OrderCancelParams, OrderPlaceSideEnum, Or... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/alpha.rs:112:26 [INFO] [stderr] | [INFO] [stderr] 112 | let fair_price = (mid + 1.6 * alpha); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 112 - let fair_price = (mid + 1.6 * alpha); [INFO] [stderr] 112 + let fair_price = mid + 1.6 * alpha; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:224:30 [INFO] [stderr] | [INFO] [stderr] 224 | let prelim_bid = (reservation_price - half_spread); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 224 - let prelim_bid = (reservation_price - half_spread); [INFO] [stderr] 224 + let prelim_bid = reservation_price - half_spread; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:225:30 [INFO] [stderr] | [INFO] [stderr] 225 | let prelim_ask = (reservation_price + half_spread); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 225 - let prelim_ask = (reservation_price + half_spread); [INFO] [stderr] 225 + let prelim_ask = reservation_price + half_spread; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/alpha.rs:120:13 [INFO] [stderr] | [INFO] [stderr] 120 | let mut best_bid = d.bids.as_ref() [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/alpha.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | let mut best_ask = d.asks.as_ref() [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bid_from_tick` [INFO] [stderr] --> src/alpha.rs:139:13 [INFO] [stderr] | [INFO] [stderr] 139 | let bid_from_tick = best_bid_tick.min(self.cfg.roi_ub_tick); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bid_from_tick` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ask_from_tick` [INFO] [stderr] --> src/alpha.rs:161:13 [INFO] [stderr] | [INFO] [stderr] 161 | let ask_from_tick = best_ask_tick.max(self.cfg.roi_lb_tick); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ask_from_tick` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `alpha` [INFO] [stderr] --> src/main.rs:216:35 [INFO] [stderr] | [INFO] [stderr] 216 | let (mid, fair_price, alpha, best_bid, best_ask) = obi_alpha.compute_alpha(&msg); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `duration` [INFO] [stderr] --> src/main.rs:236:17 [INFO] [stderr] | [INFO] [stderr] 236 | let duration = Instant::now().duration_since(start); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `symbol` [INFO] [stderr] --> src/main.rs:118:9 [INFO] [stderr] | [INFO] [stderr] 118 | let symbol = &CONFIG.symbol; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lot_size` [INFO] [stderr] --> src/main.rs:120:9 [INFO] [stderr] | [INFO] [stderr] 120 | let lot_size = CONFIG.lot_size; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lot_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `order_qty_dollar` [INFO] [stderr] --> src/main.rs:121:9 [INFO] [stderr] | [INFO] [stderr] 121 | let order_qty_dollar = CONFIG.order_qty_dollar; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_qty_dollar` [INFO] [stderr] [INFO] [stderr] warning: methods `len` and `clear` are never used [INFO] [stderr] --> src/alpha.rs:22:22 [INFO] [stderr] | [INFO] [stderr] 15 | impl RollingWindow { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | #[inline] pub fn len(&self) -> usize { self.len } [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn clear(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `is_warm` and `clear` are never used [INFO] [stderr] --> src/alpha.rs:99:22 [INFO] [stderr] | [INFO] [stderr] 93 | impl ObiAlpha { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 99 | #[inline] pub fn is_warm(&self) -> bool { self.rw.len() >= self.cfg.window } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 100 | #[inline] pub fn clear(&mut self) { self.rw.clear(); } [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mm_userdata_test` (bin "mm_userdata_test" test) generated 15 warnings (run `cargo fix --bin "mm_userdata_test" -p mm_userdata_test --tests` to apply 13 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mm_userdata_test-d0a67a75d8fb648e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "38234e5257896881ec416468e53fefd7264820d7ed1cbb36f8be09ddc18c5cfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38234e5257896881ec416468e53fefd7264820d7ed1cbb36f8be09ddc18c5cfa", kill_on_drop: false }` [INFO] [stdout] 38234e5257896881ec416468e53fefd7264820d7ed1cbb36f8be09ddc18c5cfa