[INFO] cloning repository https://github.com/sschepis/stratum-client [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sschepis/stratum-client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsschepis%2Fstratum-client", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsschepis%2Fstratum-client'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ad060f7008a6e5446a3735826dccffa45ec022c [INFO] testing sschepis/stratum-client against master#414482f6a0d4e7290f614300581a0b55442552a3 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsschepis%2Fstratum-client" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 56% (821/1461) Updating files: 57% (833/1461) Updating files: 58% (848/1461) Updating files: 59% (862/1461) Updating files: 60% (877/1461) Updating files: 61% (892/1461) Updating files: 62% (906/1461) Updating files: 63% (921/1461) Updating files: 64% (936/1461) Updating files: 65% (950/1461) Updating files: 66% (965/1461) Updating files: 67% (979/1461) Updating files: 68% (994/1461) Updating files: 69% (1009/1461) Updating files: 70% (1023/1461) Updating files: 71% (1038/1461) Updating files: 72% (1052/1461) Updating files: 73% (1067/1461) Updating files: 74% (1082/1461) Updating files: 75% (1096/1461) Updating files: 76% (1111/1461) Updating files: 77% (1125/1461) Updating files: 78% (1140/1461) Updating files: 79% (1155/1461) Updating files: 80% (1169/1461) Updating files: 81% (1184/1461) Updating files: 82% (1199/1461) Updating files: 83% (1213/1461) Updating files: 84% (1228/1461) Updating files: 85% (1242/1461) Updating files: 86% (1257/1461) Updating files: 87% (1272/1461) Updating files: 88% (1286/1461) Updating files: 89% (1301/1461) Updating files: 90% (1315/1461) Updating files: 91% (1330/1461) Updating files: 92% (1345/1461) Updating files: 93% (1359/1461) Updating files: 94% (1374/1461) Updating files: 95% (1388/1461) Updating files: 96% (1403/1461) Updating files: 97% (1418/1461) Updating files: 97% (1431/1461) Updating files: 98% (1432/1461) Updating files: 99% (1447/1461) Updating files: 100% (1461/1461) Updating files: 100% (1461/1461), done. [INFO] validating manifest of git repo https://github.com/sschepis/stratum-client on toolchain 414482f6a0d4e7290f614300581a0b55442552a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sschepis/stratum-client [INFO] finished tweaking git repo https://github.com/sschepis/stratum-client [INFO] tweaked toml for git repo https://github.com/sschepis/stratum-client written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sschepis/stratum-client 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" "+414482f6a0d4e7290f614300581a0b55442552a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0e5ff266a8035d93e8638540184764895d34c2a0d41aa1f9dff0ca0e9048a24b [INFO] running `Command { std: "docker" "start" "-a" "0e5ff266a8035d93e8638540184764895d34c2a0d41aa1f9dff0ca0e9048a24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0e5ff266a8035d93e8638540184764895d34c2a0d41aa1f9dff0ca0e9048a24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e5ff266a8035d93e8638540184764895d34c2a0d41aa1f9dff0ca0e9048a24b", kill_on_drop: false }` [INFO] [stdout] 0e5ff266a8035d93e8638540184764895d34c2a0d41aa1f9dff0ca0e9048a24b [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8d695284152f417e1f66d3d80169bfa89b4626e83a56b80813a596e2361cfc4 [INFO] running `Command { std: "docker" "start" "-a" "b8d695284152f417e1f66d3d80169bfa89b4626e83a56b80813a596e2361cfc4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.86 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rust-stratum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Instant` and `collections::HashMap` [INFO] [stdout] --> src/stratum/v1/jobs.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | sync::Arc, [INFO] [stdout] 11 | time::{Duration, Instant}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stats` is never used [INFO] [stdout] --> src/stratum/v1/connection.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 65 | impl StratumConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn stats(&self) -> ConnectionStats { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_alive` is never read [INFO] [stdout] --> src/stratum/v1/jobs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JobManager { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | job_from_stratum_tx: tokio::sync::mpsc::UnboundedSender, [INFO] [stdout] 19 | is_alive: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `subscribe`, `authorize`, and `submit` are never used [INFO] [stdout] --> src/stratum/v1/protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl JsonRpcRequest { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 38 | /// Create a new request with the given method and parameters [INFO] [stdout] 39 | pub fn new(id: u64, method: impl Into, params: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn subscribe(id: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn authorize(id: u64, username: &str, password: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn submit(id: u64, job_id: &str, extranonce2: &str, ntime: &str, nonce: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ok`, `err`, `is_ok`, `is_err`, and `error_message` are never used [INFO] [stdout] --> src/stratum/v1/protocol.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl JsonRpcResponse { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 85 | /// Create a new successful response [INFO] [stdout] 86 | pub fn ok(id: u64, result: Value) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn err(id: u64, error: Value) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn is_err(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn error_message(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.64s [INFO] running `Command { std: "docker" "inspect" "b8d695284152f417e1f66d3d80169bfa89b4626e83a56b80813a596e2361cfc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8d695284152f417e1f66d3d80169bfa89b4626e83a56b80813a596e2361cfc4", kill_on_drop: false }` [INFO] [stdout] b8d695284152f417e1f66d3d80169bfa89b4626e83a56b80813a596e2361cfc4 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef8868ab9854e304f1548df6ec9f0a3ad237a43fe7a8ea77b22cefa21c0b43d6 [INFO] running `Command { std: "docker" "start" "-a" "ef8868ab9854e304f1548df6ec9f0a3ad237a43fe7a8ea77b22cefa21c0b43d6", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling rust-stratum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Instant` and `collections::HashMap` [INFO] [stdout] --> src/stratum/v1/jobs.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | sync::Arc, [INFO] [stdout] 11 | time::{Duration, Instant}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stdout] warning: method `stats` is never used [INFO] [stdout] --> src/stratum/v1/connection.rs:107:18 [INFO] [stdout] | [INFO] [stdout] 65 | impl StratumConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn stats(&self) -> ConnectionStats { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_alive` is never read [INFO] [stdout] --> src/stratum/v1/jobs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JobManager { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | job_from_stratum_tx: tokio::sync::mpsc::UnboundedSender, [INFO] [stdout] 19 | is_alive: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `subscribe`, `authorize`, and `submit` are never used [INFO] [stdout] --> src/stratum/v1/protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl JsonRpcRequest { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 38 | /// Create a new request with the given method and parameters [INFO] [stdout] 39 | pub fn new(id: u64, method: impl Into, params: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn subscribe(id: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn authorize(id: u64, username: &str, password: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn submit(id: u64, job_id: &str, extranonce2: &str, ntime: &str, nonce: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ok`, `err`, `is_ok`, `is_err`, and `error_message` are never used [INFO] [stdout] --> src/stratum/v1/protocol.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl JsonRpcResponse { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 85 | /// Create a new successful response [INFO] [stdout] 86 | pub fn ok(id: u64, result: Value) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn err(id: u64, error: Value) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn is_err(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn error_message(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncReadExt` and `mpsc` [INFO] [stdout] --> examples/test_server.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | net::{TcpListener, TcpStream}, [INFO] [stdout] 7 | sync::{mpsc, Mutex}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> tests/integration_tests.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty` [INFO] [stdout] --> tests/integration_tests.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | async fn setup_test_server(difficulty: f64) -> (TcpListener, String, u16) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `difficulty` is never read [INFO] [stdout] --> examples/test_server.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct MiningSession { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 12 | difficulty: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/integration_tests.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/integration_tests.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/integration_tests.rs:291:14 [INFO] [stdout] | [INFO] [stdout] 291 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Instant` and `collections::HashMap` [INFO] [stdout] --> src/stratum/v1/jobs.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | sync::Arc, [INFO] [stdout] 11 | time::{Duration, Instant}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/integration_tests.rs:414:14 [INFO] [stdout] | [INFO] [stdout] 414 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_alive` is never read [INFO] [stdout] --> src/stratum/v1/jobs.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct JobManager { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 18 | job_from_stratum_tx: tokio::sync::mpsc::UnboundedSender, [INFO] [stdout] 19 | is_alive: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JobManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 12.26s [INFO] running `Command { std: "docker" "inspect" "ef8868ab9854e304f1548df6ec9f0a3ad237a43fe7a8ea77b22cefa21c0b43d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef8868ab9854e304f1548df6ec9f0a3ad237a43fe7a8ea77b22cefa21c0b43d6", kill_on_drop: false }` [INFO] [stdout] ef8868ab9854e304f1548df6ec9f0a3ad237a43fe7a8ea77b22cefa21c0b43d6 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+414482f6a0d4e7290f614300581a0b55442552a3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4bfc35208034352cd6cd1431e1e413d301188c2d285a66b3e040b3bd96258451 [INFO] running `Command { std: "docker" "start" "-a" "4bfc35208034352cd6cd1431e1e413d301188c2d285a66b3e040b3bd96258451", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Instant` and `collections::HashMap` [INFO] [stderr] --> src/stratum/v1/jobs.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | collections::HashMap, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 10 | sync::Arc, [INFO] [stderr] 11 | time::{Duration, Instant}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `stats` is never used [INFO] [stderr] --> src/stratum/v1/connection.rs:107:18 [INFO] [stderr] | [INFO] [stderr] 65 | impl StratumConnection { [INFO] [stderr] | ---------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 107 | pub async fn stats(&self) -> ConnectionStats { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `is_alive` is never read [INFO] [stderr] --> src/stratum/v1/jobs.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct JobManager { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 18 | job_from_stratum_tx: tokio::sync::mpsc::UnboundedSender, [INFO] [stderr] 19 | is_alive: Arc, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `JobManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated functions `new`, `subscribe`, `authorize`, and `submit` are never used [INFO] [stderr] --> src/stratum/v1/protocol.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 37 | impl JsonRpcRequest { [INFO] [stderr] | ------------------- associated functions in this implementation [INFO] [stderr] 38 | /// Create a new request with the given method and parameters [INFO] [stderr] 39 | pub fn new(id: u64, method: impl Into, params: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn subscribe(id: u64) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn authorize(id: u64, username: &str, password: &str) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | pub fn submit(id: u64, job_id: &str, extranonce2: &str, ntime: &str, nonce: &str) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `ok`, `err`, `is_ok`, `is_err`, and `error_message` are never used [INFO] [stderr] --> src/stratum/v1/protocol.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 84 | impl JsonRpcResponse { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 85 | /// Create a new successful response [INFO] [stderr] 86 | pub fn ok(id: u64, result: Value) -> Self { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn err(id: u64, error: Value) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 104 | pub fn is_ok(&self) -> bool { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 109 | pub fn is_err(&self) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn error_message(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-stratum` (lib) generated 5 warnings (run `cargo fix --lib -p rust-stratum` to apply 1 suggestion) [INFO] [stderr] warning: unused import: `AsyncReadExt` [INFO] [stderr] --> tests/integration_tests.rs:4:27 [INFO] [stderr] | [INFO] [stderr] 4 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `difficulty` [INFO] [stderr] --> tests/integration_tests.rs:16:28 [INFO] [stderr] | [INFO] [stderr] 16 | async fn setup_test_server(difficulty: f64) -> (TcpListener, String, u16) { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/integration_tests.rs:30:14 [INFO] [stderr] | [INFO] [stderr] 30 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/integration_tests.rs:186:14 [INFO] [stderr] | [INFO] [stderr] 186 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/integration_tests.rs:291:14 [INFO] [stderr] | [INFO] [stderr] 291 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/integration_tests.rs:414:14 [INFO] [stderr] | [INFO] [stderr] 414 | let (mut socket, _) = listener.accept().await.unwrap(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncReadExt` and `mpsc` [INFO] [stderr] --> examples/test_server.rs:5:27 [INFO] [stderr] | [INFO] [stderr] 5 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 6 | net::{TcpListener, TcpStream}, [INFO] [stderr] 7 | sync::{mpsc, Mutex}, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `difficulty` is never read [INFO] [stderr] --> examples/test_server.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | struct MiningSession { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 12 | difficulty: f64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `is_alive` is never read [INFO] [stderr] --> src/stratum/v1/jobs.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct JobManager { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 18 | job_from_stratum_tx: tokio::sync::mpsc::UnboundedSender, [INFO] [stderr] 19 | is_alive: Arc, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `JobManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust-stratum` (test "integration_tests") generated 6 warnings (run `cargo fix --test "integration_tests"` to apply 5 suggestions) [INFO] [stderr] warning: `rust-stratum` (example "test_server") generated 2 warnings (run `cargo fix --example "test_server"` to apply 1 suggestion) [INFO] [stderr] warning: `rust-stratum` (lib test) generated 2 warnings (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_stratum-dff4b003f4112b03) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test stratum::v1::connection::tests::test_connection_config ... ok [INFO] [stdout] test stratum::v1::connection::tests::test_connection_stats ... ok [INFO] [stdout] test stratum::v1::jobs::tests::test_difficulty_handling ... ok [INFO] [stdout] test stratum::v1::jobs::tests::test_job_validation ... ok [INFO] [stdout] test stratum::v1::connection::tests::test_reconnection ... ok [INFO] [stdout] test stratum::v1::jobs::tests::test_generate_extranonce2 ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_authorize_request ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_request_creation ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_request_display ... ok [INFO] [stdout] test stratum::v1::jobs::tests::test_share_validation ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_response_err ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_response_ok ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_submit_request ... ok [INFO] [stdout] test stratum::v1::protocol::tests::test_subscribe_request ... ok [INFO] [stdout] test stratum::v1::tests::test_subscribe ... ok [INFO] [stdout] test stratum::v1::tests::test_authorize ... ok [INFO] [stdout] test stratum::v1::connection::tests::test_connection_errors ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.01s [INFO] [stdout] [INFO] [stderr] Running tests/integration_tests.rs (/opt/rustwide/target/debug/deps/integration_tests-bee04d75074f4d19) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test test_error_handling ... ok [INFO] [stdout] test test_full_mining_cycle ... ok [INFO] [stdout] test test_reconnection ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.01s [INFO] [stdout] [INFO] [stderr] Doc-tests rust_stratum [INFO] [stderr] error: failed to create temporary directory: Custom { kind: StorageFull, error: PathError { path: "/tmp/rustdoctestUdnMoF", err: Os { code: 28, kind: StorageFull, message: "No space left on device" } } } [INFO] [stderr] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/414482f6a0d4e7290f614300581a0b55442552a3/bin/rustdoc --edition=2021 --crate-type lib --color auto --crate-name rust_stratum --test src/lib.rs --test-run-directory /opt/rustwide/workdir -L dependency=/opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern async_trait=/opt/rustwide/target/debug/deps/libasync_trait-558f52e23c2a778d.so --extern chrono=/opt/rustwide/target/debug/deps/libchrono-c43aa808fb5efb88.rlib --extern hex=/opt/rustwide/target/debug/deps/libhex-28742b4ca144387c.rlib --extern log=/opt/rustwide/target/debug/deps/liblog-e36f16aa46751cfc.rlib --extern rand=/opt/rustwide/target/debug/deps/librand-741c06a9f3a1d7e4.rlib --extern rust_stratum=/opt/rustwide/target/debug/deps/librust_stratum-bdf7c5f87e037c44.rlib --extern serde=/opt/rustwide/target/debug/deps/libserde-14f939885c0589ac.rlib --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-ff460435f2745349.rlib --extern socket2=/opt/rustwide/target/debug/deps/libsocket2-df6f17dbfe9497f6.rlib --extern thiserror=/opt/rustwide/target/debug/deps/libthiserror-b6667e67a6248c44.rlib --extern tokio=/opt/rustwide/target/debug/deps/libtokio-eea3f6863fde1864.rlib --extern tokio_test=/opt/rustwide/target/debug/deps/libtokio_test-e1432531ebe4f174.rlib --extern uint=/opt/rustwide/target/debug/deps/libuint-e4097105d1a6dba5.rlib -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' --cap-lints=forbid --error-format human` (exit status: 1) [INFO] [stderr] note: test exited abnormally; to see the full output pass --nocapture to the harness. [INFO] running `Command { std: "docker" "inspect" "4bfc35208034352cd6cd1431e1e413d301188c2d285a66b3e040b3bd96258451", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bfc35208034352cd6cd1431e1e413d301188c2d285a66b3e040b3bd96258451", kill_on_drop: false }` [INFO] [stdout] 4bfc35208034352cd6cd1431e1e413d301188c2d285a66b3e040b3bd96258451