[INFO] fetching crate gmsol-model 0.8.0... [INFO] testing gmsol-model-0.8.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate gmsol-model 0.8.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate gmsol-model 0.8.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate gmsol-model 0.8.0 [INFO] tweaked toml for crates.io crate gmsol-model 0.8.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gmsol-model 0.8.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gmsol-model 0.8.0 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25cf92c14f263ed841107272bb676836e4f2faf60e1bba6bcc3eef14540cfefd [INFO] running `Command { std: "docker" "start" "-a" "25cf92c14f263ed841107272bb676836e4f2faf60e1bba6bcc3eef14540cfefd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25cf92c14f263ed841107272bb676836e4f2faf60e1bba6bcc3eef14540cfefd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25cf92c14f263ed841107272bb676836e4f2faf60e1bba6bcc3eef14540cfefd", kill_on_drop: false }` [INFO] [stdout] 25cf92c14f263ed841107272bb676836e4f2faf60e1bba6bcc3eef14540cfefd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8cfb07cfb41c6cd817e9826f7ab585902cd302194e06e4f81ad1479b68514318 [INFO] running `Command { std: "docker" "start" "-a" "8cfb07cfb41c6cd817e9826f7ab585902cd302194e06e4f81ad1479b68514318", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling typed-builder-macro v0.21.0 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling typed-builder v0.21.0 [INFO] [stderr] Compiling gmsol-model v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/action/deposit.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | fn reassign_values(&self, is_long_token: bool) -> ReassignedValues [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 66 | fn reassign_values(&self, is_long_token: bool) -> ReassignedValues<'_, T> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.56s [INFO] running `Command { std: "docker" "inspect" "8cfb07cfb41c6cd817e9826f7ab585902cd302194e06e4f81ad1479b68514318", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cfb07cfb41c6cd817e9826f7ab585902cd302194e06e4f81ad1479b68514318", kill_on_drop: false }` [INFO] [stdout] 8cfb07cfb41c6cd817e9826f7ab585902cd302194e06e4f81ad1479b68514318 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc2fbd378c203fda217b00c8c349f9be46de25d63c640197b11f7a49f05dff71 [INFO] running `Command { std: "docker" "start" "-a" "fc2fbd378c203fda217b00c8c349f9be46de25d63c640197b11f7a49f05dff71", kill_on_drop: false }` [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/action/deposit.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | fn reassign_values(&self, is_long_token: bool) -> ReassignedValues [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 66 | fn reassign_values(&self, is_long_token: bool) -> ReassignedValues<'_, T> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gmsol-model v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `gmsol_model::test` [INFO] [stdout] --> tests/max_pnl_factor.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | test::{MaxPnlFactors, TestMarket, TestMarketConfig, TestPosition}, [INFO] [stdout] | ^^^^ could not find `test` in `gmsol_model` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | #[cfg(any(test, feature = "test"))] [INFO] [stdout] | ------------------------ the item is gated here [INFO] [stdout] 46 | pub mod test; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gmsol_model::test` [INFO] [stdout] --> tests/borrowing_fee.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | test::{TestMarket, TestMarketConfig, TestPosition}, [INFO] [stdout] | ^^^^ could not find `test` in `gmsol_model` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | #[cfg(any(test, feature = "test"))] [INFO] [stdout] | ------------------------ the item is gated here [INFO] [stdout] 46 | pub mod test; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the associated item `ONE` exists for struct `Fixed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/borrowing_fee.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | let unit = Fixed::::ONE.into_inner(); [INFO] [stdout] | ^^^ associated item cannot be called on `Fixed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `u128: FixedPointOps<20>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_for_test` found for struct `Prices` in the current scope [INFO] [stdout] --> tests/borrowing_fee.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let prices = Prices::new_for_test(20_000_000_000_000, 20_000_000_000_000, 100_000_000_000_000); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Prices<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the associated item `ONE` exists for struct `Fixed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/borrowing_fee.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 80 | let unit = Fixed::::ONE.into_inner(); [INFO] [stdout] | ^^^ associated item cannot be called on `Fixed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `u128: FixedPointOps<20>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the associated item `ONE` exists for struct `Fixed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/max_pnl_factor.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | let unit = Fixed::::ONE.into_inner(); [INFO] [stdout] | ^^^ associated item cannot be called on `Fixed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `u128: FixedPointOps<20>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_for_test` found for struct `Prices` in the current scope [INFO] [stdout] --> tests/max_pnl_factor.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | let prices_1 = Prices::new_for_test(price_1, price_1, price_1); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Prices<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_for_test` found for struct `Prices` in the current scope [INFO] [stdout] --> tests/max_pnl_factor.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let prices_2 = Prices::new_for_test(price_2, price_2, price_2); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Prices<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `checked_mul_div` found for type `u128` in the current scope [INFO] [stdout] --> tests/borrowing_fee.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 99 | let max_oi = u128::MAX [INFO] [stdout] | __________________- [INFO] [stdout] 100 | | .checked_mul_div(&unit, &(factor_per_year * years as u128)) [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `checked_div` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/num/mod.rs:1186:4 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gmsol-model` (test "max_pnl_factor") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `checked_mul_div` found for type `u128` in the current scope [INFO] [stdout] --> tests/borrowing_fee.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 104 | let factor = factor_per_second [INFO] [stdout] | __________________- [INFO] [stdout] 105 | | .checked_mul_div(&(max_deposit_amount * price), &max_oi) [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `checked_div` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/num/mod.rs:1186:4 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_for_test` found for struct `Prices` in the current scope [INFO] [stdout] --> tests/borrowing_fee.rs:156:26 [INFO] [stdout] | [INFO] [stdout] 156 | let prices = Prices::new_for_test(price, price, price); [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `Prices<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gmsol-model` (test "borrowing_fee") due to 7 previous errors [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/action/deposit.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | fn reassign_values(&self, is_long_token: bool) -> ReassignedValues [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 66 | fn reassign_values(&self, is_long_token: bool) -> ReassignedValues<'_, T> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fc2fbd378c203fda217b00c8c349f9be46de25d63c640197b11f7a49f05dff71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc2fbd378c203fda217b00c8c349f9be46de25d63c640197b11f7a49f05dff71", kill_on_drop: false }` [INFO] [stdout] fc2fbd378c203fda217b00c8c349f9be46de25d63c640197b11f7a49f05dff71