[INFO] fetching crate slackr 0.1.1... [INFO] testing slackr-0.1.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate slackr 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate slackr 0.1.1 [INFO] finished tweaking crates.io crate slackr 0.1.1 [INFO] tweaked toml for crates.io crate slackr 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate slackr 0.1.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate slackr 0.1.1 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb65e183c688d4a4fde9dbccf6da973a310d8eca67240e26f89fe7f3387eb1c6 [INFO] running `Command { std: "docker" "start" "-a" "fb65e183c688d4a4fde9dbccf6da973a310d8eca67240e26f89fe7f3387eb1c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb65e183c688d4a4fde9dbccf6da973a310d8eca67240e26f89fe7f3387eb1c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb65e183c688d4a4fde9dbccf6da973a310d8eca67240e26f89fe7f3387eb1c6", kill_on_drop: false }` [INFO] [stdout] fb65e183c688d4a4fde9dbccf6da973a310d8eca67240e26f89fe7f3387eb1c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2050252bba459e5b66fc1c60693383a507ab0455ef7f1e710d1e0d8b90644e08 [INFO] running `Command { std: "docker" "start" "-a" "2050252bba459e5b66fc1c60693383a507ab0455ef7f1e710d1e0d8b90644e08", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling cc v1.1.30 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls-pki-types v1.9.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling rusqlite v0.32.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling slackr v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/event_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/client.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let response = self.client.post(url) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_type` is never read [INFO] [stdout] --> src/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SlackEnvelope { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | message_type: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlackEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_id` is never read [INFO] [stdout] --> src/client.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct SlackPayload { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 34 | pub event: Event, [INFO] [stdout] 35 | event_id: String [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlackPayload` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.91s [INFO] running `Command { std: "docker" "inspect" "2050252bba459e5b66fc1c60693383a507ab0455ef7f1e710d1e0d8b90644e08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2050252bba459e5b66fc1c60693383a507ab0455ef7f1e710d1e0d8b90644e08", kill_on_drop: false }` [INFO] [stdout] 2050252bba459e5b66fc1c60693383a507ab0455ef7f1e710d1e0d8b90644e08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7427c023fbde9459f1c466b76897726bbc888d4eaeb566161b5162747814fcbd [INFO] running `Command { std: "docker" "start" "-a" "7427c023fbde9459f1c466b76897726bbc888d4eaeb566161b5162747814fcbd", kill_on_drop: false }` [INFO] [stderr] Compiling slackr v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/event_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/client.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let response = self.client.post(url) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_type` is never read [INFO] [stdout] --> src/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SlackEnvelope { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | message_type: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlackEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_id` is never read [INFO] [stdout] --> src/client.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct SlackPayload { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 34 | pub event: Event, [INFO] [stdout] 35 | event_id: String [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlackPayload` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/event_handler.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> src/client.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let response = self.client.post(url) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message_type` is never read [INFO] [stdout] --> src/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct SlackEnvelope { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | message_type: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlackEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `event_id` is never read [INFO] [stdout] --> src/client.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct SlackPayload { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 34 | pub event: Event, [INFO] [stdout] 35 | event_id: String [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SlackPayload` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "7427c023fbde9459f1c466b76897726bbc888d4eaeb566161b5162747814fcbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7427c023fbde9459f1c466b76897726bbc888d4eaeb566161b5162747814fcbd", kill_on_drop: false }` [INFO] [stdout] 7427c023fbde9459f1c466b76897726bbc888d4eaeb566161b5162747814fcbd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a1dada874868e9add3002a8ff44a02d0157f81560146afc469fa6879588a7cde [INFO] running `Command { std: "docker" "start" "-a" "a1dada874868e9add3002a8ff44a02d0157f81560146afc469fa6879588a7cde", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/event_handler.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/client.rs:149:14 [INFO] [stderr] | [INFO] [stderr] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/client.rs:149:26 [INFO] [stderr] | [INFO] [stderr] 149 | let (mut writer, mut reader) = stream.split(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `response` [INFO] [stderr] --> src/client.rs:252:13 [INFO] [stderr] | [INFO] [stderr] 252 | let response = self.client.post(url) [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `message_type` is never read [INFO] [stderr] --> src/client.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct SlackEnvelope { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 27 | message_type: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SlackEnvelope` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `event_id` is never read [INFO] [stderr] --> src/client.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct SlackPayload { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 34 | pub event: Event, [INFO] [stderr] 35 | event_id: String [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SlackPayload` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `slackr` (lib) generated 6 warnings (run `cargo fix --lib -p slackr` to apply 3 suggestions) [INFO] [stderr] warning: `slackr` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/slackr-a6157a96d08f6fe8) [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] [stderr] Doc-tests slackr [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/client.rs - client::SlackClient::register_callback (line 155) ... FAILED [INFO] [stdout] test src/client.rs - client::SlackClient::connect_to_socket (line 142) ... FAILED [INFO] [stdout] test src/client.rs - client::SlackClient::new (line 105) ... FAILED [INFO] [stdout] test src/alias_db.rs - alias_db::Database (line 7) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::SlackClient::register_callback (line 155) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `SlackEnvelope` in this scope [INFO] [stdout] --> src/client.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 3 | fn contains_no_spaces(event: &SlackEnvelope) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use slackr::client::SlackEnvelope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 8 | client.register_callback( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SlackEnvelope` in this scope [INFO] [stdout] --> src/client.rs:163:19 [INFO] [stdout] | [INFO] [stdout] 10 | move |event: &SlackEnvelope| { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use slackr::client::SlackEnvelope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SlackClient` [INFO] [stdout] --> src/client.rs:167:22 [INFO] [stdout] | [INFO] [stdout] 14 | let client = SlackClient::new(); // Unfortunate, but necessary for now [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SlackClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use slackr::client::SlackClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::SlackClient::connect_to_socket (line 142) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:143:1 [INFO] [stdout] | [INFO] [stdout] 3 | client.connect_to_socket(None).await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:143:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_142_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | client.connect_to_socket(None).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::SlackClient::new (line 105) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> src/client.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = Client::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use reqwest::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/alias_db.rs - alias_db::Database (line 7) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/alias_db.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 4 | let db_path = Path::new(dir).join("assets/alias_db.db"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/alias_db.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 4 | let db_path = Path::new(dir).join("assets/alias_db.db"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Database` [INFO] [stdout] --> src/alias_db.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 5 | let db = Database::new(&db_path)?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Database` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use slackr::alias_db::Database; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SlackClient` [INFO] [stdout] --> src/alias_db.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 8 | let client = SlackClient::new(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SlackClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use slackr::client::SlackClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/alias_db.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 2 | #[tokio::main] [INFO] [stdout] | -------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | db.setup(&client).await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/alias_db.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn main() -> Result<(), Box> { [INFO] [stdout] | -------------------------------------- expected `Result<(), Box<(dyn std::error::Error + 'static)>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 10 | db.setup(&client).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Box>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 10 ~ db.setup(&client).await?;; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/alias_db.rs - alias_db::Database (line 7) [INFO] [stdout] src/client.rs - client::SlackClient::connect_to_socket (line 142) [INFO] [stdout] src/client.rs - client::SlackClient::new (line 105) [INFO] [stdout] src/client.rs - client::SlackClient::register_callback (line 155) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a1dada874868e9add3002a8ff44a02d0157f81560146afc469fa6879588a7cde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1dada874868e9add3002a8ff44a02d0157f81560146afc469fa6879588a7cde", kill_on_drop: false }` [INFO] [stdout] a1dada874868e9add3002a8ff44a02d0157f81560146afc469fa6879588a7cde