[INFO] cloning repository https://github.com/Trivernis/serenity-rich-interactions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Trivernis/serenity-rich-interactions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrivernis%2Fserenity-rich-interactions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrivernis%2Fserenity-rich-interactions'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 530b9b16e4c17bab02f76605334015456e775772 [INFO] testing Trivernis/serenity-rich-interactions against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrivernis%2Fserenity-rich-interactions" "/workspace/builds/worker-28/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-28/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Trivernis/serenity-rich-interactions on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Trivernis/serenity-rich-interactions [INFO] finished tweaking git repo https://github.com/Trivernis/serenity-rich-interactions [INFO] tweaked toml for git repo https://github.com/Trivernis/serenity-rich-interactions written to /workspace/builds/worker-28/source/Cargo.toml [INFO] crate git repo https://github.com/Trivernis/serenity-rich-interactions already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b68dc145a2b3a9b259584e1aee5945ecfe87d8a6b747bb111e33430cb9d3b530 [INFO] running `Command { std: "docker" "start" "-a" "b68dc145a2b3a9b259584e1aee5945ecfe87d8a6b747bb111e33430cb9d3b530", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b68dc145a2b3a9b259584e1aee5945ecfe87d8a6b747bb111e33430cb9d3b530", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b68dc145a2b3a9b259584e1aee5945ecfe87d8a6b747bb111e33430cb9d3b530", kill_on_drop: false }` [INFO] [stdout] b68dc145a2b3a9b259584e1aee5945ecfe87d8a6b747bb111e33430cb9d3b530 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0436c7fb8774bfec16a9026f1268fe5236be5c1fc265f0efffab96bdd72fad1a [INFO] running `Command { std: "docker" "start" "-a" "0436c7fb8774bfec16a9026f1268fe5236be5c1fc265f0efffab96bdd72fad1a", kill_on_drop: false }` [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling serenity v0.10.10 [INFO] [stderr] Compiling typemap_rev v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling dashmap v5.2.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling async-tungstenite v0.11.0 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling serenity-rich-interaction v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 46.82s [INFO] running `Command { std: "docker" "inspect" "0436c7fb8774bfec16a9026f1268fe5236be5c1fc265f0efffab96bdd72fad1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0436c7fb8774bfec16a9026f1268fe5236be5c1fc265f0efffab96bdd72fad1a", kill_on_drop: false }` [INFO] [stdout] 0436c7fb8774bfec16a9026f1268fe5236be5c1fc265f0efffab96bdd72fad1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f19cee0dc88f0f684427fbf609b310391b244809cf05e836595601b104f607d [INFO] running `Command { std: "docker" "start" "-a" "5f19cee0dc88f0f684427fbf609b310391b244809cf05e836595601b104f607d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling serenity-rich-interaction v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.05s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/serenity_rich_interaction-fa6f10ad13fc331b) [INFO] running `Command { std: "docker" "inspect" "5f19cee0dc88f0f684427fbf609b310391b244809cf05e836595601b104f607d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f19cee0dc88f0f684427fbf609b310391b244809cf05e836595601b104f607d", kill_on_drop: false }` [INFO] [stdout] 5f19cee0dc88f0f684427fbf609b310391b244809cf05e836595601b104f607d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a4e7fea8ad892b54e7aa77afe9e50179dd4fd9e930cd46b9765f2bbb0d6f145f [INFO] running `Command { std: "docker" "start" "-a" "a4e7fea8ad892b54e7aa77afe9e50179dd4fd9e930cd46b9765f2bbb0d6f145f", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/serenity_rich_interaction-fa6f10ad13fc331b) [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 serenity-rich-interaction [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/events/handler.rs - events::handler::RichEventHandler (line 33) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/events/handler.rs - events::handler::RichEventHandler (line 33) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/events/handler.rs:44:79 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_handler_rs_33_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | let client = Client::builder("TOKEN").register_rich_interactions_with(handler).await?; [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/events/handler.rs:44:85 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_handler_rs_33_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use serenity_rich_interaction::events::RichEventHandler; [INFO] [stdout] 5 | | use serenity::model::event; [INFO] [stdout] 6 | | use serenity::client::Client; [INFO] [stdout] ... | [INFO] [stdout] 14 | | let client = Client::builder("TOKEN").register_rich_interactions_with(handler).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 15 | | // ... [INFO] [stdout] 16 | | } _doctest_main_src_events_handler_rs_33_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0728. [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/events/handler.rs - events::handler::RichEventHandler (line 33) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "a4e7fea8ad892b54e7aa77afe9e50179dd4fd9e930cd46b9765f2bbb0d6f145f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4e7fea8ad892b54e7aa77afe9e50179dd4fd9e930cd46b9765f2bbb0d6f145f", kill_on_drop: false }` [INFO] [stdout] a4e7fea8ad892b54e7aa77afe9e50179dd4fd9e930cd46b9765f2bbb0d6f145f