[INFO] fetching crate midgard-rs 0.0.5... [INFO] testing midgard-rs-0.0.5 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate midgard-rs 0.0.5 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate midgard-rs 0.0.5 [INFO] finished tweaking crates.io crate midgard-rs 0.0.5 [INFO] tweaked toml for crates.io crate midgard-rs 0.0.5 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate midgard-rs 0.0.5 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 283 packages to latest compatible versions [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.18) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 959984eb6ec8db0c7e9acdd892e45f42de3b6fe72e77eba91b404c687de1287e [INFO] running `Command { std: "docker" "start" "-a" "959984eb6ec8db0c7e9acdd892e45f42de3b6fe72e77eba91b404c687de1287e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "959984eb6ec8db0c7e9acdd892e45f42de3b6fe72e77eba91b404c687de1287e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "959984eb6ec8db0c7e9acdd892e45f42de3b6fe72e77eba91b404c687de1287e", kill_on_drop: false }` [INFO] [stdout] 959984eb6ec8db0c7e9acdd892e45f42de3b6fe72e77eba91b404c687de1287e [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a2e8e863e0862a83434ccc497384a9201aee1027463a66e835f879be30e52d9 [INFO] running `Command { std: "docker" "start" "-a" "8a2e8e863e0862a83434ccc497384a9201aee1027463a66e835f879be30e52d9", kill_on_drop: false }` [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling aws-lc-rs v1.16.2 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling tokio v1.51.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling rustls-native-certs v0.8.3 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling iri-string v0.7.12 [INFO] [stderr] Compiling rust_decimal v1.41.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling rand v0.10.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling cc v1.2.60 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ordered-float v2.10.1 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling aws-lc-sys v0.39.1 [INFO] [stderr] Compiling serde-aux v4.7.0 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling serde_with_macros v3.18.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling serde_with v3.18.0 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling h2 v0.4.13 [INFO] [stderr] Compiling tokio-test v0.4.5 [INFO] [stderr] Compiling hyper v1.9.0 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling rustls-webpki v0.103.10 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling rustls-platform-verifier v0.6.2 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling reqwest v0.13.2 [INFO] [stderr] Compiling midgard-rs v0.0.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 12s [INFO] running `Command { std: "docker" "inspect" "8a2e8e863e0862a83434ccc497384a9201aee1027463a66e835f879be30e52d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a2e8e863e0862a83434ccc497384a9201aee1027463a66e835f879be30e52d9", kill_on_drop: false }` [INFO] [stdout] 8a2e8e863e0862a83434ccc497384a9201aee1027463a66e835f879be30e52d9 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a6e10013f396a3c58e2cef856c93309c799be85fb345313fc3478b29edf009c1 [INFO] running `Command { std: "docker" "start" "-a" "a6e10013f396a3c58e2cef856c93309c799be85fb345313fc3478b29edf009c1", kill_on_drop: false }` [INFO] [stderr] Compiling midgard-rs v0.0.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in crate `rand` [INFO] [stdout] --> src/midgard/endpoints/borrowers.rs:88:63 [INFO] [stdout] | [INFO] [stdout] 88 | let address_1 = borrowers.get_borrowers().choose(&mut rand::thread_rng()).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^ not found in `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in crate `rand` [INFO] [stdout] --> src/midgard/endpoints/borrowers.rs:89:63 [INFO] [stdout] | [INFO] [stdout] 89 | let address_2 = borrowers.get_borrowers().choose(&mut rand::thread_rng()).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^ not found in `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/endpoints/members.rs:114:22 [INFO] [stdout] | [INFO] [stdout] 114 | let random_usize = thread_rng().gen_range(0..pool_list.get_assets().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/endpoints/members.rs:119:22 [INFO] [stdout] | [INFO] [stdout] 119 | let random_usize = thread_rng().gen_range(0..member_list.get_members().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/endpoints/members.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | let random_usize_2 = thread_rng().gen_range(0..member_list.get_members().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/endpoints/members.rs:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | let random_usize = thread_rng().gen_range(0..pool_list.get_assets().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/endpoints/pools.rs:184:22 [INFO] [stdout] | [INFO] [stdout] 184 | let random_usize = thread_rng().gen_range(0..pool_list.get_pools().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/endpoints/pools.rs:209:36 [INFO] [stdout] | [INFO] [stdout] 209 | let random_usize = thread_rng().gen_range(0..pool_list.get_pools().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/midgard/mod.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | let random_usize = thread_rng().gen_range(0..pool_list.get_assets().len()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/midgard/endpoints/members.rs:103:6 [INFO] [stdout] | [INFO] [stdout] 103 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/midgard/endpoints/pools.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/midgard/mod.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `midgard-rs` (lib test) due to 9 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a6e10013f396a3c58e2cef856c93309c799be85fb345313fc3478b29edf009c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6e10013f396a3c58e2cef856c93309c799be85fb345313fc3478b29edf009c1", kill_on_drop: false }` [INFO] [stdout] a6e10013f396a3c58e2cef856c93309c799be85fb345313fc3478b29edf009c1