[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] checking grooviegermanikus/rust-hft-unit-system against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrooviegermanikus%2Frust-hft-unit-system" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/grooviegermanikus/rust-hft-unit-system on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-5-tc1/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded simple-si-units-macros v1.0.1 [INFO] [stderr] Downloaded fixed v1.23.1 [INFO] [stderr] Downloaded simple-si-units-core v1.0.1 [INFO] [stderr] Downloaded simple-si-units v1.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1446b6b1d34b92d35bd53a4f48a7a7a1529a45af77ebba9169278a2ab3d7f05e [INFO] running `Command { std: "docker" "start" "-a" "1446b6b1d34b92d35bd53a4f48a7a7a1529a45af77ebba9169278a2ab3d7f05e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1446b6b1d34b92d35bd53a4f48a7a7a1529a45af77ebba9169278a2ab3d7f05e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1446b6b1d34b92d35bd53a4f48a7a7a1529a45af77ebba9169278a2ab3d7f05e", kill_on_drop: false }` [INFO] [stdout] 1446b6b1d34b92d35bd53a4f48a7a7a1529a45af77ebba9169278a2ab3d7f05e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a47f06a160853cf3d8fc5beedba5d34e806f66314ce9eb25e519e3e039e47649 [INFO] running `Command { std: "docker" "start" "-a" "a47f06a160853cf3d8fc5beedba5d34e806f66314ce9eb25e519e3e039e47649", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Compiling simple-si-units-core v1.0.1 [INFO] [stderr] Compiling fixed v1.23.1 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Checking half v2.2.1 [INFO] [stderr] Compiling simple-si-units-macros v1.0.1 [INFO] [stderr] Checking simple-si-units v1.1.1 [INFO] [stderr] Checking 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 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: 5 warnings emitted [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: 5 warnings emitted [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: `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: 2 warnings emitted [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: `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: 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 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] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.60s [INFO] running `Command { std: "docker" "inspect" "a47f06a160853cf3d8fc5beedba5d34e806f66314ce9eb25e519e3e039e47649", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a47f06a160853cf3d8fc5beedba5d34e806f66314ce9eb25e519e3e039e47649", kill_on_drop: false }` [INFO] [stdout] a47f06a160853cf3d8fc5beedba5d34e806f66314ce9eb25e519e3e039e47649