[INFO] cloning repository https://github.com/grooviegermanikus/rust-hft-unit-system [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/grooviegermanikus/rust-hft-unit-system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrooviegermanikus%2Frust-hft-unit-system", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrooviegermanikus%2Frust-hft-unit-system'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f5da398a10360a970799fa062a92c8bd61c6262 [INFO] building grooviegermanikus/rust-hft-unit-system against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrooviegermanikus%2Frust-hft-unit-system" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/grooviegermanikus/rust-hft-unit-system on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/grooviegermanikus/rust-hft-unit-system [INFO] finished tweaking git repo https://github.com/grooviegermanikus/rust-hft-unit-system [INFO] tweaked toml for git repo https://github.com/grooviegermanikus/rust-hft-unit-system written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/grooviegermanikus/rust-hft-unit-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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb1e92847d9e48d6d11d52f2fceed136cf79bc0571d00e435e5db3c159705036 [INFO] running `Command { std: "docker" "start" "-a" "bb1e92847d9e48d6d11d52f2fceed136cf79bc0571d00e435e5db3c159705036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb1e92847d9e48d6d11d52f2fceed136cf79bc0571d00e435e5db3c159705036", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb1e92847d9e48d6d11d52f2fceed136cf79bc0571d00e435e5db3c159705036", kill_on_drop: false }` [INFO] [stdout] bb1e92847d9e48d6d11d52f2fceed136cf79bc0571d00e435e5db3c159705036 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78aa78ff1ee516a82ef5586a1548a32af46c768811e4264ac3ff18ee82073512 [INFO] running `Command { std: "docker" "start" "-a" "78aa78ff1ee516a82ef5586a1548a32af46c768811e4264ac3ff18ee82073512", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling simple-si-units-core v1.0.1 [INFO] [stderr] Compiling fixed v1.23.1 [INFO] [stderr] Compiling half v2.2.1 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling simple-si-units-macros v1.0.1 [INFO] [stderr] Compiling simple-si-units v1.1.1 [INFO] [stderr] Compiling rust-hft-unit-system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::ops::Add` [INFO] [stdout] --> src/hft_units.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Sub` [INFO] [stdout] --> src/hft_units.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use core::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Div` [INFO] [stdout] --> src/hft_units.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::ops::Div; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/hft_units.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint` [INFO] [stdout] --> src/hft_units.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn from_raw(mint: &Mint, amount: I80F48) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.13s [INFO] running `Command { std: "docker" "inspect" "78aa78ff1ee516a82ef5586a1548a32af46c768811e4264ac3ff18ee82073512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78aa78ff1ee516a82ef5586a1548a32af46c768811e4264ac3ff18ee82073512", kill_on_drop: false }` [INFO] [stdout] 78aa78ff1ee516a82ef5586a1548a32af46c768811e4264ac3ff18ee82073512 [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 591e87560c081dc37ab133839f297fbea8866246ba5101bf632c8871dc425a3b [INFO] running `Command { std: "docker" "start" "-a" "591e87560c081dc37ab133839f297fbea8866246ba5101bf632c8871dc425a3b", kill_on_drop: false }` [INFO] [stderr] Compiling rust-hft-unit-system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::ops::Add` [INFO] [stdout] --> src/hft_units.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Sub` [INFO] [stdout] --> src/hft_units.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use core::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Div` [INFO] [stdout] --> src/hft_units.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::ops::Div; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/hft_units.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint` [INFO] [stdout] --> src/hft_units.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn from_raw(mint: &Mint, amount: I80F48) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_hft_unit_system::hft_units::Mint` [INFO] [stdout] --> tests/mangov4.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rust_hft_unit_system::hft_units::Mint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_amount` [INFO] [stdout] --> tests/arb-bot1.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let in_amount = 1753066; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_amount` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out_amount` [INFO] [stdout] --> tests/arb-bot1.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let out_amount = 100000; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lot_to_native_price` is never used [INFO] [stdout] --> tests/mangov4.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn lot_to_native_price(market_conf: &MarketConf, price: i64) -> I80F48 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Add` [INFO] [stdout] --> src/hft_units.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Sub` [INFO] [stdout] --> src/hft_units.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use core::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::ops::Div` [INFO] [stdout] --> src/hft_units.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use core::ops::Div; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/hft_units.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Index` [INFO] [stdout] --> tests/raven.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Index, Sub}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mint` [INFO] [stdout] --> src/hft_units.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn from_raw(mint: &Mint, amount: I80F48) -> Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mint` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount1` [INFO] [stdout] --> tests/raven.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let amount1: NativeAmount = NativeAmount::from_raw(&base_mint, I80F48::from_num(1212)); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount2` [INFO] [stdout] --> tests/raven.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let amount2: NativeAmount = NativeAmount::from_raw("e_mint, I80F48::from_num(1212)); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base_native` [INFO] [stdout] --> tests/raven.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let base_native = 1_000_000_000; // =e9 smallest unit [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_native` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base_lot_size` [INFO] [stdout] --> tests/raven.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let base_lot_size = 10_000_000; // =l7, number of native units in a lot [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_lot_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lot_price` [INFO] [stdout] --> tests/raven.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let lot_price: LotPrice = market.native_price_to_lot(native_price); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lot_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `Command { std: "docker" "inspect" "591e87560c081dc37ab133839f297fbea8866246ba5101bf632c8871dc425a3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "591e87560c081dc37ab133839f297fbea8866246ba5101bf632c8871dc425a3b", kill_on_drop: false }` [INFO] [stdout] 591e87560c081dc37ab133839f297fbea8866246ba5101bf632c8871dc425a3b