[INFO] fetching crate rocal 0.3.0... [INFO] testing rocal-0.3.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate rocal 0.3.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate rocal 0.3.0 [INFO] finished tweaking crates.io crate rocal 0.3.0 [INFO] tweaked toml for crates.io crate rocal 0.3.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rocal 0.3.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rocal 0.3.0 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rocal-macro v0.3.0 [INFO] [stderr] Downloaded rocal-ui v0.1.2 [INFO] [stderr] Downloaded zerofrom v0.1.5 [INFO] [stderr] Downloaded redox_syscall v0.5.8 [INFO] [stderr] Downloaded http-body-util v0.1.2 [INFO] [stderr] Downloaded rtoolbox v0.0.2 [INFO] [stderr] Downloaded filetime v0.2.25 [INFO] [stderr] Downloaded rocal-dev-server v0.1.1 [INFO] [stderr] Downloaded linux-keyutils v0.2.4 [INFO] [stderr] Downloaded hyper-rustls v0.27.5 [INFO] [stderr] Downloaded core-foundation v0.10.0 [INFO] [stderr] Downloaded httparse v1.10.0 [INFO] [stderr] Downloaded clap v4.5.28 [INFO] [stderr] Downloaded security-framework v3.2.0 [INFO] [stderr] Downloaded flate2 v1.0.35 [INFO] [stderr] Downloaded cc v1.2.13 [INFO] [stderr] Downloaded wasi v0.13.3+wasi-0.2.2 [INFO] [stderr] Downloaded clap_builder v4.5.27 [INFO] [stderr] Downloaded rand v0.9.0 [INFO] [stderr] Downloaded rustls-webpki v0.102.8 [INFO] [stderr] Downloaded reqwest v0.12.12 [INFO] [stderr] Downloaded quinn-proto v0.11.10 [INFO] [stderr] Downloaded zerocopy v0.8.17 [INFO] [stderr] Downloaded icu_properties_data v1.5.0 [INFO] [stderr] Downloaded syn v2.0.98 [INFO] [stderr] Downloaded webpki-roots v0.26.7 [INFO] [stderr] Downloaded backtrace v0.3.74 [INFO] [stderr] Downloaded http v1.2.0 [INFO] [stderr] Downloaded rustls v0.23.23 [INFO] [stderr] Downloaded zerocopy-derive v0.8.17 [INFO] [stderr] Downloaded icu_properties v1.5.1 [INFO] [stderr] Downloaded keyring v3.6.1 [INFO] [stderr] Downloaded hyper-util v0.1.10 [INFO] [stderr] Downloaded quinn v0.11.7 [INFO] [stderr] Downloaded rustls-pki-types v1.11.0 [INFO] [stderr] Downloaded tar v0.4.43 [INFO] [stderr] Downloaded uuid v1.13.1 [INFO] [stderr] Downloaded icu_normalizer_data v1.5.0 [INFO] [stderr] Downloaded icu_normalizer v1.5.0 [INFO] [stderr] Downloaded getrandom v0.3.1 [INFO] [stderr] Downloaded icu_locid_transform_data v1.5.0 [INFO] [stderr] Downloaded litemap v0.7.4 [INFO] [stderr] Downloaded log v0.4.25 [INFO] [stderr] Downloaded miniz_oxide v0.8.4 [INFO] [stderr] Downloaded bytes v1.10.0 [INFO] [stderr] Downloaded quinn-udp v0.5.11 [INFO] [stderr] Downloaded tokio-rustls v0.26.1 [INFO] [stderr] Downloaded synstructure v0.13.1 [INFO] [stderr] Downloaded rand_core v0.9.0 [INFO] [stderr] Downloaded icu_locid_transform v1.5.0 [INFO] [stderr] Downloaded tokio v1.43.1 [INFO] [stderr] Downloaded rocal-core v0.3.0 [INFO] [stderr] Downloaded socket2 v0.5.8 [INFO] [stderr] Downloaded rpassword v7.3.1 [INFO] [stderr] Downloaded xattr v1.4.0 [INFO] [stderr] Downloaded zerofrom-derive v0.1.5 [INFO] [stderr] Downloaded wit-bindgen-rt v0.33.0 [INFO] [stderr] Downloaded uuid-macro-internal v1.13.1 [INFO] [stderr] Downloaded idna_adapter v1.2.0 [INFO] [stderr] Downloaded rocal-cli v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6c833403c7a3f2b07d9d28e2b66a782e3d77acd7077060009a5111aa565f912 [INFO] running `Command { std: "docker" "start" "-a" "c6c833403c7a3f2b07d9d28e2b66a782e3d77acd7077060009a5111aa565f912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6c833403c7a3f2b07d9d28e2b66a782e3d77acd7077060009a5111aa565f912", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6c833403c7a3f2b07d9d28e2b66a782e3d77acd7077060009a5111aa565f912", kill_on_drop: false }` [INFO] [stdout] c6c833403c7a3f2b07d9d28e2b66a782e3d77acd7077060009a5111aa565f912 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6baed43e490f08793deadc5590309c93c370524ba9d9a56dd092b43474ffd573 [INFO] running `Command { std: "docker" "start" "-a" "6baed43e490f08793deadc5590309c93c370524ba9d9a56dd092b43474ffd573", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rocal-ui v0.1.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.5 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling rocal-core v0.3.0 [INFO] [stderr] Compiling rocal-macro v0.3.0 [INFO] [stderr] Compiling rocal v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "6baed43e490f08793deadc5590309c93c370524ba9d9a56dd092b43474ffd573", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6baed43e490f08793deadc5590309c93c370524ba9d9a56dd092b43474ffd573", kill_on_drop: false }` [INFO] [stdout] 6baed43e490f08793deadc5590309c93c370524ba9d9a56dd092b43474ffd573 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b0e8dcf5ad3b2733be1d300e297698563c79b58054aab1b80d01805c5729fc3 [INFO] running `Command { std: "docker" "start" "-a" "1b0e8dcf5ad3b2733be1d300e297698563c79b58054aab1b80d01805c5729fc3", kill_on_drop: false }` [INFO] [stderr] Compiling rocal v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "1b0e8dcf5ad3b2733be1d300e297698563c79b58054aab1b80d01805c5729fc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b0e8dcf5ad3b2733be1d300e297698563c79b58054aab1b80d01805c5729fc3", kill_on_drop: false }` [INFO] [stdout] 1b0e8dcf5ad3b2733be1d300e297698563c79b58054aab1b80d01805c5729fc3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2161da11e3daca7ccab044b721a67f5689b5281fc2cc46bf9ebb7eb67f693f7b [INFO] running `Command { std: "docker" "start" "-a" "2161da11e3daca7ccab044b721a67f5689b5281fc2cc46bf9ebb7eb67f693f7b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rocal-26aa0f53de400b0c) [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 rocal [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - (line 116) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error[E0428]: the name `index` is defined multiple times [INFO] [stdout] --> src/lib.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 26 | #[rocal::action] [INFO] [stdout] | ---------------- previous definition of the value `index` here [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn index(&self, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `index` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `index` must be defined only once in the value namespace of this block [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | #[rocal::action] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] = note: this error originates in the attribute macro `rocal::action` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn index(&self, message: &str) { [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | fn body(&self, data: Self::Data) -> String { [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: cannot find macro `migrate` in this scope [INFO] [stdout] --> src/lib.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | migrate!("db/migrations"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 10 + use rocal::migrate; [INFO] [stdout] | [INFO] [stdout] 10 + use rocal_macro::migrate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `route` in this scope [INFO] [stdout] --> src/lib.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | route! { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 10 + use rocal::route; [INFO] [stdout] | [INFO] [stdout] 10 + use rocal_macro::route; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `view` in this scope [INFO] [stdout] --> src/lib.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | view! { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 10 + use rocal::view; [INFO] [stdout] | [INFO] [stdout] 10 + use rocal_macro::view; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `view` in this scope [INFO] [stdout] --> src/lib.rs:56:3 [INFO] [stdout] | [INFO] [stdout] 56 | view! { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 10 + use rocal::view; [INFO] [stdout] | [INFO] [stdout] 10 + use rocal_macro::view; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Controller` in this scope [INFO] [stdout] --> src/lib.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | impl Controller for HelloWorldController { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 10 + use rocal_core::traits::Controller; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `HelloWorldController` in this scope [INFO] [stdout] --> src/lib.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | impl Controller for HelloWorldController { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `UserView` in this scope [INFO] [stdout] --> src/lib.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | type View = UserView; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HelloWorldTemplate` in this scope [INFO] [stdout] --> src/lib.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | let template = HelloWorldTemplate::new(self.router.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HelloWorldTemplate` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | fn body(&self, data: Self::Data) -> String { [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425, E0428, 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 - (line 116) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/lib.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | use serde::Deserialize; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CONFIG` in the crate root [INFO] [stdout] --> src/lib.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | let database = crate::CONFIG.get_database().clone(); [INFO] [stdout] | ^^^^^^ not found in the crate root [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `JsValue` in this scope [INFO] [stdout] --> src/lib.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 128 | let result: Result, JsValue> = database.query("select id, first_name, last_name from users;").fetch().await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 116 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:128:113 [INFO] [stdout] | [INFO] [stdout] 116 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 128 | let result: Result, JsValue> = database.query("select id, first_name, last_name from users;").fetch().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:138:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 138 | .await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 116) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2161da11e3daca7ccab044b721a67f5689b5281fc2cc46bf9ebb7eb67f693f7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2161da11e3daca7ccab044b721a67f5689b5281fc2cc46bf9ebb7eb67f693f7b", kill_on_drop: false }` [INFO] [stdout] 2161da11e3daca7ccab044b721a67f5689b5281fc2cc46bf9ebb7eb67f693f7b