[INFO] fetching crate serenity-rich-interaction 0.2.3... [INFO] testing serenity-rich-interaction-0.2.3 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate serenity-rich-interaction 0.2.3 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate serenity-rich-interaction 0.2.3 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate serenity-rich-interaction 0.2.3 [INFO] finished tweaking crates.io crate serenity-rich-interaction 0.2.3 [INFO] tweaked toml for crates.io crate serenity-rich-interaction 0.2.3 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 49e3c1e34787ff9185bf363f72c24e808242da6f5c29b84a703cd3c994c1aa25 [INFO] running `Command { std: "docker" "start" "-a" "49e3c1e34787ff9185bf363f72c24e808242da6f5c29b84a703cd3c994c1aa25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "49e3c1e34787ff9185bf363f72c24e808242da6f5c29b84a703cd3c994c1aa25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49e3c1e34787ff9185bf363f72c24e808242da6f5c29b84a703cd3c994c1aa25", kill_on_drop: false }` [INFO] [stdout] 49e3c1e34787ff9185bf363f72c24e808242da6f5c29b84a703cd3c994c1aa25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 702c7d93a6d79e6760c5bc4634cbf28a4a5a77ea936d339419ee7b406dd068d8 [INFO] running `Command { std: "docker" "start" "-a" "702c7d93a6d79e6760c5bc4634cbf28a4a5a77ea936d339419ee7b406dd068d8", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling futures-sink v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling cpufeatures v0.1.4 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling serenity v0.10.7 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling typemap_rev v0.1.5 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling input_buffer v0.3.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling indexmap v1.6.2 [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 mio v0.7.11 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling openssl-sys v0.9.63 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling async-tungstenite v0.11.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling hyper v0.14.8 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.3 [INFO] [stderr] Compiling serenity-rich-interaction v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "702c7d93a6d79e6760c5bc4634cbf28a4a5a77ea936d339419ee7b406dd068d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "702c7d93a6d79e6760c5bc4634cbf28a4a5a77ea936d339419ee7b406dd068d8", kill_on_drop: false }` [INFO] [stdout] 702c7d93a6d79e6760c5bc4634cbf28a4a5a77ea936d339419ee7b406dd068d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89f629018f2730a3838034c886145ff651aaf5b9a062b5054162318e75606f9f [INFO] running `Command { std: "docker" "start" "-a" "89f629018f2730a3838034c886145ff651aaf5b9a062b5054162318e75606f9f", kill_on_drop: false }` [INFO] [stderr] Compiling serenity-rich-interaction v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.48s [INFO] running `Command { std: "docker" "inspect" "89f629018f2730a3838034c886145ff651aaf5b9a062b5054162318e75606f9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89f629018f2730a3838034c886145ff651aaf5b9a062b5054162318e75606f9f", kill_on_drop: false }` [INFO] [stdout] 89f629018f2730a3838034c886145ff651aaf5b9a062b5054162318e75606f9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9a710434c850ad06adaee5103bdf8f0cf51ad7ddfbc62dffb7d74d43225f331d [INFO] running `Command { std: "docker" "start" "-a" "9a710434c850ad06adaee5103bdf8f0cf51ad7ddfbc62dffb7d74d43225f331d", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/serenity_rich_interaction-dd973c6664c0f5b2) [INFO] [stdout] [INFO] [stderr] Doc-tests serenity-rich-interaction [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 1 test [INFO] [stdout] test src/events/handler.rs - events::handler::RichEventHandler (line 32) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/events/handler.rs - events::handler::RichEventHandler (line 32) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/events/handler.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_handler_rs_32_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:43:85 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_handler_rs_32_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_32_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] = note: required by `from_residual` [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 32) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.63s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "9a710434c850ad06adaee5103bdf8f0cf51ad7ddfbc62dffb7d74d43225f331d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a710434c850ad06adaee5103bdf8f0cf51ad7ddfbc62dffb7d74d43225f331d", kill_on_drop: false }` [INFO] [stdout] 9a710434c850ad06adaee5103bdf8f0cf51ad7ddfbc62dffb7d74d43225f331d