[INFO] fetching crate mira-v1 0.1.9... [INFO] testing mira-v1-0.1.9 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate mira-v1 0.1.9 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate mira-v1 0.1.9 [INFO] finished tweaking crates.io crate mira-v1 0.1.9 [INFO] tweaked toml for crates.io crate mira-v1 0.1.9 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate mira-v1 0.1.9 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 398 packages to latest compatible versions [INFO] [stderr] Adding fuel-core-chain-config v0.40.1 (available: v0.40.4) [INFO] [stderr] Adding fuel-core-client v0.40.1 (available: v0.40.4) [INFO] [stderr] Adding fuel-core-poa v0.40.1 (available: v0.40.4) [INFO] [stderr] Adding fuel-core-storage v0.40.1 (available: v0.40.4) [INFO] [stderr] Adding fuel-core-types v0.40.1 (available: v0.40.4) [INFO] [stderr] Adding fuels v0.66.10 (available: v0.74.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fuels-test-helpers v0.66.10 [INFO] [stderr] Downloaded fuels v0.66.10 [INFO] [stderr] Downloaded fuels-code-gen v0.66.10 [INFO] [stderr] Downloaded fuel-abi-types v0.7.0 [INFO] [stderr] Downloaded portpicker v0.1.1 [INFO] [stderr] Downloaded fuels-core v0.66.10 [INFO] [stderr] Downloaded fuel-core-poa v0.40.1 [INFO] [stderr] Downloaded fuel-core-services v0.40.4 [INFO] [stderr] Downloaded fuel-crypto v0.58.2 [INFO] [stderr] Downloaded fuels-programs v0.66.10 [INFO] [stderr] Downloaded fuels-accounts v0.66.10 [INFO] [stderr] Downloaded prometheus-client v0.22.3 [INFO] [stderr] Downloaded cynic-codegen v2.2.8 [INFO] [stderr] Downloaded fuel-core-client v0.40.1 [INFO] [stderr] Downloaded publicsuffix v2.3.0 [INFO] [stderr] Downloaded fuel-tx v0.58.2 [INFO] [stderr] Downloaded fuel-vm v0.58.2 [INFO] [stderr] Downloaded fuel-asm v0.58.2 [INFO] [stderr] Downloaded fuel-merkle v0.58.2 [INFO] [stderr] Downloaded fuel-core-storage v0.40.1 [INFO] [stderr] Downloaded fuel-core-chain-config v0.40.1 [INFO] [stderr] Downloaded cynic v2.2.8 [INFO] [stderr] Downloaded cookie_store v0.20.0 [INFO] [stderr] Downloaded fuel-types v0.58.2 [INFO] [stderr] Downloaded eventsource-client v0.13.0 [INFO] [stderr] Downloaded impl-tools-lib v0.11.3 [INFO] [stderr] Downloaded impl-tools v0.10.3 [INFO] [stderr] Downloaded counter v0.5.7 [INFO] [stderr] Downloaded fuel-core-types v0.40.1 [INFO] [stderr] Downloaded fuel-storage v0.58.2 [INFO] [stderr] Downloaded fuel-derive v0.58.2 [INFO] [stderr] Downloaded fuels-macros v0.66.10 [INFO] [stderr] Downloaded prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Downloaded fuel-core-metrics v0.40.4 [INFO] [stderr] Downloaded cynic-proc-macros v2.2.8 [INFO] [stderr] Downloaded tai64 v4.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33f1581b6160ff327298abc15e0239f64a242c0afb0883344ade373e47ecbe1e [INFO] running `Command { std: "docker" "start" "-a" "33f1581b6160ff327298abc15e0239f64a242c0afb0883344ade373e47ecbe1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33f1581b6160ff327298abc15e0239f64a242c0afb0883344ade373e47ecbe1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33f1581b6160ff327298abc15e0239f64a242c0afb0883344ade373e47ecbe1e", kill_on_drop: false }` [INFO] [stdout] 33f1581b6160ff327298abc15e0239f64a242c0afb0883344ade373e47ecbe1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 03ed2af966955ef919b2eec62d437e74e6a4faf3da54cddeee0cfa974bf43348 [INFO] running `Command { std: "docker" "start" "-a" "03ed2af966955ef919b2eec62d437e74e6a4faf3da54cddeee0cfa974bf43348", kill_on_drop: false }` [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling secp256k1-sys v0.10.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling bech32 v0.9.1 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Compiling coins-core v0.8.7 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling fuel-derive v0.58.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling fuel-types v0.58.2 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling coins-bip32 v0.8.7 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling hash32 v0.2.1 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling coins-bip39 v0.8.7 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling secp256k1 v0.29.1 [INFO] [stderr] Compiling cobs v0.3.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling fuel-storage v0.58.2 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling fuel-crypto v0.58.2 [INFO] [stderr] Compiling postcard v1.1.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling fuel-asm v0.58.2 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling fuel-merkle v0.58.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling fuel-tx v0.58.2 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling primitive-types v0.12.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling serde_with v3.13.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling tai64 v4.1.0 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling ethnum v1.5.2 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling impl-tools v0.10.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling counter v0.5.7 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling fuel-vm v0.58.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling impl-tools-lib v0.11.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling schemafy_core v0.5.2 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling enum-iterator-derive v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling schemafy_lib v0.5.2 [INFO] [stderr] Compiling cookie_store v0.20.0 [INFO] [stderr] Compiling enum-iterator v1.5.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling graphql-parser v0.4.1 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling fuel-core-types v0.40.1 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling fuel-core-client v0.40.1 [INFO] [stderr] Compiling fuel-abi-types v0.7.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling cynic-codegen v2.2.8 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling prometheus-client v0.22.3 [INFO] [stderr] Compiling eventsource-client v0.13.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling fuel-core-storage v0.40.1 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling fuel-core-chain-config v0.40.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling fuels-code-gen v0.66.10 [INFO] [stderr] Compiling scrypt v0.10.0 [INFO] [stderr] Compiling fuels-macros v0.66.10 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling fuel-core-metrics v0.40.4 [INFO] [stderr] Compiling eth-keystore v0.5.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling fuel-core-services v0.40.4 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling portpicker v0.1.1 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling fuel-core-poa v0.40.1 [INFO] [stderr] Compiling primitive-types v0.13.1 [INFO] [stderr] Compiling cynic-proc-macros v2.2.8 [INFO] [stderr] Compiling which v6.0.3 [INFO] [stderr] Compiling cynic v2.2.8 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling fuels-core v0.66.10 [INFO] [stderr] Compiling fuels-accounts v0.66.10 [INFO] [stderr] Compiling fuels-test-helpers v0.66.10 [INFO] [stderr] Compiling fuels-programs v0.66.10 [INFO] [stderr] Compiling fuels v0.66.10 [INFO] [stderr] Compiling mira-v1 v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/pool_math.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | if (is_stable) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (is_stable) { [INFO] [stdout] 103 + if is_stable { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/pool_math.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stdout] 107 + let _b: U256 = (_x * _x) / one_e_18() + (_y * _y) / one_e_18(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_id` [INFO] [stdout] --> src/readonly_mira_amm.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | pool_id: PoolId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_desired` [INFO] [stdout] --> src/readonly_mira_amm.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | amount_0_desired: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_desired` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_desired` [INFO] [stdout] --> src/readonly_mira_amm.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | amount_1_desired: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_desired` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | amount_0_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | amount_1_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_id` [INFO] [stdout] --> src/readonly_mira_amm.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | pool_id: PoolId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity` [INFO] [stdout] --> src/readonly_mira_amm.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | liquidity: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | amount_0_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | amount_1_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_in` [INFO] [stdout] --> src/readonly_mira_amm.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | amount_in: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asset_in` [INFO] [stdout] --> src/readonly_mira_amm.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | asset_in: AssetId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pools` [INFO] [stdout] --> src/readonly_mira_amm.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | pools: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_out` [INFO] [stdout] --> src/readonly_mira_amm.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | amount_out: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asset_out` [INFO] [stdout] --> src/readonly_mira_amm.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | asset_out: AssetId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pools` [INFO] [stdout] --> src/readonly_mira_amm.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | pools: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ViewOnlyAccount` [INFO] [stdout] --> src/mira_amm.rs:4:139 [INFO] [stdout] | [INFO] [stdout] 4 | ...sult, ScriptTransaction, TxPolicies, VariableOutputPolicy, ViewOnlyAccount, WalletUnlocked}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider` is never read [INFO] [stdout] --> src/readonly_mira_amm.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ReadonlyMiraAmm { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 9 | provider: Provider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 01s [INFO] running `Command { std: "docker" "inspect" "03ed2af966955ef919b2eec62d437e74e6a4faf3da54cddeee0cfa974bf43348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03ed2af966955ef919b2eec62d437e74e6a4faf3da54cddeee0cfa974bf43348", kill_on_drop: false }` [INFO] [stdout] 03ed2af966955ef919b2eec62d437e74e6a4faf3da54cddeee0cfa974bf43348 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] a68c3e503f829223fac2f4ef76585d8c32c55377a1ad461020e594465e518e9f [INFO] running `Command { std: "docker" "start" "-a" "a68c3e503f829223fac2f4ef76585d8c32c55377a1ad461020e594465e518e9f", kill_on_drop: false }` [INFO] [stderr] Compiling mira-v1 v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/pool_math.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | if (is_stable) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (is_stable) { [INFO] [stdout] 103 + if is_stable { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/pool_math.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stdout] 107 + let _b: U256 = (_x * _x) / one_e_18() + (_y * _y) / one_e_18(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_id` [INFO] [stdout] --> src/readonly_mira_amm.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | pool_id: PoolId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_desired` [INFO] [stdout] --> src/readonly_mira_amm.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | amount_0_desired: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_desired` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_desired` [INFO] [stdout] --> src/readonly_mira_amm.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | amount_1_desired: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_desired` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | amount_0_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | amount_1_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_id` [INFO] [stdout] --> src/readonly_mira_amm.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | pool_id: PoolId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity` [INFO] [stdout] --> src/readonly_mira_amm.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | liquidity: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | amount_0_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | amount_1_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_in` [INFO] [stdout] --> src/readonly_mira_amm.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | amount_in: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asset_in` [INFO] [stdout] --> src/readonly_mira_amm.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | asset_in: AssetId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pools` [INFO] [stdout] --> src/readonly_mira_amm.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | pools: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_out` [INFO] [stdout] --> src/readonly_mira_amm.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | amount_out: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asset_out` [INFO] [stdout] --> src/readonly_mira_amm.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | asset_out: AssetId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pools` [INFO] [stdout] --> src/readonly_mira_amm.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | pools: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ViewOnlyAccount` [INFO] [stdout] --> src/mira_amm.rs:4:139 [INFO] [stdout] | [INFO] [stdout] 4 | ...sult, ScriptTransaction, TxPolicies, VariableOutputPolicy, ViewOnlyAccount, WalletUnlocked}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider` is never read [INFO] [stdout] --> src/readonly_mira_amm.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ReadonlyMiraAmm { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 9 | provider: Provider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/pool_math.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | if (is_stable) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (is_stable) { [INFO] [stdout] 103 + if is_stable { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/pool_math.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 107 - let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stdout] 107 + let _b: U256 = (_x * _x) / one_e_18() + (_y * _y) / one_e_18(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_id` [INFO] [stdout] --> src/readonly_mira_amm.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | pool_id: PoolId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_desired` [INFO] [stdout] --> src/readonly_mira_amm.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | amount_0_desired: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_desired` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_desired` [INFO] [stdout] --> src/readonly_mira_amm.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | amount_1_desired: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_desired` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | amount_0_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | amount_1_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool_id` [INFO] [stdout] --> src/readonly_mira_amm.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | pool_id: PoolId, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `liquidity` [INFO] [stdout] --> src/readonly_mira_amm.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | liquidity: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_0_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | amount_0_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_1_min` [INFO] [stdout] --> src/readonly_mira_amm.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | amount_1_min: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_in` [INFO] [stdout] --> src/readonly_mira_amm.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | amount_in: u64, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asset_in` [INFO] [stdout] --> src/readonly_mira_amm.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | asset_in: AssetId, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pools` [INFO] [stdout] --> src/readonly_mira_amm.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | pools: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_out` [INFO] [stdout] --> src/readonly_mira_amm.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | amount_out: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asset_out` [INFO] [stdout] --> src/readonly_mira_amm.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | asset_out: AssetId, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pools` [INFO] [stdout] --> src/readonly_mira_amm.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | pools: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ViewOnlyAccount` [INFO] [stdout] --> src/mira_amm.rs:4:139 [INFO] [stdout] | [INFO] [stdout] 4 | ...sult, ScriptTransaction, TxPolicies, VariableOutputPolicy, ViewOnlyAccount, WalletUnlocked}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider` is never read [INFO] [stdout] --> src/readonly_mira_amm.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ReadonlyMiraAmm { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 9 | provider: Provider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.31s [INFO] running `Command { std: "docker" "inspect" "a68c3e503f829223fac2f4ef76585d8c32c55377a1ad461020e594465e518e9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a68c3e503f829223fac2f4ef76585d8c32c55377a1ad461020e594465e518e9f", kill_on_drop: false }` [INFO] [stdout] a68c3e503f829223fac2f4ef76585d8c32c55377a1ad461020e594465e518e9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 5de826329b5f795ced4f6d8c3f079c95078b413865bed453d83f9c52d662c790 [INFO] running `Command { std: "docker" "start" "-a" "5de826329b5f795ced4f6d8c3f079c95078b413865bed453d83f9c52d662c790", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/pool_math.rs:103:8 [INFO] [stderr] | [INFO] [stderr] 103 | if (is_stable) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 103 - if (is_stable) { [INFO] [stderr] 103 + if is_stable { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/pool_math.rs:107:24 [INFO] [stderr] | [INFO] [stderr] 107 | let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 107 - let _b: U256 = ((_x * _x) / one_e_18() + (_y * _y) / one_e_18()); [INFO] [stderr] 107 + let _b: U256 = (_x * _x) / one_e_18() + (_y * _y) / one_e_18(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pool_id` [INFO] [stderr] --> src/readonly_mira_amm.rs:140:9 [INFO] [stderr] | [INFO] [stderr] 140 | pool_id: PoolId, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_0_desired` [INFO] [stderr] --> src/readonly_mira_amm.rs:141:9 [INFO] [stderr] | [INFO] [stderr] 141 | amount_0_desired: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_desired` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_1_desired` [INFO] [stderr] --> src/readonly_mira_amm.rs:142:9 [INFO] [stderr] | [INFO] [stderr] 142 | amount_1_desired: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_desired` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_0_min` [INFO] [stderr] --> src/readonly_mira_amm.rs:143:9 [INFO] [stderr] | [INFO] [stderr] 143 | amount_0_min: u64, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_1_min` [INFO] [stderr] --> src/readonly_mira_amm.rs:144:9 [INFO] [stderr] | [INFO] [stderr] 144 | amount_1_min: u64, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pool_id` [INFO] [stderr] --> src/readonly_mira_amm.rs:151:9 [INFO] [stderr] | [INFO] [stderr] 151 | pool_id: PoolId, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `liquidity` [INFO] [stderr] --> src/readonly_mira_amm.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 152 | liquidity: u64, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidity` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_0_min` [INFO] [stderr] --> src/readonly_mira_amm.rs:153:9 [INFO] [stderr] | [INFO] [stderr] 153 | amount_0_min: u64, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_0_min` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_1_min` [INFO] [stderr] --> src/readonly_mira_amm.rs:154:9 [INFO] [stderr] | [INFO] [stderr] 154 | amount_1_min: u64, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_1_min` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_in` [INFO] [stderr] --> src/readonly_mira_amm.rs:161:9 [INFO] [stderr] | [INFO] [stderr] 161 | amount_in: u64, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `asset_in` [INFO] [stderr] --> src/readonly_mira_amm.rs:162:9 [INFO] [stderr] | [INFO] [stderr] 162 | asset_in: AssetId, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_in` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pools` [INFO] [stderr] --> src/readonly_mira_amm.rs:163:9 [INFO] [stderr] | [INFO] [stderr] 163 | pools: Vec, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_out` [INFO] [stderr] --> src/readonly_mira_amm.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 170 | amount_out: u64, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `asset_out` [INFO] [stderr] --> src/readonly_mira_amm.rs:171:9 [INFO] [stderr] | [INFO] [stderr] 171 | asset_out: AssetId, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_asset_out` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pools` [INFO] [stderr] --> src/readonly_mira_amm.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | pools: Vec, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pools` [INFO] [stderr] [INFO] [stderr] warning: unused import: `ViewOnlyAccount` [INFO] [stderr] --> src/mira_amm.rs:4:139 [INFO] [stderr] | [INFO] [stderr] 4 | ...sult, ScriptTransaction, TxPolicies, VariableOutputPolicy, ViewOnlyAccount, WalletUnlocked}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `provider` is never read [INFO] [stderr] --> src/readonly_mira_amm.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct ReadonlyMiraAmm { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] 9 | provider: Provider, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `mira-v1` (lib) generated 19 warnings (run `cargo fix --lib -p mira-v1` to apply 2 suggestions) [INFO] [stderr] warning: `mira-v1` (lib test) generated 19 warnings (19 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.51s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/mira_v1-955dbf0ae120f944) [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" "5de826329b5f795ced4f6d8c3f079c95078b413865bed453d83f9c52d662c790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5de826329b5f795ced4f6d8c3f079c95078b413865bed453d83f9c52d662c790", kill_on_drop: false }` [INFO] [stdout] 5de826329b5f795ced4f6d8c3f079c95078b413865bed453d83f9c52d662c790