[INFO] fetching crate discord-webhook 0.1.0... [INFO] testing discord-webhook-0.1.0 against 1.60.0 for beta-1.61-1 [INFO] extracting crate discord-webhook 0.1.0 into /workspace/builds/worker-24/source [INFO] validating manifest of crates.io crate discord-webhook 0.1.0 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate discord-webhook 0.1.0 [INFO] finished tweaking crates.io crate discord-webhook 0.1.0 [INFO] tweaked toml for crates.io crate discord-webhook 0.1.0 written to /workspace/builds/worker-24/source/Cargo.toml [INFO] crate crates.io crate discord-webhook 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mio v0.8.0 [INFO] [stderr] Downloaded hyper v0.14.17 [INFO] [stderr] Downloaded httparse v1.6.0 [INFO] [stderr] Downloaded tracing v0.1.31 [INFO] [stderr] Downloaded parking_lot_core v0.9.1 [INFO] [stderr] Downloaded windows_i686_msvc v0.32.0 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.32.0 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.32.0 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.32.0 [INFO] [stderr] Downloaded windows_i686_gnu v0.32.0 [INFO] [stderr] Downloaded windows-sys v0.32.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5f9d2a8b0d7538ed18ccd7dd6530103c57a7a78220247a0abebad1698ee4b46 [INFO] running `Command { std: "docker" "start" "-a" "d5f9d2a8b0d7538ed18ccd7dd6530103c57a7a78220247a0abebad1698ee4b46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5f9d2a8b0d7538ed18ccd7dd6530103c57a7a78220247a0abebad1698ee4b46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5f9d2a8b0d7538ed18ccd7dd6530103c57a7a78220247a0abebad1698ee4b46", kill_on_drop: false }` [INFO] [stdout] d5f9d2a8b0d7538ed18ccd7dd6530103c57a7a78220247a0abebad1698ee4b46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c32b093382402ef1b2d60e30d6d9dd41227a05ec5b43f6e66dabf4794be72dba [INFO] running `Command { std: "docker" "start" "-a" "c32b093382402ef1b2d60e30d6d9dd41227a05ec5b43f6e66dabf4794be72dba", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling rustls v0.20.4 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling rustls-pemfile v0.2.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling webpki-roots v0.22.2 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling tokio-rustls v0.23.2 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling hyper-rustls v0.23.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling discord-webhook v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 20.43s [INFO] running `Command { std: "docker" "inspect" "c32b093382402ef1b2d60e30d6d9dd41227a05ec5b43f6e66dabf4794be72dba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c32b093382402ef1b2d60e30d6d9dd41227a05ec5b43f6e66dabf4794be72dba", kill_on_drop: false }` [INFO] [stdout] c32b093382402ef1b2d60e30d6d9dd41227a05ec5b43f6e66dabf4794be72dba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f743832de1f4d356e545cb9c03be6a790ac1a3270d7f57a25ca7b4a5d579d43d [INFO] running `Command { std: "docker" "start" "-a" "f743832de1f4d356e545cb9c03be6a790ac1a3270d7f57a25ca7b4a5d579d43d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling rustls v0.20.4 [INFO] [stderr] Compiling webpki-roots v0.22.2 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-rustls v0.23.2 [INFO] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v0.14.17 [INFO] [stderr] Compiling hyper-rustls v0.23.0 [INFO] [stderr] Compiling reqwest v0.11.9 [INFO] [stderr] Compiling discord-webhook v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 20.05s [INFO] running `Command { std: "docker" "inspect" "f743832de1f4d356e545cb9c03be6a790ac1a3270d7f57a25ca7b4a5d579d43d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f743832de1f4d356e545cb9c03be6a790ac1a3270d7f57a25ca7b4a5d579d43d", kill_on_drop: false }` [INFO] [stdout] f743832de1f4d356e545cb9c03be6a790ac1a3270d7f57a25ca7b4a5d579d43d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/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" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2856a91482e701cac867225908b5776f12f8986f03e4e7adef4d1d009e7cc970 [INFO] running `Command { std: "docker" "start" "-a" "2856a91482e701cac867225908b5776f12f8986f03e4e7adef4d1d009e7cc970", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/discord_webhook-ba1c2010019d9327) [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 discord-webhook [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/client.rs - client::WebhookClient::send (line 23) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::WebhookClient::send (line 23) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebhookClient` [INFO] [stdout] --> src/client.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = WebhookClient::new("URL"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use discord_webhook::client::WebhookClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_23_0() { [INFO] [stdout] | -------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | .username("username")).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/client.rs:27:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_23_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let client = WebhookClient::new("URL"); [INFO] [stdout] 4 | | client.send(|message| message [INFO] [stdout] 5 | | .content("content") [INFO] [stdout] 6 | | .username("username")).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_client_rs_23_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 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, 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/client.rs - client::WebhookClient::send (line 23) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "2856a91482e701cac867225908b5776f12f8986f03e4e7adef4d1d009e7cc970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2856a91482e701cac867225908b5776f12f8986f03e4e7adef4d1d009e7cc970", kill_on_drop: false }` [INFO] [stdout] 2856a91482e701cac867225908b5776f12f8986f03e4e7adef4d1d009e7cc970