[INFO] fetching crate twitchalerts 0.1.5... [INFO] testing twitchalerts-0.1.5 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate twitchalerts 0.1.5 into /workspace/builds/worker-0-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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate twitchalerts 0.1.5 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 183 packages to latest compatible versions [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding toml v0.8.23 (available: v0.9.5) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38a504a9d27396703524eb3c10e5314e965fd49d4dd18eca79361a39cdc45f5d [INFO] running `Command { std: "docker" "start" "-a" "38a504a9d27396703524eb3c10e5314e965fd49d4dd18eca79361a39cdc45f5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38a504a9d27396703524eb3c10e5314e965fd49d4dd18eca79361a39cdc45f5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38a504a9d27396703524eb3c10e5314e965fd49d4dd18eca79361a39cdc45f5d", kill_on_drop: false }` [INFO] [stdout] 38a504a9d27396703524eb3c10e5314e965fd49d4dd18eca79361a39cdc45f5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6dcb7856b79429d71cfa2dfa3c31d54f51b62fe48eafa31cda3158bb56ba126e [INFO] running `Command { std: "docker" "start" "-a" "6dcb7856b79429d71cfa2dfa3c31d54f51b62fe48eafa31cda3158bb56ba126e", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [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 26.75s [INFO] running `Command { std: "docker" "inspect" "6dcb7856b79429d71cfa2dfa3c31d54f51b62fe48eafa31cda3158bb56ba126e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6dcb7856b79429d71cfa2dfa3c31d54f51b62fe48eafa31cda3158bb56ba126e", kill_on_drop: false }` [INFO] [stdout] 6dcb7856b79429d71cfa2dfa3c31d54f51b62fe48eafa31cda3158bb56ba126e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3aa34ab32c1ab6919bf304a5abcf375e90549002a144c836590457b361a7308a [INFO] running `Command { std: "docker" "start" "-a" "3aa34ab32c1ab6919bf304a5abcf375e90549002a144c836590457b361a7308a", kill_on_drop: false }` [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] [stderr] Compiling twitchalerts v0.1.5 (/opt/rustwide/workdir) [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 1.04s [INFO] running `Command { std: "docker" "inspect" "3aa34ab32c1ab6919bf304a5abcf375e90549002a144c836590457b361a7308a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3aa34ab32c1ab6919bf304a5abcf375e90549002a144c836590457b361a7308a", kill_on_drop: false }` [INFO] [stdout] 3aa34ab32c1ab6919bf304a5abcf375e90549002a144c836590457b361a7308a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bff7df1ad07443cbfcee37a91f97b272119f9cfd51ada4d69ca1688637cd9e4a [INFO] running `Command { std: "docker" "start" "-a" "bff7df1ad07443cbfcee37a91f97b272119f9cfd51ada4d69ca1688637cd9e4a", 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.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/twitchalerts-8d86d005f59c0363) [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 twitchalerts [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/client.rs - client::Client::event_handler (line 145) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::run (line 177) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::new (line 106) ... FAILED [INFO] [stdout] test src/error.rs - error::Error (line 25) ... FAILED [INFO] [stdout] test src/traits.rs - traits::EventHandler (line 12) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 13 | 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] 13 - async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] 13 + 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] 17 | 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] 17 - async fn on_error(&self, error: String) { [INFO] [stdout] 17 + 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] 22 | 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] 22 | 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] ---- 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] 13 | 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] 13 - async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] 13 + 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] 17 | 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] 17 - async fn on_error(&self, error: String) { [INFO] [stdout] 17 + 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] 23 | _ = 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] 23 | _ = 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] 22 | 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::new (line 106) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:110:22 [INFO] [stdout] | [INFO] [stdout] 7 | 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/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] 6 | 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] 13 | 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] 13 - async fn on_stream(&self, streamer: &Streamer, stream: &StreamData) { [INFO] [stdout] 13 + 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] 17 | 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] 17 - async fn on_error(&self, error: String) { [INFO] [stdout] 17 + 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] [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.39s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "bff7df1ad07443cbfcee37a91f97b272119f9cfd51ada4d69ca1688637cd9e4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bff7df1ad07443cbfcee37a91f97b272119f9cfd51ada4d69ca1688637cd9e4a", kill_on_drop: false }` [INFO] [stdout] bff7df1ad07443cbfcee37a91f97b272119f9cfd51ada4d69ca1688637cd9e4a