[INFO] fetching crate worker-macros 0.2.0...
[INFO] testing worker-macros-0.2.0 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate worker-macros 0.2.0 into /workspace/builds/worker-2-tc1/source
[INFO] validating manifest of crates.io crate worker-macros 0.2.0 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate worker-macros 0.2.0
[INFO] finished tweaking crates.io crate worker-macros 0.2.0
[INFO] tweaked toml for crates.io crate worker-macros 0.2.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 19 packages to latest compatible versions
[INFO] [stderr]       Adding worker-sys v0.2.0 (latest: v0.3.0)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded worker-sys v0.2.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d55239ce90008ab4969ec528baeabce5b6f3d7d28caa3aab2edf60d912d1e351
[INFO] running `Command { std: "docker" "start" "-a" "d55239ce90008ab4969ec528baeabce5b6f3d7d28caa3aab2edf60d912d1e351", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d55239ce90008ab4969ec528baeabce5b6f3d7d28caa3aab2edf60d912d1e351", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d55239ce90008ab4969ec528baeabce5b6f3d7d28caa3aab2edf60d912d1e351", kill_on_drop: false }`
[INFO] [stdout] d55239ce90008ab4969ec528baeabce5b6f3d7d28caa3aab2edf60d912d1e351
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2e584de9af6f38dffb2854c1c11c10ed18772e18bb4e07acb1cfaae704292566
[INFO] running `Command { std: "docker" "start" "-a" "2e584de9af6f38dffb2854c1c11c10ed18772e18bb4e07acb1cfaae704292566", kill_on_drop: false }`
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.92
[INFO] [stderr]    Compiling bumpalo v3.16.0
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling log v0.4.21
[INFO] [stderr]    Compiling wasm-bindgen v0.2.92
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling syn v2.0.66
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.92
[INFO] [stderr]    Compiling async-trait v0.1.80
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.92
[INFO] [stderr]    Compiling js-sys v0.3.69
[INFO] [stderr]    Compiling web-sys v0.3.69
[INFO] [stderr]    Compiling wasm-bindgen-futures v0.4.42
[INFO] [stderr]    Compiling worker-sys v0.2.0
[INFO] [stderr]    Compiling worker-macros v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.09s
[INFO] running `Command { std: "docker" "inspect" "2e584de9af6f38dffb2854c1c11c10ed18772e18bb4e07acb1cfaae704292566", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2e584de9af6f38dffb2854c1c11c10ed18772e18bb4e07acb1cfaae704292566", kill_on_drop: false }`
[INFO] [stdout] 2e584de9af6f38dffb2854c1c11c10ed18772e18bb4e07acb1cfaae704292566
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 242f0c017bb65c9ccc2078153454f680b6d72e3a36c854b9bc6cf738d048101f
[INFO] running `Command { std: "docker" "start" "-a" "242f0c017bb65c9ccc2078153454f680b6d72e3a36c854b9bc6cf738d048101f", kill_on_drop: false }`
[INFO] [stderr]    Compiling worker-macros v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.07s
[INFO] running `Command { std: "docker" "inspect" "242f0c017bb65c9ccc2078153454f680b6d72e3a36c854b9bc6cf738d048101f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "242f0c017bb65c9ccc2078153454f680b6d72e3a36c854b9bc6cf738d048101f", kill_on_drop: false }`
[INFO] [stdout] 242f0c017bb65c9ccc2078153454f680b6d72e3a36c854b9bc6cf738d048101f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 0872e4d126919d702047ae10d8d3ab7d1569bd43fbb624bbfb8977fa196269e5
[INFO] running `Command { std: "docker" "start" "-a" "0872e4d126919d702047ae10d8d3ab7d1569bd43fbb624bbfb8977fa196269e5", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/worker_macros-9157e0137b994db1)
[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 worker_macros
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test src/lib.rs - send (line 78) ... FAILED
[INFO] [stdout] test src/lib.rs - event (line 52) ... FAILED
[INFO] [stdout] test src/lib.rs - event (line 61) ... FAILED
[INFO] [stdout] test src/lib.rs - event (line 31) ... FAILED
[INFO] [stdout] test src/lib.rs - event (line 43) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - send (line 78) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `worker`
[INFO] [stdout]  --> src/lib.rs:79:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[worker::send]
[INFO] [stdout]   |   ^^^^^^ use of undeclared crate or module `worker`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsFuture`
[INFO] [stdout]  --> src/lib.rs:82:15
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let fut = JsFuture::from(promise);
[INFO] [stdout]   |               ^^^^^^^^ use of undeclared type `JsFuture`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen_futures::JsFuture;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `promise` in this scope
[INFO] [stdout]  --> src/lib.rs:82:30
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let fut = JsFuture::from(promise);
[INFO] [stdout]   |                              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - event (line 52) stdout ----
[INFO] [stdout] error: cannot find attribute `event` in this scope
[INFO] [stdout]  --> src/lib.rs:53:3
[INFO] [stdout]   |
[INFO] [stdout] 2 | #[event(fetch, respond_with_errors)]
[INFO] [stdout]   |   ^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_macros::event;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:55:6
[INFO] [stdout]   |
[INFO] [stdout] 4 |   Ok(web_sys::Response::new_with_opt_str(Some("Hello World (native type)".into())).unwrap())
[INFO] [stdout]   |      ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:54:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response> {
[INFO] [stdout]   |                    ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::web_sys;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Env` in this scope
[INFO] [stdout]  --> src/lib.rs:54:43
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response> {
[INFO] [stdout]   |                                           ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Context` in this scope
[INFO] [stdout]  --> src/lib.rs:54:53
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response> {
[INFO] [stdout]   |                                                     ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::Context;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:54:72
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response> {
[INFO] [stdout]   |                                                                        ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::web_sys;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]  --> src/lib.rs:54:65
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response> {
[INFO] [stdout]   |                                                                 ^^^^^^ ----------------- supplied 1 generic argument
[INFO] [stdout]   |                                                                 |
[INFO] [stdout]   |                                                                 expected 2 generic arguments
[INFO] [stdout]   |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response, E> {
[INFO] [stdout]   |                                                                                         +++
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:54:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result<web_sys::Response> {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - event (line 61) stdout ----
[INFO] [stdout] error: cannot find attribute `event` in this scope
[INFO] [stdout]  --> src/lib.rs:62:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[event(fetch)]
[INFO] [stdout]   |   ^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_macros::event;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum`
[INFO] [stdout]  --> src/lib.rs:63:83
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>> {
[INFO] [stdout]   |                                                                                   ^^^^ use of undeclared crate or module `axum`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HttpRequest` in this scope
[INFO] [stdout]  --> src/lib.rs:63:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>> {
[INFO] [stdout]   |                     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Env` in this scope
[INFO] [stdout]  --> src/lib.rs:63:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>> {
[INFO] [stdout]   |                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Context` in this scope
[INFO] [stdout]  --> src/lib.rs:63:49
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>> {
[INFO] [stdout]   |                                                 ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::Context;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]  --> src/lib.rs:63:61
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>> {
[INFO] [stdout]   |                                                             ^^^^^^ -------------------------------- supplied 1 generic argument
[INFO] [stdout]   |                                                             |
[INFO] [stdout]   |                                                             expected 2 generic arguments
[INFO] [stdout]   |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>, E> {
[INFO] [stdout]   |                                                                                                    +++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `router` in this scope
[INFO] [stdout]  --> src/lib.rs:64:6
[INFO] [stdout]   |
[INFO] [stdout] 5 |   Ok(router().call(req).await?)
[INFO] [stdout]   |      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `http`
[INFO] [stdout]  --> src/lib.rs:63:68
[INFO] [stdout]   |
[INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result<http::Response<axum::body::Body>> {
[INFO] [stdout]   |                                                                    ^^^^ use of undeclared crate or module `http`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - event (line 31) stdout ----
[INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `}`
[INFO] [stdout]  --> src/lib.rs:33:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   |          ----- while parsing this `fn`                                                                                                     - expected one of `!`, `+`, `::`, `where`, or `{`
[INFO] [stdout] 4 | } _doctest_main_src_lib_rs_31_0() }
[INFO] [stdout]   | ^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error: free function without a body
[INFO] [stdout]  --> src/lib.rs:32:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ <body> }`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:32:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   |                               ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::web_sys;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Env` in this scope
[INFO] [stdout]  --> src/lib.rs:32:55
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   |                                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Context` in this scope
[INFO] [stdout]  --> src/lib.rs:32:65
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   |                                                                 ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::Context;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:32:94
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   |                                                                                              ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::web_sys;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope
[INFO] [stdout]  --> src/lib.rs:32:132
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn fetch(req: impl From<web_sys::Request>, env: Env, ctx: Context) -> Result<impl Into<web_sys::Response>, impl Into<Box<dyn Error>>>
[INFO] [stdout]   |                                                                                                                                    ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::error::Error;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::error::Error;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - event (line 43) stdout ----
[INFO] [stdout] error: cannot find attribute `event` in this scope
[INFO] [stdout]  --> src/lib.rs:44:3
[INFO] [stdout]   |
[INFO] [stdout] 2 | #[event(fetch, respond_with_errors)]
[INFO] [stdout]   |   ^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_macros::event;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `worker`
[INFO] [stdout]  --> src/lib.rs:46:3
[INFO] [stdout]   |
[INFO] [stdout] 4 |   worker::Response::ok("Hello World (worker type)")
[INFO] [stdout]   |   ^^^^^^ use of undeclared crate or module `worker`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Env` in this scope
[INFO] [stdout]  --> src/lib.rs:45:42
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response> {
[INFO] [stdout]   |                                          ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Context` in this scope
[INFO] [stdout]  --> src/lib.rs:45:52
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response> {
[INFO] [stdout]   |                                                    ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::task::Context;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use worker_sys::Context;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]  --> src/lib.rs:45:64
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response> {
[INFO] [stdout]   |                                                                ^^^^^^ ---------------- supplied 1 generic argument
[INFO] [stdout]   |                                                                |
[INFO] [stdout]   |                                                                expected 2 generic arguments
[INFO] [stdout]   |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response, E> {
[INFO] [stdout]   |                                                                                       +++
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:45:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response> {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `worker`
[INFO] [stdout]  --> src/lib.rs:45:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response> {
[INFO] [stdout]   |                    ^^^^^^ use of undeclared crate or module `worker`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `worker`
[INFO] [stdout]  --> src/lib.rs:45:71
[INFO] [stdout]   |
[INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result<worker::Response> {
[INFO] [stdout]   |                                                                       ^^^^^^ use of undeclared crate or module `worker`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - event (line 31)
[INFO] [stdout]     src/lib.rs - event (line 43)
[INFO] [stdout]     src/lib.rs - event (line 52)
[INFO] [stdout]     src/lib.rs - event (line 61)
[INFO] [stdout]     src/lib.rs - send (line 78)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "0872e4d126919d702047ae10d8d3ab7d1569bd43fbb624bbfb8977fa196269e5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0872e4d126919d702047ae10d8d3ab7d1569bd43fbb624bbfb8977fa196269e5", kill_on_drop: false }`
[INFO] [stdout] 0872e4d126919d702047ae10d8d3ab7d1569bd43fbb624bbfb8977fa196269e5
