[INFO] fetching crate secra-cache 0.1.2...
[INFO] testing secra-cache-0.1.2 against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681
[INFO] extracting crate secra-cache 0.1.2 into /workspace/builds/worker-4-tc2/source
[INFO] started tweaking crates.io crate secra-cache 0.1.2
[INFO] removed 0 missing examples
[INFO] finished tweaking crates.io crate secra-cache 0.1.2
[INFO] tweaked toml for crates.io crate secra-cache 0.1.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate secra-cache 0.1.2 on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate secra-cache 0.1.2 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 759965e04a70ec4c6791b1f95210b2a52a9e85477c31ad5d8c9b5df43a859d32
[INFO] running `Command { std: "docker" "start" "-a" "759965e04a70ec4c6791b1f95210b2a52a9e85477c31ad5d8c9b5df43a859d32", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "759965e04a70ec4c6791b1f95210b2a52a9e85477c31ad5d8c9b5df43a859d32", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "759965e04a70ec4c6791b1f95210b2a52a9e85477c31ad5d8c9b5df43a859d32", kill_on_drop: false }`
[INFO] [stdout] 759965e04a70ec4c6791b1f95210b2a52a9e85477c31ad5d8c9b5df43a859d32
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bf03d895accaab75f96241520cba05a4c7fb96184857413b8c2e298c5a46ed28
[INFO] running `Command { std: "docker" "start" "-a" "bf03d895accaab75f96241520cba05a4c7fb96184857413b8c2e298c5a46ed28", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.104
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling zmij v1.0.3
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling backon v1.6.0
[INFO] [stderr]    Compiling arc-swap v1.8.0
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling sha1_smol v1.0.1
[INFO] [stderr]    Compiling xxhash-rust v0.8.15
[INFO] [stderr]    Compiling arcstr v1.2.0
[INFO] [stderr]    Compiling dashmap v6.1.0
[INFO] [stderr]    Compiling serde_json v1.0.148
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling combine v4.6.7
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling redis v1.0.2
[INFO] [stderr]    Compiling secra-cache v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s
[INFO] running `Command { std: "docker" "inspect" "bf03d895accaab75f96241520cba05a4c7fb96184857413b8c2e298c5a46ed28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bf03d895accaab75f96241520cba05a4c7fb96184857413b8c2e298c5a46ed28", kill_on_drop: false }`
[INFO] [stdout] bf03d895accaab75f96241520cba05a4c7fb96184857413b8c2e298c5a46ed28
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 83ee8ebdda388f679374436ae50d4a9e14297e0fbcc7e433b9d65d4dc3038da4
[INFO] running `Command { std: "docker" "start" "-a" "83ee8ebdda388f679374436ae50d4a9e14297e0fbcc7e433b9d65d4dc3038da4", kill_on_drop: false }`
[INFO] [stderr]    Compiling secra-cache v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.35s
[INFO] running `Command { std: "docker" "inspect" "83ee8ebdda388f679374436ae50d4a9e14297e0fbcc7e433b9d65d4dc3038da4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "83ee8ebdda388f679374436ae50d4a9e14297e0fbcc7e433b9d65d4dc3038da4", kill_on_drop: false }`
[INFO] [stdout] 83ee8ebdda388f679374436ae50d4a9e14297e0fbcc7e433b9d65d4dc3038da4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 9305bc2e0209323e7d5e6cddd95a180be31ac23c91535a1493b0557286b63537
[INFO] running `Command { std: "docker" "start" "-a" "9305bc2e0209323e7d5e6cddd95a180be31ac23c91535a1493b0557286b63537", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/secra_cache-e25696a21907f2b3)
[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 secra_cache
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::expire (line 448) - compile ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::clear (line 553) - compile ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::clear_module (line 587) - compile ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::set (line 281) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - error (line 41) ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::delete (line 345) - compile ... FAILED
[INFO] [stdout] test src/traits.rs - traits::Cache::clear_module (line 90) ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::new (line 45) - compile ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::ttl (line 502) - compile ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::exists (line 402) - compile ... FAILED
[INFO] [stdout] test src/manager.rs - manager::CacheManager::clear_module (line 255) ... FAILED
[INFO] [stdout] test src/plugin.rs - plugin::PluginCache::get (line 212) - compile ... FAILED
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] test src/lib.rs - error (line 29) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::expire (line 448) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:453:5
[INFO] [stdout]     |
[INFO] [stdout] 453 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 454 | let success = cache.expire("user:123", Duration::from_secs(7200)).await?;
[INFO] [stdout]     |               ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 453 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::clear (line 553) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:557:5
[INFO] [stdout]     |
[INFO] [stdout] 557 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 558 | let deleted_count = cache.clear().await?;
[INFO] [stdout]     |                     ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 557 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::clear_module (line 587) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:591:5
[INFO] [stdout]     |
[INFO] [stdout] 591 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 592 | let deleted_count = cache.clear_module("user").await?;
[INFO] [stdout]     |                     ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 591 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::set (line 281) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:286:5
[INFO] [stdout]     |
[INFO] [stdout] 286 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 287 | cache.set("user:123", &"John Doe", Some(Duration::from_secs(3600))).await?;
[INFO] [stdout]     | ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 286 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error (line 41) stdout ----
[INFO] [stdout] error: cannot find derive macro `Serialize` in this scope
[INFO] [stdout]   --> src/lib.rs:43:10
[INFO] [stdout]    |
[INFO] [stdout] 43 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout] 41 + use serde::Serialize;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope
[INFO] [stdout]   --> src/lib.rs:43:21
[INFO] [stdout]    |
[INFO] [stdout] 43 | #[derive(Serialize, Deserialize)]
[INFO] [stdout]    |                     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout] 41 + use serde::Deserialize;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/lib.rs:47:1
[INFO] [stdout]    |
[INFO] [stdout] 47 | cache.set("user:123", &user, None).await?;
[INFO] [stdout]    | ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/lib.rs:50:26
[INFO] [stdout]    |
[INFO] [stdout] 50 | let user: Option<User> = cache.get("user:123").await?;
[INFO] [stdout]    |                          ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/lib.rs:53:1
[INFO] [stdout]    |
[INFO] [stdout] 53 | cache.delete("user:123").await?;
[INFO] [stdout]    | ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/lib.rs:56:1
[INFO] [stdout]    |
[INFO] [stdout] 56 | cache.clear().await?;
[INFO] [stdout]    | ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/lib.rs:59:1
[INFO] [stdout]    |
[INFO] [stdout] 59 | cache.clear_module("user").await?;
[INFO] [stdout]    | ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:47:36
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 47 | cache.set("user:123", &user, None).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:50:48
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 50 | let user: Option<User> = cache.get("user:123").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:53:26
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 53 | cache.delete("user:123").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:56:15
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 56 | cache.clear().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:59:28
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_41_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 59 | cache.clear_module("user").await?;
[INFO] [stdout]    |                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::delete (line 345) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:349:5
[INFO] [stdout]     |
[INFO] [stdout] 349 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 350 | let deleted = cache.delete("user:123").await?;
[INFO] [stdout]     |               ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 349 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/traits.rs - traits::Cache::clear_module (line 90) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/traits.rs:92:1
[INFO] [stdout]    |
[INFO] [stdout] 92 | cache.clear_module("user").await?;
[INFO] [stdout]    | ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache` in this scope
[INFO] [stdout]   --> src/traits.rs:95:1
[INFO] [stdout]    |
[INFO] [stdout] 95 | cache.clear_module("order").await?;
[INFO] [stdout]    | ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/traits.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 90 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_rs_90_0() {
[INFO] [stdout]    |                                      ------------------------------------- this is not `async`
[INFO] [stdout] 91 | // 清空 user 模块的所有缓存
[INFO] [stdout] 92 | cache.clear_module("user").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/traits.rs:95:29
[INFO] [stdout]    |
[INFO] [stdout] 90 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_rs_90_0() {
[INFO] [stdout]    |                                      ------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 95 | cache.clear_module("order").await?;
[INFO] [stdout]    |                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::new (line 45) stdout ----
[INFO] [stdout] error[E0624]: associated function `new` is private
[INFO] [stdout]   --> src/plugin.rs:51:33
[INFO] [stdout]    |
[INFO] [stdout] 51 | let plugin_cache = PluginCache::new(manager, "my_plugin".to_string());
[INFO] [stdout]    |                                 ^^^ private associated function
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/plugin.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub(crate) fn new(manager: Arc<CacheManager>, plugin_id: String) -> Self {
[INFO] [stdout]    |     ------------------------------------------------------------------------ private associated function defined here
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0624`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::ttl (line 502) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:506:5
[INFO] [stdout]     |
[INFO] [stdout] 506 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 507 | if let Some(remaining) = cache.ttl("user:123").await? {
[INFO] [stdout]     |                          ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 506 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::exists (line 402) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:406:5
[INFO] [stdout]     |
[INFO] [stdout] 406 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 407 | if cache.exists("user:123").await? {
[INFO] [stdout]     |    ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 406 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/manager.rs - manager::CacheManager::clear_module (line 255) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `cache_manager` in this scope
[INFO] [stdout]    --> src/manager.rs:257:1
[INFO] [stdout]     |
[INFO] [stdout] 257 | cache_manager.clear_module("user_plugin", "user").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `cache_manager` in this scope
[INFO] [stdout]    --> src/manager.rs:260:1
[INFO] [stdout]     |
[INFO] [stdout] 260 | cache_manager.clear_module("order_service", "order").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/manager.rs:257:51
[INFO] [stdout]     |
[INFO] [stdout] 255 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_manager_rs_255_0() {
[INFO] [stdout]     |                                      --------------------------------------- this is not `async`
[INFO] [stdout] 256 | // 清空 user_plugin 插件的 user 模块缓存
[INFO] [stdout] 257 | cache_manager.clear_module("user_plugin", "user").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/manager.rs:260:54
[INFO] [stdout]     |
[INFO] [stdout] 255 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_manager_rs_255_0() {
[INFO] [stdout]     |                                      --------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 260 | cache_manager.clear_module("order_service", "order").await?;
[INFO] [stdout]     |                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/plugin.rs - plugin::PluginCache::get (line 212) stdout ----
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/plugin.rs:216:5
[INFO] [stdout]     |
[INFO] [stdout] 216 | let cache = todo!();
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 217 | let value: Option<String> = cache.get("user:123").await?;
[INFO] [stdout]     |                             ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 216 | let cache: /* Type */ = todo!();
[INFO] [stdout]     |          ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error (line 29) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheManager`
[INFO] [stdout]   --> src/lib.rs:31:21
[INFO] [stdout]    |
[INFO] [stdout] 31 | let cache_manager = CacheManager::new_with_defaults(
[INFO] [stdout]    |                     ^^^^^^^^^^^^ use of undeclared type `CacheManager`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 29 + use secra_cache::CacheManager;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:33:3
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_29_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 33 | ).await?;
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - error (line 29)
[INFO] [stdout]     src/lib.rs - error (line 41)
[INFO] [stdout]     src/manager.rs - manager::CacheManager::clear_module (line 255)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::clear (line 553)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::clear_module (line 587)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::delete (line 345)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::exists (line 402)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::expire (line 448)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::get (line 212)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::new (line 45)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::set (line 281)
[INFO] [stdout]     src/plugin.rs - plugin::PluginCache::ttl (line 502)
[INFO] [stdout]     src/traits.rs - traits::Cache::clear_module (line 90)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.73s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "9305bc2e0209323e7d5e6cddd95a180be31ac23c91535a1493b0557286b63537", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9305bc2e0209323e7d5e6cddd95a180be31ac23c91535a1493b0557286b63537", kill_on_drop: false }`
[INFO] [stdout] 9305bc2e0209323e7d5e6cddd95a180be31ac23c91535a1493b0557286b63537
