[INFO] fetching crate twitchalerts 0.1.5... [INFO] testing twitchalerts-0.1.5 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate twitchalerts 0.1.5 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate twitchalerts 0.1.5 [INFO] finished tweaking crates.io crate twitchalerts 0.1.5 [INFO] tweaked toml for crates.io crate twitchalerts 0.1.5 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate twitchalerts 0.1.5 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 174 packages to latest compatible versions [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.24) [INFO] [stderr] Adding toml v0.8.23 (available: v0.9.8) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a342a0e458246f63d5357e6010f92bbd4f9c377d7f5561ab75838b0d8876564 [INFO] running `Command { std: "docker" "start" "-a" "5a342a0e458246f63d5357e6010f92bbd4f9c377d7f5561ab75838b0d8876564", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a342a0e458246f63d5357e6010f92bbd4f9c377d7f5561ab75838b0d8876564", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a342a0e458246f63d5357e6010f92bbd4f9c377d7f5561ab75838b0d8876564", kill_on_drop: false }` [INFO] [stdout] 5a342a0e458246f63d5357e6010f92bbd4f9c377d7f5561ab75838b0d8876564 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5180cd8a8b6dc330822e350014ef03d5fd7456a7570be67302601d5b1899b531 [INFO] running `Command { std: "docker" "start" "-a" "5180cd8a8b6dc330822e350014ef03d5fd7456a7570be67302601d5b1899b531", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling twitchalerts v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let mut local_client: Client = self.clone(); [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: field `currently_streaming` is never read [INFO] [stdout] --> src/client.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 93 | currently_streaming: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Client` has a derived impl for the trait `Clone`, 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: creating a shared reference to mutable static [INFO] [stdout] --> src/client.rs:259:32 [INFO] [stdout] | [INFO] [stdout] 259 | ... if C_STREAMING.contains(&info.user_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/client.rs:263:29 [INFO] [stdout] | [INFO] [stdout] 263 | ... C_STREAMING.push(info.user_id.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/client.rs:282:36 [INFO] [stdout] | [INFO] [stdout] 282 | ... if C_STREAMING.contains(&streamer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/client.rs:283:37 [INFO] [stdout] | [INFO] [stdout] 283 | ... C_STREAMING.retain(|x | x.to_string() != streamer) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/config.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | file.unwrap().read_to_string(&mut c_string).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = file.unwrap().read_to_string(&mut c_string).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "5180cd8a8b6dc330822e350014ef03d5fd7456a7570be67302601d5b1899b531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5180cd8a8b6dc330822e350014ef03d5fd7456a7570be67302601d5b1899b531", kill_on_drop: false }` [INFO] [stdout] 5180cd8a8b6dc330822e350014ef03d5fd7456a7570be67302601d5b1899b531 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 565acc4170559b45f86e85c5ae4813cb0a3b54e6944343e4662d70f66ce0c75b [INFO] running `Command { std: "docker" "start" "-a" "565acc4170559b45f86e85c5ae4813cb0a3b54e6944343e4662d70f66ce0c75b", kill_on_drop: false }` [INFO] [stderr] Compiling twitchalerts v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let mut local_client: Client = self.clone(); [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: field `currently_streaming` is never read [INFO] [stdout] --> src/client.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 93 | currently_streaming: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Client` has a derived impl for the trait `Clone`, 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: creating a shared reference to mutable static [INFO] [stdout] --> src/client.rs:259:32 [INFO] [stdout] | [INFO] [stdout] 259 | ... if C_STREAMING.contains(&info.user_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/client.rs:263:29 [INFO] [stdout] | [INFO] [stdout] 263 | ... C_STREAMING.push(info.user_id.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/client.rs:282:36 [INFO] [stdout] | [INFO] [stdout] 282 | ... if C_STREAMING.contains(&streamer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/client.rs:283:37 [INFO] [stdout] | [INFO] [stdout] 283 | ... C_STREAMING.retain(|x | x.to_string() != streamer) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/config.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | file.unwrap().read_to_string(&mut c_string).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = file.unwrap().read_to_string(&mut c_string).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/client.rs:212:17 [INFO] [stdout] | [INFO] [stdout] 212 | let mut local_client: Client = self.clone(); [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: field `currently_streaming` is never read [INFO] [stdout] --> src/client.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 93 | currently_streaming: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Client` has a derived impl for the trait `Clone`, 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: creating a shared reference to mutable static [INFO] [stdout] --> src/client.rs:259:32 [INFO] [stdout] | [INFO] [stdout] 259 | ... if C_STREAMING.contains(&info.user_id) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/client.rs:263:29 [INFO] [stdout] | [INFO] [stdout] 263 | ... C_STREAMING.push(info.user_id.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/client.rs:282:36 [INFO] [stdout] | [INFO] [stdout] 282 | ... if C_STREAMING.contains(&streamer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/client.rs:283:37 [INFO] [stdout] | [INFO] [stdout] 283 | ... C_STREAMING.retain(|x | x.to_string() != streamer) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/config.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | file.unwrap().read_to_string(&mut c_string).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = file.unwrap().read_to_string(&mut c_string).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "565acc4170559b45f86e85c5ae4813cb0a3b54e6944343e4662d70f66ce0c75b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "565acc4170559b45f86e85c5ae4813cb0a3b54e6944343e4662d70f66ce0c75b", kill_on_drop: false }` [INFO] [stdout] 565acc4170559b45f86e85c5ae4813cb0a3b54e6944343e4662d70f66ce0c75b [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2587ac433316ed63de55bed8ed3b58cbfafaba1b21109ffb79b0f99aec93a7d9 [INFO] running `Command { std: "docker" "start" "-a" "2587ac433316ed63de55bed8ed3b58cbfafaba1b21109ffb79b0f99aec93a7d9", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/client.rs:212:17 [INFO] [stderr] | [INFO] [stderr] 212 | let mut local_client: Client = self.clone(); [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: field `currently_streaming` is never read [INFO] [stderr] --> src/client.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 88 | pub struct Client { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 93 | currently_streaming: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Client` has a derived impl for the trait `Clone`, 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: creating a shared reference to mutable static [INFO] [stderr] --> src/client.rs:259:32 [INFO] [stderr] | [INFO] [stderr] 259 | ... if C_STREAMING.contains(&info.user_id) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/client.rs:263:29 [INFO] [stderr] | [INFO] [stderr] 263 | ... C_STREAMING.push(info.user_id.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/client.rs:282:36 [INFO] [stderr] | [INFO] [stderr] 282 | ... if C_STREAMING.contains(&streamer) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/client.rs:283:37 [INFO] [stderr] | [INFO] [stderr] 283 | ... C_STREAMING.retain(|x | x.to_string() != streamer) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/config.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | file.unwrap().read_to_string(&mut c_string).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 36 | let _ = file.unwrap().read_to_string(&mut c_string).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `twitchalerts` (lib) generated 7 warnings (run `cargo fix --lib -p twitchalerts` to apply 1 suggestion) [INFO] [stderr] warning: `twitchalerts` (lib test) generated 7 warnings (7 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/twitchalerts-c07c53d13f125b4a) [INFO] [stderr] Doc-tests twitchalerts [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] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/error.rs - error::Error (line 25) ... FAILED [INFO] [stdout] test src/traits.rs - traits::EventHandler (line 12) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::new (line 106) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::run (line 177) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::event_handler (line 145) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/error.rs - error::Error (line 25) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/error.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn main() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/traits.rs - traits::EventHandler (line 12) stdout ---- [INFO] [stdout] error[E0053]: method `on_stream` has an incompatible type for trait [INFO] [stdout] --> src/traits.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] | ^^^^^^^^^ expected `String`, found `Streamer` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'life0 Handler, &'life1 String, &'life2 StreamData) -> Pin<_>` [INFO] [stdout] found signature `fn(&'life0 Handler, &'life1 Streamer, &'life2 StreamData) -> Pin<_>` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 22 - async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] 22 + async fn on_stream(&self, streamer: &'life1 String, stream: &StreamData) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_error` has an incompatible type for trait [INFO] [stdout] --> src/traits.rs:26:37 [INFO] [stdout] | [INFO] [stdout] 26 | async fn on_error(&self, error: String) { [INFO] [stdout] | ^^^^^^ expected `twitchalerts::error::Error`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'life0 Handler, twitchalerts::error::Error) -> Pin<_>` [INFO] [stdout] found signature `fn(&'life0 Handler, String) -> Pin<_>` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 26 - async fn on_error(&self, error: String) { [INFO] [stdout] 26 + async fn on_error(&self, error: twitchalerts::error::Error) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::new (line 106) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:110:22 [INFO] [stdout] | [INFO] [stdout] 110 | let client: Client = Client::new(); [INFO] [stdout] | ------ ^^^^^^^^^^^^^ expected `Client`, found future [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::run (line 177) stdout ---- [INFO] [stdout] error[E0053]: method `on_stream` has an incompatible type for trait [INFO] [stdout] --> src/client.rs:188:41 [INFO] [stdout] | [INFO] [stdout] 188 | async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] | ^^^^^^^^^ expected `String`, found `Streamer` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'life0 Handler, &'life1 String, &'life2 StreamData) -> Pin<_>` [INFO] [stdout] found signature `fn(&'life0 Handler, &'life1 Streamer, &'life2 StreamData) -> Pin<_>` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 188 - async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] 188 + async fn on_stream(&self, streamer: &'life1 String, stream: &StreamData) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_error` has an incompatible type for trait [INFO] [stdout] --> src/client.rs:192:37 [INFO] [stdout] | [INFO] [stdout] 192 | async fn on_error(&self, error: String) { [INFO] [stdout] | ^^^^^^ expected `twitchalerts::error::Error`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'life0 Handler, twitchalerts::error::Error) -> Pin<_>` [INFO] [stdout] found signature `fn(&'life0 Handler, String) -> Pin<_>` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 192 - async fn on_error(&self, error: String) { [INFO] [stdout] 192 + async fn on_error(&self, error: twitchalerts::error::Error) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `event_handler` found for opaque type `impl Future` in the current scope [INFO] [stdout] --> src/client.rs:198:24 [INFO] [stdout] | [INFO] [stdout] 198 | _ = Client::new().event_handler(Handler).run().await?; [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `impl Future` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 198 | _ = Client::new().await.event_handler(Handler).run().await?; [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/client.rs:197:1 [INFO] [stdout] | [INFO] [stdout] 197 | async fn main() -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::event_handler (line 145) stdout ---- [INFO] [stdout] error[E0053]: method `on_stream` has an incompatible type for trait [INFO] [stdout] --> src/client.rs:155:41 [INFO] [stdout] | [INFO] [stdout] 155 | async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] | ^^^^^^^^^ expected `String`, found `Streamer` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'life0 Handler, &'life1 String, &'life2 StreamData) -> Pin<_>` [INFO] [stdout] found signature `fn(&'life0 Handler, &'life1 Streamer, &'life2 StreamData) -> Pin<_>` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 155 - async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] 155 + async fn on_stream(&self, streamer: &'life1 String, stream: &StreamData) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_error` has an incompatible type for trait [INFO] [stdout] --> src/client.rs:159:37 [INFO] [stdout] | [INFO] [stdout] 159 | async fn on_error(&self, error: String) { [INFO] [stdout] | ^^^^^^ expected `twitchalerts::error::Error`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&'life0 Handler, twitchalerts::error::Error) -> Pin<_>` [INFO] [stdout] found signature `fn(&'life0 Handler, String) -> Pin<_>` [INFO] [stdout] help: change the parameter type to match the trait [INFO] [stdout] | [INFO] [stdout] 159 - async fn on_error(&self, error: String) { [INFO] [stdout] 159 + async fn on_error(&self, error: twitchalerts::error::Error) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `event_handler` found for opaque type `impl Future` in the current scope [INFO] [stdout] --> src/client.rs:164:36 [INFO] [stdout] | [INFO] [stdout] 164 | let client: Client = Client::new().event_handler(Handler); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `impl Future` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 164 | let client: Client = Client::new().await.event_handler(Handler); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::Client::event_handler (line 145) [INFO] [stdout] src/client.rs - client::Client::new (line 106) [INFO] [stdout] src/client.rs - client::Client::run (line 177) [INFO] [stdout] src/error.rs - error::Error (line 25) [INFO] [stdout] src/traits.rs - traits::EventHandler (line 12) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2587ac433316ed63de55bed8ed3b58cbfafaba1b21109ffb79b0f99aec93a7d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2587ac433316ed63de55bed8ed3b58cbfafaba1b21109ffb79b0f99aec93a7d9", kill_on_drop: false }` [INFO] [stdout] 2587ac433316ed63de55bed8ed3b58cbfafaba1b21109ffb79b0f99aec93a7d9