[INFO] fetching crate toolfront-macro 0.1.0... [INFO] testing toolfront-macro-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate toolfront-macro 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate toolfront-macro 0.1.0 [INFO] finished tweaking crates.io crate toolfront-macro 0.1.0 [INFO] tweaked toml for crates.io crate toolfront-macro 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate toolfront-macro 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 168 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7c6c18629507338ce9e1cd2c44b4c2edfab87f6bc938bcea943b3e31d70a8cc [INFO] running `Command { std: "docker" "start" "-a" "c7c6c18629507338ce9e1cd2c44b4c2edfab87f6bc938bcea943b3e31d70a8cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7c6c18629507338ce9e1cd2c44b4c2edfab87f6bc938bcea943b3e31d70a8cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7c6c18629507338ce9e1cd2c44b4c2edfab87f6bc938bcea943b3e31d70a8cc", kill_on_drop: false }` [INFO] [stdout] c7c6c18629507338ce9e1cd2c44b4c2edfab87f6bc938bcea943b3e31d70a8cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e905277847cbe7df659c20fe2e6a12f6c213774041cba6adf3add052940e8b9 [INFO] running `Command { std: "docker" "start" "-a" "6e905277847cbe7df659c20fe2e6a12f6c213774041cba6adf3add052940e8b9", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling toolfront-macro v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "6e905277847cbe7df659c20fe2e6a12f6c213774041cba6adf3add052940e8b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e905277847cbe7df659c20fe2e6a12f6c213774041cba6adf3add052940e8b9", kill_on_drop: false }` [INFO] [stdout] 6e905277847cbe7df659c20fe2e6a12f6c213774041cba6adf3add052940e8b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 790b8ec7841d429d103686660ddc138374039f201b980735e759f17ec443ac9b [INFO] running `Command { std: "docker" "start" "-a" "790b8ec7841d429d103686660ddc138374039f201b980735e759f17ec443ac9b", kill_on_drop: false }` [INFO] [stderr] Compiling toolfront-macro v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "790b8ec7841d429d103686660ddc138374039f201b980735e759f17ec443ac9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "790b8ec7841d429d103686660ddc138374039f201b980735e759f17ec443ac9b", kill_on_drop: false }` [INFO] [stdout] 790b8ec7841d429d103686660ddc138374039f201b980735e759f17ec443ac9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e2aa9d9e9c2cc16659a6ab410f1607c389547d9d693333ef985d41faecbd9276 [INFO] running `Command { std: "docker" "start" "-a" "e2aa9d9e9c2cc16659a6ab410f1607c389547d9d693333ef985d41faecbd9276", 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/toolfront_macro-5e20a3a651bb954f) [INFO] [stderr] Doc-tests toolfront_macro [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] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - generate_client (line 139) ... FAILED [INFO] [stdout] test src/lib.rs - generate_client (line 53) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - generate_client (line 139) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/lib.rs:140:47 [INFO] [stdout] | [INFO] [stdout] 3 | impl From for YourErrorType { ... } [INFO] [stdout] | - ^^^ - item list ends here [INFO] [stdout] | | | [INFO] [stdout] | | non-item starts here [INFO] [stdout] | item list starts here [INFO] [stdout] [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/lib.rs:141:50 [INFO] [stdout] | [INFO] [stdout] 4 | impl From for YourErrorType { ... } [INFO] [stdout] | - ^^^ - item list ends here [INFO] [stdout] | | | [INFO] [stdout] | | non-item starts here [INFO] [stdout] | item list starts here [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `YourErrorType` in this scope [INFO] [stdout] --> src/lib.rs:140:31 [INFO] [stdout] | [INFO] [stdout] 3 | impl From for YourErrorType { ... } [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `YourErrorType` in this scope [INFO] [stdout] --> src/lib.rs:141:34 [INFO] [stdout] | [INFO] [stdout] 4 | impl From for YourErrorType { ... } [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - generate_client (line 53) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pgvector` [INFO] [stdout] --> src/lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pgvector::Vector; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `pgvector` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `pgvector`, use `cargo add pgvector` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `uuid` [INFO] [stdout] --> src/lib.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `uuid` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `uuid`, use `cargo add uuid` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] --> src/lib.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, thiserror::Error)] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/lib.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[error("API request failed: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> src/lib.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 11 | Request(#[from] reqwest::Error), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/lib.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[error("JSON error: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> src/lib.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 13 | Json(#[from] serde_json::Error), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `generate_client` in this scope [INFO] [stdout] --> src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 33 | generate_client!( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use toolfront_macro::generate_client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 27 | users: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 26 | struct UserSearchResponse { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 27 | users: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OpenAIClient` in this scope [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 44 | openai: OpenAIClient, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/lib.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 45 | db: PgPool, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `find_relevant_endpoint` in this scope [INFO] [stdout] --> src/lib.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 51 | let endpoint = find_relevant_endpoint(&self.db, task).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `generate_parameters` found for reference `&Agent` in the current scope [INFO] [stdout] --> src/lib.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 54 | let params = self.generate_parameters(task).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&Agent` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UserSearchClient` [INFO] [stdout] --> src/lib.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 57 | let client = UserSearchClient::new("https://api.example.com".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `UserSearchClient` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `AgentError` [INFO] [stdout] --> src/lib.rs:111:42 [INFO] [stdout] | [INFO] [stdout] 60 | Ok(serde_json::to_value(response)?) [INFO] [stdout] | ------------------------------^ the trait `From` is not implemented for `AgentError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, serde_json::Error>` [INFO] [stdout] | [INFO] [stdout] note: `AgentError` needs to implement `From` [INFO] [stdout] --> src/lib.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum AgentError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/lib.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 49 | async fn execute_task(&self, task: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Serialize` will fail [INFO] [stdout] --> src/lib.rs:111:33 [INFO] [stdout] | [INFO] [stdout] 60 | Ok(serde_json::to_value(response)?) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 51 ~ let endpoint: () = find_relevant_endpoint(&self.db, task).await?; [INFO] [stdout] 52 | [INFO] [stdout] ... [INFO] [stdout] 57 | let client = UserSearchClient::new("https://api.example.com".to_string()); [INFO] [stdout] 58 ~ let response: () = client.execute(params).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - generate_client (line 139) [INFO] [stdout] src/lib.rs - generate_client (line 53) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e2aa9d9e9c2cc16659a6ab410f1607c389547d9d693333ef985d41faecbd9276", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2aa9d9e9c2cc16659a6ab410f1607c389547d9d693333ef985d41faecbd9276", kill_on_drop: false }` [INFO] [stdout] e2aa9d9e9c2cc16659a6ab410f1607c389547d9d693333ef985d41faecbd9276