[INFO] cloning repository https://github.com/cxping/carbon-trading [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cxping/carbon-trading" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcxping%2Fcarbon-trading", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcxping%2Fcarbon-trading'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1730bdf4519c6aa92179f5b931ed7ee7fed7251b [INFO] testing cxping/carbon-trading against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcxping%2Fcarbon-trading" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cxping/carbon-trading [INFO] finished tweaking git repo https://github.com/cxping/carbon-trading [INFO] tweaked toml for git repo https://github.com/cxping/carbon-trading written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cxping/carbon-trading on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cxping/carbon-trading 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sqlite v0.26.0 [INFO] [stderr] Downloaded sqlite3-sys v0.13.0 [INFO] [stderr] Downloaded parking_lot_core v0.9.2 [INFO] [stderr] Downloaded html_editor v0.5.1 [INFO] [stderr] Downloaded openssl-sys v0.9.72 [INFO] [stderr] Downloaded tokio-util v0.7.1 [INFO] [stderr] Downloaded reqwest v0.11.10 [INFO] [stderr] Downloaded http v0.2.7 [INFO] [stderr] Downloaded tokio v1.18.0 [INFO] [stderr] Downloaded windows_i686_msvc v0.34.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.34.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.34.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.34.0 [INFO] [stderr] Downloaded windows_i686_gnu v0.34.0 [INFO] [stderr] Downloaded sqlite3-src v0.3.0 [INFO] [stderr] Downloaded windows-sys v0.34.0 [INFO] [stderr] Downloaded html_query_parser v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 006fd788f5a161f1cbee9a5d639ee811efd10427bb1465cb2cba466a020e16b9 [INFO] running `Command { std: "docker" "start" "-a" "006fd788f5a161f1cbee9a5d639ee811efd10427bb1465cb2cba466a020e16b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "006fd788f5a161f1cbee9a5d639ee811efd10427bb1465cb2cba466a020e16b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "006fd788f5a161f1cbee9a5d639ee811efd10427bb1465cb2cba466a020e16b9", kill_on_drop: false }` [INFO] [stdout] 006fd788f5a161f1cbee9a5d639ee811efd10427bb1465cb2cba466a020e16b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7867c6832ed59757092cfe4e0831ff90d61370dac0a62f40c822d0a84bd86ac3 [INFO] running `Command { std: "docker" "start" "-a" "7867c6832ed59757092cfe4e0831ff90d61370dac0a62f40c822d0a84bd86ac3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.92 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling tracing-core v0.1.26 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling http v0.2.7 [INFO] [stderr] Compiling sqlite3-src v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling hostname v0.1.5 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling sqlite3-sys v0.13.0 [INFO] [stderr] Compiling html_editor v0.5.1 [INFO] [stderr] Compiling html_query_parser v0.3.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling sqlite v0.26.0 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling email v0.0.20 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling tokio v1.18.0 [INFO] [stderr] Compiling tracing v0.1.34 [INFO] [stderr] Compiling lettre v0.9.6 [INFO] [stderr] Compiling lettre_email v0.9.4 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling chc-carbon-trading v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `array`, `fmt::Result`, and `io::Read` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | array, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | fmt::Result, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | fs::{self, File}, [INFO] [stdout] 7 | io::Read, [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: `serde::de::value` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:193:22 [INFO] [stdout] | [INFO] [stdout] 193 | for (k, (i, v)) in next.attrs.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/main.rs:281:27 [INFO] [stdout] | [INFO] [stdout] 281 | async fn create_connction(db: &str) -> io::Result> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn conn(&self) -> Ref { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | fn conn(&self) -> Ref<'_, Connection> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:201:40 [INFO] [stdout] | [INFO] [stdout] 201 | let app_state = &*app_state.borrow(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `std::cell::Ref<'_, AppState>` does not implement `Borrow`, so calling `borrow` on `&std::cell::Ref<'_, AppState>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 201 - let app_state = &*app_state.borrow(); [INFO] [stdout] 201 + let app_state = &*app_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.62s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 9` [INFO] running `Command { std: "docker" "inspect" "7867c6832ed59757092cfe4e0831ff90d61370dac0a62f40c822d0a84bd86ac3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7867c6832ed59757092cfe4e0831ff90d61370dac0a62f40c822d0a84bd86ac3", kill_on_drop: false }` [INFO] [stdout] 7867c6832ed59757092cfe4e0831ff90d61370dac0a62f40c822d0a84bd86ac3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cefea34a3cfdb91c9a245d2c1b845c73ae0057e5148d0be886e01c8d09eb0d2f [INFO] running `Command { std: "docker" "start" "-a" "cefea34a3cfdb91c9a245d2c1b845c73ae0057e5148d0be886e01c8d09eb0d2f", kill_on_drop: false }` [INFO] [stderr] Compiling chc-carbon-trading v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `array`, `fmt::Result`, and `io::Read` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | array, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | fmt::Result, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | fs::{self, File}, [INFO] [stdout] 7 | io::Read, [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: `serde::de::value` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use serde::de::value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:193:22 [INFO] [stdout] | [INFO] [stdout] 193 | for (k, (i, v)) in next.attrs.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:241:13 [INFO] [stdout] | [INFO] [stdout] 241 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/main.rs:281:27 [INFO] [stdout] | [INFO] [stdout] 281 | async fn create_connction(db: &str) -> io::Result> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn conn(&self) -> Ref { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | fn conn(&self) -> Ref<'_, Connection> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:201:40 [INFO] [stdout] | [INFO] [stdout] 201 | let app_state = &*app_state.borrow(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `std::cell::Ref<'_, AppState>` does not implement `Borrow`, so calling `borrow` on `&std::cell::Ref<'_, AppState>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 201 - let app_state = &*app_state.borrow(); [INFO] [stdout] 201 + let app_state = &*app_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.74s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 9` [INFO] running `Command { std: "docker" "inspect" "cefea34a3cfdb91c9a245d2c1b845c73ae0057e5148d0be886e01c8d09eb0d2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cefea34a3cfdb91c9a245d2c1b845c73ae0057e5148d0be886e01c8d09eb0d2f", kill_on_drop: false }` [INFO] [stdout] cefea34a3cfdb91c9a245d2c1b845c73ae0057e5148d0be886e01c8d09eb0d2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a565dccb860ff717764a6fa516ad8734cfe19a2a256dde7792b42405a6b9f5e5 [INFO] running `Command { std: "docker" "start" "-a" "a565dccb860ff717764a6fa516ad8734cfe19a2a256dde7792b42405a6b9f5e5", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `array`, `fmt::Result`, and `io::Read` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | array, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 5 | fmt::Result, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 6 | fs::{self, File}, [INFO] [stderr] 7 | io::Read, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde::de::value` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use serde::de::value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `k` [INFO] [stderr] --> src/main.rs:193:22 [INFO] [stderr] | [INFO] [stderr] 193 | for (k, (i, v)) in next.attrs.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/main.rs:241:13 [INFO] [stderr] | [INFO] [stderr] 241 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `db` [INFO] [stderr] --> src/main.rs:281:27 [INFO] [stderr] | [INFO] [stderr] 281 | async fn create_connction(db: &str) -> io::Result> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/main.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | fn conn(&self) -> Ref { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 43 | fn conn(&self) -> Ref<'_, Connection> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> src/main.rs:201:40 [INFO] [stderr] | [INFO] [stderr] 201 | let app_state = &*app_state.borrow(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `std::cell::Ref<'_, AppState>` does not implement `Borrow`, so calling `borrow` on `&std::cell::Ref<'_, AppState>` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 201 - let app_state = &*app_state.borrow(); [INFO] [stderr] 201 + let app_state = &*app_state; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `chc-carbon-trading` (bin "chc-carbon-trading" test) generated 7 warnings (run `cargo fix --bin "chc-carbon-trading" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 9` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chc_carbon_trading-06e7bd2540c462c1) [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" "a565dccb860ff717764a6fa516ad8734cfe19a2a256dde7792b42405a6b9f5e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a565dccb860ff717764a6fa516ad8734cfe19a2a256dde7792b42405a6b9f5e5", kill_on_drop: false }` [INFO] [stdout] a565dccb860ff717764a6fa516ad8734cfe19a2a256dde7792b42405a6b9f5e5