[INFO] cloning repository https://github.com/longlongyang/The-Prompt-of-Prompt
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/longlongyang/The-Prompt-of-Prompt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flonglongyang%2FThe-Prompt-of-Prompt", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flonglongyang%2FThe-Prompt-of-Prompt'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a59edb99f057b7a92b8c8885e44c378915df8513
[INFO] testing longlongyang/The-Prompt-of-Prompt against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flonglongyang%2FThe-Prompt-of-Prompt" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/longlongyang/The-Prompt-of-Prompt
[INFO] finished tweaking git repo https://github.com/longlongyang/The-Prompt-of-Prompt
[INFO] tweaked toml for git repo https://github.com/longlongyang/The-Prompt-of-Prompt written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/longlongyang/The-Prompt-of-Prompt on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/longlongyang/The-Prompt-of-Prompt 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a3f2cb7f1c300ae062d4e347bed5eb42272b0ee357a76c4f520fee509bb75c41
[INFO] running `Command { std: "docker" "start" "-a" "a3f2cb7f1c300ae062d4e347bed5eb42272b0ee357a76c4f520fee509bb75c41", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a3f2cb7f1c300ae062d4e347bed5eb42272b0ee357a76c4f520fee509bb75c41", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a3f2cb7f1c300ae062d4e347bed5eb42272b0ee357a76c4f520fee509bb75c41", kill_on_drop: false }`
[INFO] [stdout] a3f2cb7f1c300ae062d4e347bed5eb42272b0ee357a76c4f520fee509bb75c41
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] c7af78354780c45364ee6b2d47bf9d25297813b76390530b070ae28a8421d919
[INFO] running `Command { std: "docker" "start" "-a" "c7af78354780c45364ee6b2d47bf9d25297813b76390530b070ae28a8421d919", kill_on_drop: false }`
[INFO] [stderr]    Compiling cc v1.2.48
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling tracing-core v0.1.35
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling rustls-pki-types v1.13.1
[INFO] [stderr]    Compiling tracing v0.1.43
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling native-tls v0.2.14
[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 futures-macro v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling zerovec v0.11.5
[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 icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tower-http v0.6.7
[INFO] [stderr]    Compiling h2 v0.4.12
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling hyper-util v0.1.19
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.24
[INFO] [stderr]    Compiling gemini-client v0.1.0 (/opt/rustwide/workdir/crates/gemini-client)
[INFO] [stderr]    Compiling prompt-improver v0.1.0 (/opt/rustwide/workdir/crates/prompt-improver)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.06s
[INFO] running `Command { std: "docker" "inspect" "c7af78354780c45364ee6b2d47bf9d25297813b76390530b070ae28a8421d919", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c7af78354780c45364ee6b2d47bf9d25297813b76390530b070ae28a8421d919", kill_on_drop: false }`
[INFO] [stdout] c7af78354780c45364ee6b2d47bf9d25297813b76390530b070ae28a8421d919
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 2a2ee828ad59f52e2faf9a2b8a7c8e5801d422f573a339a72a5defd51c9f099a
[INFO] running `Command { std: "docker" "start" "-a" "2a2ee828ad59f52e2faf9a2b8a7c8e5801d422f573a339a72a5defd51c9f099a", kill_on_drop: false }`
[INFO] [stderr]    Compiling gemini-client v0.1.0 (/opt/rustwide/workdir/crates/gemini-client)
[INFO] [stderr]    Compiling prompt-improver v0.1.0 (/opt/rustwide/workdir/crates/prompt-improver)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.47s
[INFO] running `Command { std: "docker" "inspect" "2a2ee828ad59f52e2faf9a2b8a7c8e5801d422f573a339a72a5defd51c9f099a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2a2ee828ad59f52e2faf9a2b8a7c8e5801d422f573a339a72a5defd51c9f099a", kill_on_drop: false }`
[INFO] [stdout] 2a2ee828ad59f52e2faf9a2b8a7c8e5801d422f573a339a72a5defd51c9f099a
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 76061c8a157418f0f2884c462efc4ddae7459e658f77fb31096782445050ce86
[INFO] running `Command { std: "docker" "start" "-a" "76061c8a157418f0f2884c462efc4ddae7459e658f77fb31096782445050ce86", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/build/gemini-client/fdfd727359e5a089/deps/gemini_client-fdfd727359e5a089)
[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]      Running unittests src/main.rs (/opt/rustwide/target/debug/build/gemini-client/10de62bf407cb4de/deps/gemini_cli-10de62bf407cb4de)
[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]      Running unittests src/main.rs (/opt/rustwide/target/debug/build/prompt-improver/b378cebd8513eac6/deps/prompt_improver-b378cebd8513eac6)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests gemini_client
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::GeminiClient::wait_for_batch_job (line 861) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::GeminiClient::generate_videos (line 927) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::FileLogger (line 2155) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::GeminiClient::upload_file (line 382) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::GeminiClient::upload_file_bytes (line 459) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::GeminiClient::create_batch_job (line 730) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/lib.rs - (line 7) - compile ... ok
[INFO] [stdout] test crates/gemini-client/src/client.rs - client::GeminiClient::upload_file_logged (line 427) - compile ... FAILED
[INFO] [stdout] test crates/gemini-client/src/types.rs - types::BoundingBox2D (line 1539) ... FAILED
[INFO] [stdout] test crates/gemini-client/src/types.rs - types::GenerationConfig::structured_output (line 1196) ... ok
[INFO] [stdout] test crates/gemini-client/src/types.rs - types::json_schema (line 1695) ... ok
[INFO] [stdout] test crates/gemini-client/src/types.rs - types::json_schema::object_ordered (line 1794) ... ok
[INFO] [stdout] test crates/gemini-client/src/types.rs - types::thought_signatures (line 351) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::GeminiClient::wait_for_batch_job (line 861) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:873:3
[INFO] [stdout]     |
[INFO] [stdout] 862 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_861_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 873 | ).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]    --> crates/gemini-client/src/client.rs:876:83
[INFO] [stdout]     |
[INFO] [stdout] 862 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_861_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 876 | let completed_job = client.wait_for_batch_job(&job.name, Duration::from_secs(30)).await?;
[INFO] [stdout]     |                                                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:880:98
[INFO] [stdout]     |
[INFO] [stdout] 880 |         println!("Key: {:?}, Response: {:?}", response.key, response.response.as_ref().and_then(|r| r.text()));
[INFO] [stdout]     |                                                                                                  ^  - type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 880 |         println!("Key: {:?}, Response: {:?}", response.key, response.response.as_ref().and_then(|r: /* Type */| r.text()));
[INFO] [stdout]     |                                                                                                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::GeminiClient::generate_videos (line 927) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:937:49
[INFO] [stdout]     |
[INFO] [stdout] 928 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_927_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 937 | let operation = client.generate_videos(request).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]    --> crates/gemini-client/src/client.rs:941:58
[INFO] [stdout]     |
[INFO] [stdout] 928 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_927_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 941 |     let op = client.get_video_operation(&operation.name).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]    --> crates/gemini-client/src/client.rs:946:60
[INFO] [stdout]     |
[INFO] [stdout] 928 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_927_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 946 |     tokio::time::sleep(std::time::Duration::from_secs(10)).await;
[INFO] [stdout]     |                                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::FileLogger (line 2155) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]     --> crates/gemini-client/src/client.rs:2163:50
[INFO] [stdout]      |
[INFO] [stdout] 2156 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_2155_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 2163 | let file = client.upload_file("audio.mp3", None).await?;
[INFO] [stdout]      |                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> crates/gemini-client/src/client.rs:2164:31
[INFO] [stdout]      |
[INFO] [stdout] 2156 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_2155_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 2164 | logger.log("audio.mp3", &file)?;
[INFO] [stdout]      |                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout] 2156 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_2155_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]      |                                                                                                   +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]     --> crates/gemini-client/src/client.rs:2167:33
[INFO] [stdout]      |
[INFO] [stdout] 2156 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_2155_0() {
[INFO] [stdout]      |                                      ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 2167 | for mapping in logger.read_all()? {
[INFO] [stdout]      |                                 ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]      |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]      |
[INFO] [stdout] 2156 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_2155_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]      |                                                                                                   +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::GeminiClient::upload_file (line 382) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:389:58
[INFO] [stdout]     |
[INFO] [stdout] 383 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_382_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 389 | let file = client.upload_file("path/to/audio.mp3", 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]    --> crates/gemini-client/src/client.rs:398:3
[INFO] [stdout]     |
[INFO] [stdout] 383 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_382_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 398 | ).await?;
[INFO] [stdout]     |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `with_file_data` found for struct `GenerateContentRequest` in the current scope
[INFO] [stdout]     --> crates/gemini-client/src/client.rs:394:44
[INFO] [stdout]      |
[INFO] [stdout]  394 |     gemini_client::GenerateContentRequest::with_file_data(
[INFO] [stdout]      |                                            ^^^^^^^^^^^^^^ function or associated item not found in `GenerateContentRequest`
[INFO] [stdout]      |
[INFO] [stdout] note: if you're trying to build a new `GenerateContentRequest` consider using one of the following associated functions:
[INFO] [stdout]       GenerateContentRequest::new
[INFO] [stdout]       GenerateContentRequest::with_text
[INFO] [stdout]     --> crates/gemini-client/src/client.rs:1083:5
[INFO] [stdout]      |
[INFO] [stdout] 1083 |     pub fn new(contents: Vec<Content>) -> Self {
[INFO] [stdout]      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 1090 |     pub fn with_text(text: impl Into<String>) -> Self {
[INFO] [stdout]      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0599, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0599`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::GeminiClient::upload_file_bytes (line 459) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:465:71
[INFO] [stdout]     |
[INFO] [stdout] 460 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_459_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 465 | let file = client.upload_file_bytes(&bytes, "audio/mpeg", "my-audio").await?;
[INFO] [stdout]     |                                                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::GeminiClient::create_batch_job (line 730) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:743:3
[INFO] [stdout]     |
[INFO] [stdout] 731 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_730_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 743 | ).await?;
[INFO] [stdout]     |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/client.rs - client::GeminiClient::upload_file_logged (line 427) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:435:66
[INFO] [stdout]     |
[INFO] [stdout] 428 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_427_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 435 | let file = client.upload_file_logged("audio.mp3", None, &logger).await?;
[INFO] [stdout]     |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]    --> crates/gemini-client/src/client.rs:438:62
[INFO] [stdout]     |
[INFO] [stdout] 428 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_427_0() {
[INFO] [stdout]     |                                      ----------------------------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 438 | if let Some(mapping) = logger.find_by_local_path("audio.mp3")? {
[INFO] [stdout]     |                                                              ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 428 | fn main() { #[allow(non_snake_case)] fn _doctest_main_crates_gemini_client_src_client_rs_427_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                                                  +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- crates/gemini-client/src/types.rs - types::BoundingBox2D (line 1539) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `box_2d` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1540:15
[INFO] [stdout]      |
[INFO] [stdout] 1540 | let abs_x1 = (box_2d[1] as f32 / 1000.0 * image_width as f32) as i32;
[INFO] [stdout]      |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `image_width` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1540:43
[INFO] [stdout]      |
[INFO] [stdout] 1540 | let abs_x1 = (box_2d[1] as f32 / 1000.0 * image_width as f32) as i32;
[INFO] [stdout]      |                                           ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `box_2d` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1541:15
[INFO] [stdout]      |
[INFO] [stdout] 1541 | let abs_y1 = (box_2d[0] as f32 / 1000.0 * image_height as f32) as i32;
[INFO] [stdout]      |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `image_height` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1541:43
[INFO] [stdout]      |
[INFO] [stdout] 1541 | let abs_y1 = (box_2d[0] as f32 / 1000.0 * image_height as f32) as i32;
[INFO] [stdout]      |                                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `box_2d` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1542:15
[INFO] [stdout]      |
[INFO] [stdout] 1542 | let abs_x2 = (box_2d[3] as f32 / 1000.0 * image_width as f32) as i32;
[INFO] [stdout]      |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `image_width` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1542:43
[INFO] [stdout]      |
[INFO] [stdout] 1542 | let abs_x2 = (box_2d[3] as f32 / 1000.0 * image_width as f32) as i32;
[INFO] [stdout]      |                                           ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `box_2d` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1543:15
[INFO] [stdout]      |
[INFO] [stdout] 1543 | let abs_y2 = (box_2d[2] as f32 / 1000.0 * image_height as f32) as i32;
[INFO] [stdout]      |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `image_height` in this scope
[INFO] [stdout]     --> crates/gemini-client/src/types.rs:1543:43
[INFO] [stdout]      |
[INFO] [stdout] 1543 | let abs_y2 = (box_2d[2] as f32 / 1000.0 * image_height as f32) as i32;
[INFO] [stdout]      |                                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::FileLogger (line 2155)
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::GeminiClient::create_batch_job (line 730)
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::GeminiClient::generate_videos (line 927)
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::GeminiClient::upload_file (line 382)
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::GeminiClient::upload_file_bytes (line 459)
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::GeminiClient::upload_file_logged (line 427)
[INFO] [stdout]     crates/gemini-client/src/client.rs - client::GeminiClient::wait_for_batch_job (line 861)
[INFO] [stdout]     crates/gemini-client/src/types.rs - types::BoundingBox2D (line 1539)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 5 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.39s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `-p gemini-client --doc`
[INFO] running `Command { std: "docker" "inspect" "76061c8a157418f0f2884c462efc4ddae7459e658f77fb31096782445050ce86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "76061c8a157418f0f2884c462efc4ddae7459e658f77fb31096782445050ce86", kill_on_drop: false }`
[INFO] [stdout] 76061c8a157418f0f2884c462efc4ddae7459e658f77fb31096782445050ce86
