[INFO] fetching crate fastedge 0.3.5... [INFO] testing fastedge-0.3.5 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate fastedge 0.3.5 into /workspace/builds/worker-6-tc2/source [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate fastedge 0.3.5 [INFO] finished tweaking crates.io crate fastedge 0.3.5 [INFO] tweaked toml for crates.io crate fastedge 0.3.5 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate fastedge 0.3.5 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate fastedge 0.3.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f4c2f2e17142eb8c647e7f38fb209c6569b90a7143dc7e6cec8208dbd4a973f [INFO] running `Command { std: "docker" "start" "-a" "0f4c2f2e17142eb8c647e7f38fb209c6569b90a7143dc7e6cec8208dbd4a973f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f4c2f2e17142eb8c647e7f38fb209c6569b90a7143dc7e6cec8208dbd4a973f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f4c2f2e17142eb8c647e7f38fb209c6569b90a7143dc7e6cec8208dbd4a973f", kill_on_drop: false }` [INFO] [stdout] 0f4c2f2e17142eb8c647e7f38fb209c6569b90a7143dc7e6cec8208dbd4a973f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38b1c32dc1cf85dae64393f4795f265df01a10e535c9f1e82bccbe25f00857e2 [INFO] running `Command { std: "docker" "start" "-a" "38b1c32dc1cf85dae64393f4795f265df01a10e535c9f1e82bccbe25f00857e2", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling wasmparser v0.239.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling prettyplease v0.2.31 [INFO] [stderr] Compiling wasm-encoder v0.239.0 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Compiling leb128fmt v0.1.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling wit-bindgen-rust v0.46.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling wit-bindgen-rust-macro v0.46.0 [INFO] [stderr] Compiling wit-bindgen v0.46.0 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling fastedge-derive v0.3.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling wit-parser v0.239.0 [INFO] [stderr] Compiling wasm-metadata v0.239.0 [INFO] [stderr] Compiling wit-bindgen-core v0.46.0 [INFO] [stderr] Compiling wit-component v0.239.0 [INFO] [stderr] Compiling fastedge v0.3.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.79s [INFO] running `Command { std: "docker" "inspect" "38b1c32dc1cf85dae64393f4795f265df01a10e535c9f1e82bccbe25f00857e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38b1c32dc1cf85dae64393f4795f265df01a10e535c9f1e82bccbe25f00857e2", kill_on_drop: false }` [INFO] [stdout] 38b1c32dc1cf85dae64393f4795f265df01a10e535c9f1e82bccbe25f00857e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 888a4496d93a32d2cf4f505d2b345ea171b9f57a35b6855f56885b2268b527ae [INFO] running `Command { std: "docker" "start" "-a" "888a4496d93a32d2cf4f505d2b345ea171b9f57a35b6855f56885b2268b527ae", kill_on_drop: false }` [INFO] [stderr] Compiling fastedge v0.3.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "888a4496d93a32d2cf4f505d2b345ea171b9f57a35b6855f56885b2268b527ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "888a4496d93a32d2cf4f505d2b345ea171b9f57a35b6855f56885b2268b527ae", kill_on_drop: false }` [INFO] [stdout] 888a4496d93a32d2cf4f505d2b345ea171b9f57a35b6855f56885b2268b527ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bb35ffcb9bbded60308d95f91e44b2fe1920629952412c5a05f59666196fbaca [INFO] running `Command { std: "docker" "start" "-a" "bb35ffcb9bbded60308d95f91e44b2fe1920629952412c5a05f59666196fbaca", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/fastedge-8d71a070962ca14d) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test helper::tests::test_serialize_list ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests fastedge [INFO] [stdout] [INFO] [stdout] running 28 tests [INFO] [stdout] test src/lib.rs - (line 114) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 141) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 77) - compile ... FAILED [INFO] [stdout] test src/lib.rs - key_value (line 312) - compile ... ok [INFO] [stdout] test src/lib.rs - key_value (line 328) - compile ... ok [INFO] [stdout] test src/lib.rs - key_value (line 358) - compile ... ok [INFO] [stdout] test src/http_client.rs - http_client::send_request (line 59) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 51) - compile ... FAILED [INFO] [stdout] test src/proxywasm/dictionary.rs - proxywasm::dictionary (line 8) - compile ... ok [INFO] [stdout] test src/lib.rs - key_value (line 343) - compile ... ok [INFO] [stdout] test src/lib.rs - utils (line 382) - compile ... ok [INFO] [stdout] test src/proxywasm/utils.rs - proxywasm::utils (line 7) - compile ... ok [INFO] [stdout] test src/http_client.rs - http_client::send_request (line 38) - compile ... ok [INFO] [stdout] test src/lib.rs - dictionary (line 236) - compile ... FAILED [INFO] [stdout] test src/proxywasm/secret.rs - proxywasm::secret::get (line 53) - compile ... ok [INFO] [stdout] test src/proxywasm/secret.rs - proxywasm::secret (line 14) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 169) - compile ... FAILED [INFO] [stdout] test src/proxywasm/dictionary.rs - proxywasm::dictionary::get (line 36) - compile ... ok [INFO] [stdout] test src/lib.rs - __export_reactor_impl (line 227) ... ok [INFO] [stdout] test src/lib.rs - secret (line 265) - compile ... FAILED [INFO] [stdout] test src/proxywasm/utils.rs - proxywasm::utils::set_user_diag (line 30) - compile ... ok [INFO] [stdout] test src/lib.rs - body::Body (line 475) ... ok [INFO] [stdout] test src/lib.rs - body::Body::empty (line 562) ... ok [INFO] [stdout] test src/lib.rs - body (line 448) ... ok [INFO] [stdout] test src/lib.rs - body::Body::content_type (line 581) ... ok [INFO] [stdout] test src/lib.rs - Error (line 401) ... ok [INFO] [stdout] test src/proxywasm/secret.rs - proxywasm::secret::get_effective_at (line 101) - compile ... ok [INFO] [stdout] test src/proxywasm/key_value.rs - proxywasm::key_value (line 7) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 114) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 141) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/lib.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 77) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `wstd` in this scope [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | use wstd::http::body::Body; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `wstd` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 78 - use wstd::http::body::Body; [INFO] [stdout] 78 + use std::http::body::Body; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `wstd` in this scope [INFO] [stdout] --> src/lib.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | use wstd::http::{Client, Request, Response}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `wstd` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 79 - use wstd::http::{Client, Request, Response}; [INFO] [stdout] 79 + use std::http::{Client, Request, Response}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `wstd` in this scope [INFO] [stdout] --> src/lib.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[wstd::http_server] [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `wstd` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | async fn main(_request: Request) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `anyhow` in this scope [INFO] [stdout] --> src/lib.rs:82:43 [INFO] [stdout] | [INFO] [stdout] 82 | async fn main(_request: Request) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 51) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/lib.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - dictionary (line 236) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/lib.rs:241:54 [INFO] [stdout] | [INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() -> core::result::Result<(), impl core::fmt::Debug> { [INFO] [stdout] | -------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 241 | if let Some(config) = dictionary::get("api_endpoint")? { [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), _>` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | if let Some(config) = dictionary::get("api_endpoint")? { [INFO] [stdout] | ^^^^^^^^^^^^ -------------------------------- this expression has type `String` [INFO] [stdout] | | [INFO] [stdout] | expected `String`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 169) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:182:47 [INFO] [stdout] | [INFO] [stdout] 182 | let key = String::from_utf8_lossy(&api_key); [INFO] [stdout] | ----------------------- ^^^^^^^^ expected `&[u8]`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/string.rs:619:11 [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - secret (line 265) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:272:43 [INFO] [stdout] | [INFO] [stdout] 272 | let pwd = String::from_utf8_lossy(&password); [INFO] [stdout] | ----------------------- ^^^^^^^^^ expected `&[u8]`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/string.rs:619:11 [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/proxywasm/key_value.rs - proxywasm::key_value (line 7) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `proxy_wasm` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use proxy_wasm::traits::*; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `proxy_wasm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `proxy_wasm`, use `cargo add proxy_wasm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `proxy_wasm` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use proxy_wasm::types::*; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `proxy_wasm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `proxy_wasm`, use `cargo add proxy_wasm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `proxy_wasm::traits::*`, `proxy_wasm::types::*` [INFO] [stdout] --> src/proxywasm/key_value.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use proxy_wasm::traits::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | use proxy_wasm::types::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `proxy_wasm` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | proxy_wasm::main! {{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `proxy_wasm` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Context` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl Context for HttpBodyRoot {} [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `RootContext` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | impl RootContext for HttpBodyRoot { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ContextType` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | fn get_type(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 22 | impl RootContext for HttpBodyRoot { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `HttpContext` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:27:61 [INFO] [stdout] | [INFO] [stdout] 27 | fn create_http_context(&self, _: u32) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Context` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | impl Context for HttpBody {} [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `HttpContext` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | impl HttpContext for HttpBody { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Action` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:37:66 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_http_response_headers(&mut self, _: usize, _: bool) -> Action { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/option.rs:600:0 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Option` defined here [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 37 - fn on_http_response_headers(&mut self, _: usize, _: bool) -> Action { [INFO] [stdout] 37 + fn on_http_response_headers(&mut self, _: usize, _: bool) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ContextType` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | Some(ContextType::HttpContext) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ContextType` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Action` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | return Action::Pause; [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 40 - return Action::Pause; [INFO] [stdout] 40 + return Option::Pause; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Action` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | return Action::Pause; [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 44 - return Action::Pause; [INFO] [stdout] 44 + return Option::Pause; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Action` in this scope [INFO] [stdout] --> src/proxywasm/key_value.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | Action::Continue [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 - Action::Continue [INFO] [stdout] 47 + Option::Continue [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 114) [INFO] [stdout] src/lib.rs - (line 141) [INFO] [stdout] src/lib.rs - (line 169) [INFO] [stdout] src/lib.rs - (line 51) [INFO] [stdout] src/lib.rs - (line 77) [INFO] [stdout] src/lib.rs - dictionary (line 236) [INFO] [stdout] src/lib.rs - secret (line 265) [INFO] [stdout] src/proxywasm/key_value.rs - proxywasm::key_value (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 20 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "bb35ffcb9bbded60308d95f91e44b2fe1920629952412c5a05f59666196fbaca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb35ffcb9bbded60308d95f91e44b2fe1920629952412c5a05f59666196fbaca", kill_on_drop: false }` [INFO] [stdout] bb35ffcb9bbded60308d95f91e44b2fe1920629952412c5a05f59666196fbaca