[INFO] cloning repository https://github.com/nlam1170/disc-exchange [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nlam1170/disc-exchange" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnlam1170%2Fdisc-exchange", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnlam1170%2Fdisc-exchange'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 586326b46ea1c149474eccacfda219f1c06c37f6 [INFO] testing nlam1170/disc-exchange against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnlam1170%2Fdisc-exchange" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nlam1170/disc-exchange on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nlam1170/disc-exchange [INFO] finished tweaking git repo https://github.com/nlam1170/disc-exchange [INFO] tweaked toml for git repo https://github.com/nlam1170/disc-exchange written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/nlam1170/disc-exchange already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d26aa4b5bb8faaefc2b801921372f8eb75889ceb744190aa481dda0d7466b57 [INFO] running `Command { std: "docker" "start" "-a" "2d26aa4b5bb8faaefc2b801921372f8eb75889ceb744190aa481dda0d7466b57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d26aa4b5bb8faaefc2b801921372f8eb75889ceb744190aa481dda0d7466b57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d26aa4b5bb8faaefc2b801921372f8eb75889ceb744190aa481dda0d7466b57", kill_on_drop: false }` [INFO] [stdout] 2d26aa4b5bb8faaefc2b801921372f8eb75889ceb744190aa481dda0d7466b57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78d748f3073749a01fd03875421a3fcafcb912b5a13205874fc64bbd18b13c91 [INFO] running `Command { std: "docker" "start" "-a" "78d748f3073749a01fd03875421a3fcafcb912b5a13205874fc64bbd18b13c91", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.72 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling pin-project-lite v0.1.7 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling tinyvec v0.3.3 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling futures-sink v0.3.5 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.23 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling dtoa v0.4.6 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling serenity v0.8.6 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling uwl v0.6.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling tracing-core v0.1.11 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling miniz_oxide v0.4.0 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling indexmap v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling tracing v0.1.16 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling num-format v0.4.0 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling flate2 v1.0.16 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling input_buffer v0.2.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling tungstenite v0.9.2 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling webpki-roots v0.19.0 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling rustls v0.16.0 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling command_attr v0.2.0 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling pin-project v0.4.22 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling chrono v0.4.13 [INFO] [stderr] Compiling hyper v0.13.7 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling hyper-rustls v0.20.0 [INFO] [stderr] Compiling reqwest v0.10.6 [INFO] [stderr] Compiling learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/extra/exchange.rs:150:20 [INFO] [stdout] | [INFO] [stdout] 150 | let (resp, index) = tokio::join!(make_request(url), get_usd_price()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_request` [INFO] [stdout] --> src/extra/exchange.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | async fn make_request(url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_commas` [INFO] [stdout] --> src/extra/exchange.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn add_commas(num: T) -> String [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_usd_price` [INFO] [stdout] --> src/extra/exchange.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | async fn get_usd_price() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_usdt_price` [INFO] [stdout] --> src/extra/exchange.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn get_usdt_price() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Bitmex` [INFO] [stdout] --> src/extra/exchange.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Bitmex; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Huboi` [INFO] [stdout] --> src/extra/exchange.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Huboi; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Okex` [INFO] [stdout] --> src/extra/exchange.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Okex; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Binance` [INFO] [stdout] --> src/extra/exchange.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Binance; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Bybit` [INFO] [stdout] --> src/extra/exchange.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Bybit; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_funding_rate` [INFO] [stdout] --> src/extra/exchange.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_oi` [INFO] [stdout] --> src/extra/exchange.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn get_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_funding_rate` [INFO] [stdout] --> src/extra/exchange.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_oi` [INFO] [stdout] --> src/extra/exchange.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | pub async fn get_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_funding` [INFO] [stdout] --> src/extra/exchange.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn get_usd_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_oi` [INFO] [stdout] --> src/extra/exchange.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn get_usd_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_funding` [INFO] [stdout] --> src/extra/exchange.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn get_usdt_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_oi` [INFO] [stdout] --> src/extra/exchange.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn get_usdt_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_funding_rate` [INFO] [stdout] --> src/extra/exchange.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_oi` [INFO] [stdout] --> src/extra/exchange.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn get_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_funding` [INFO] [stdout] --> src/extra/exchange.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | pub async fn get_usd_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_oi` [INFO] [stdout] --> src/extra/exchange.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | pub async fn get_usd_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_funding` [INFO] [stdout] --> src/extra/exchange.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | pub async fn get_usdt_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_oi` [INFO] [stdout] --> src/extra/exchange.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | pub async fn get_usdt_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.12s [INFO] running `Command { std: "docker" "inspect" "78d748f3073749a01fd03875421a3fcafcb912b5a13205874fc64bbd18b13c91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78d748f3073749a01fd03875421a3fcafcb912b5a13205874fc64bbd18b13c91", kill_on_drop: false }` [INFO] [stdout] 78d748f3073749a01fd03875421a3fcafcb912b5a13205874fc64bbd18b13c91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 515b90e00a0b3b8ec01d446019e2bc52e5a8406d9398cb0a0e69e12fb2a025c3 [INFO] running `Command { std: "docker" "start" "-a" "515b90e00a0b3b8ec01d446019e2bc52e5a8406d9398cb0a0e69e12fb2a025c3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/extra/exchange.rs:150:20 [INFO] [stdout] | [INFO] [stdout] 150 | let (resp, index) = tokio::join!(make_request(url), get_usd_price()); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `make_request` [INFO] [stdout] --> src/extra/exchange.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | async fn make_request(url: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_commas` [INFO] [stdout] --> src/extra/exchange.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn add_commas(num: T) -> String [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_usd_price` [INFO] [stdout] --> src/extra/exchange.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | async fn get_usd_price() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_usdt_price` [INFO] [stdout] --> src/extra/exchange.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn get_usdt_price() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Bitmex` [INFO] [stdout] --> src/extra/exchange.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Bitmex; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Huboi` [INFO] [stdout] --> src/extra/exchange.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Huboi; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Okex` [INFO] [stdout] --> src/extra/exchange.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Okex; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Binance` [INFO] [stdout] --> src/extra/exchange.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Binance; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Bybit` [INFO] [stdout] --> src/extra/exchange.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Bybit; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_funding_rate` [INFO] [stdout] --> src/extra/exchange.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_oi` [INFO] [stdout] --> src/extra/exchange.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn get_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_funding_rate` [INFO] [stdout] --> src/extra/exchange.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_oi` [INFO] [stdout] --> src/extra/exchange.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | pub async fn get_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_funding` [INFO] [stdout] --> src/extra/exchange.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | pub async fn get_usd_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_oi` [INFO] [stdout] --> src/extra/exchange.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn get_usd_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_funding` [INFO] [stdout] --> src/extra/exchange.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn get_usdt_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_oi` [INFO] [stdout] --> src/extra/exchange.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn get_usdt_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_funding_rate` [INFO] [stdout] --> src/extra/exchange.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_oi` [INFO] [stdout] --> src/extra/exchange.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn get_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_funding` [INFO] [stdout] --> src/extra/exchange.rs:126:18 [INFO] [stdout] | [INFO] [stdout] 126 | pub async fn get_usd_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usd_oi` [INFO] [stdout] --> src/extra/exchange.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | pub async fn get_usd_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_funding` [INFO] [stdout] --> src/extra/exchange.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | pub async fn get_usdt_funding(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_usdt_oi` [INFO] [stdout] --> src/extra/exchange.rs:148:18 [INFO] [stdout] | [INFO] [stdout] 148 | pub async fn get_usdt_oi(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.54s [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/learn-e0131c767e245d1f) [INFO] running `Command { std: "docker" "inspect" "515b90e00a0b3b8ec01d446019e2bc52e5a8406d9398cb0a0e69e12fb2a025c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "515b90e00a0b3b8ec01d446019e2bc52e5a8406d9398cb0a0e69e12fb2a025c3", kill_on_drop: false }` [INFO] [stdout] 515b90e00a0b3b8ec01d446019e2bc52e5a8406d9398cb0a0e69e12fb2a025c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ae9c93c4a41992ce256b85a57ac721d05041e9ccb81642290a2c0aa3d8e69c8e [INFO] running `Command { std: "docker" "start" "-a" "ae9c93c4a41992ce256b85a57ac721d05041e9ccb81642290a2c0aa3d8e69c8e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/extra/exchange.rs:150:20 [INFO] [stderr] | [INFO] [stderr] 150 | let (resp, index) = tokio::join!(make_request(url), get_usd_price()); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `make_request` [INFO] [stderr] --> src/extra/exchange.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | async fn make_request(url: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_commas` [INFO] [stderr] --> src/extra/exchange.rs:12:4 [INFO] [stderr] | [INFO] [stderr] 12 | fn add_commas(num: T) -> String [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_usd_price` [INFO] [stderr] --> src/extra/exchange.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | async fn get_usd_price() -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_usdt_price` [INFO] [stderr] --> src/extra/exchange.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | async fn get_usdt_price() -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Bitmex` [INFO] [stderr] --> src/extra/exchange.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | pub struct Bitmex; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Huboi` [INFO] [stderr] --> src/extra/exchange.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub struct Huboi; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Okex` [INFO] [stderr] --> src/extra/exchange.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub struct Okex; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Binance` [INFO] [stderr] --> src/extra/exchange.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | pub struct Binance; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Bybit` [INFO] [stderr] --> src/extra/exchange.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub struct Bybit; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_funding_rate` [INFO] [stderr] --> src/extra/exchange.rs:44:18 [INFO] [stderr] | [INFO] [stderr] 44 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_oi` [INFO] [stderr] --> src/extra/exchange.rs:51:18 [INFO] [stderr] | [INFO] [stderr] 51 | pub async fn get_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_funding_rate` [INFO] [stderr] --> src/extra/exchange.rs:60:18 [INFO] [stderr] | [INFO] [stderr] 60 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_oi` [INFO] [stderr] --> src/extra/exchange.rs:67:18 [INFO] [stderr] | [INFO] [stderr] 67 | pub async fn get_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usd_funding` [INFO] [stderr] --> src/extra/exchange.rs:76:18 [INFO] [stderr] | [INFO] [stderr] 76 | pub async fn get_usd_funding(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usd_oi` [INFO] [stderr] --> src/extra/exchange.rs:83:18 [INFO] [stderr] | [INFO] [stderr] 83 | pub async fn get_usd_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usdt_funding` [INFO] [stderr] --> src/extra/exchange.rs:91:18 [INFO] [stderr] | [INFO] [stderr] 91 | pub async fn get_usdt_funding(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usdt_oi` [INFO] [stderr] --> src/extra/exchange.rs:98:18 [INFO] [stderr] | [INFO] [stderr] 98 | pub async fn get_usdt_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_funding_rate` [INFO] [stderr] --> src/extra/exchange.rs:108:18 [INFO] [stderr] | [INFO] [stderr] 108 | pub async fn get_funding_rate(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_oi` [INFO] [stderr] --> src/extra/exchange.rs:115:18 [INFO] [stderr] | [INFO] [stderr] 115 | pub async fn get_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usd_funding` [INFO] [stderr] --> src/extra/exchange.rs:126:18 [INFO] [stderr] | [INFO] [stderr] 126 | pub async fn get_usd_funding(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usd_oi` [INFO] [stderr] --> src/extra/exchange.rs:133:18 [INFO] [stderr] | [INFO] [stderr] 133 | pub async fn get_usd_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usdt_funding` [INFO] [stderr] --> src/extra/exchange.rs:141:18 [INFO] [stderr] | [INFO] [stderr] 141 | pub async fn get_usdt_funding(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_usdt_oi` [INFO] [stderr] --> src/extra/exchange.rs:148:18 [INFO] [stderr] | [INFO] [stderr] 148 | pub async fn get_usdt_oi(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `learn` (bin "learn" test) generated 24 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 23.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/learn-e0131c767e245d1f) [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" "ae9c93c4a41992ce256b85a57ac721d05041e9ccb81642290a2c0aa3d8e69c8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae9c93c4a41992ce256b85a57ac721d05041e9ccb81642290a2c0aa3d8e69c8e", kill_on_drop: false }` [INFO] [stdout] ae9c93c4a41992ce256b85a57ac721d05041e9ccb81642290a2c0aa3d8e69c8e